Skip to content

Commit

Permalink
Small, subtle fixes. See #14596
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@15493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
scribu committed Aug 12, 2010
1 parent e2ab9f2 commit d8ef58f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-admin/admin-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
$table->ajax_response();
}

die('-1');
die('0');
break;
case 'ajax-tag-search' :
if ( !current_user_can( 'edit_posts' ) )
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8ef58f

Please sign in to comment.