'heading_pagination' =>
$tax->labels->items_list_navigation,
'heading_list' =>
$tax->labels->items_list,
));
$location = false;
$referer =
wp_get_referer();
if ( !
$referer ) { // For POST requests.
$referer =
wp_unslash( $_SERVER['REQUEST_URI'
] );
}$referer =
remove_query_arg( array
( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged'
),
$referer );
switch ( $wp_list_table->
current_action() ) { case 'add-tag':
check_admin_referer( 'add-tag', '_wpnonce_add-tag'
);
if ( !
current_user_can( $tax->cap->edit_terms
) ) { wp_die( '<h1>' .
__( 'You need a higher level of permission.'
) . '</h1>' .
'<p>' .
__( 'Sorry, you are not allowed to create terms in this taxonomy.'
) . '</p>',
403
);
}