diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 0dca1d1996..81e01970b7 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -62,7 +62,7 @@ case 'fetch-list' : $table->ajax_response(); } - die('-1'); + die('0'); break; case 'ajax-tag-search' : if ( !current_user_can( 'edit_posts' ) ) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 4bbaad8289..b4a0d08e66 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1814,7 +1814,7 @@ function screen_options($screen) { case 'edit': case 'edit-pages': $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_object = get_post_type_object($post_type); $per_page_label = $post_type_object->labels->name;