Small, subtle fixes. See #14596
git-svn-id: http://svn.automattic.com/wordpress/trunk@15493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c3a38fc6c
commit
11ffaae225
|
@ -62,7 +62,7 @@ case 'fetch-list' :
|
||||||
$table->ajax_response();
|
$table->ajax_response();
|
||||||
}
|
}
|
||||||
|
|
||||||
die('-1');
|
die('0');
|
||||||
break;
|
break;
|
||||||
case 'ajax-tag-search' :
|
case 'ajax-tag-search' :
|
||||||
if ( !current_user_can( 'edit_posts' ) )
|
if ( !current_user_can( 'edit_posts' ) )
|
||||||
|
|
|
@ -1814,7 +1814,7 @@ function screen_options($screen) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
case 'edit-pages':
|
case 'edit-pages':
|
||||||
$post_type = 'post';
|
$post_type = 'post';
|
||||||
if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) )
|
if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array( 'show_ui' => true ) ) ) )
|
||||||
$post_type = $_GET['post_type'];
|
$post_type = $_GET['post_type'];
|
||||||
$post_type_object = get_post_type_object($post_type);
|
$post_type_object = get_post_type_object($post_type);
|
||||||
$per_page_label = $post_type_object->labels->name;
|
$per_page_label = $post_type_object->labels->name;
|
||||||
|
|
Loading…
Reference in New Issue