Make WordPress Core

Changeset 15493


Ignore:
Timestamp:
08/12/2010 12:15:31 AM (15 years ago)
Author:
scribu
Message:

Small, subtle fixes. See #14596

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r15491 r15493  
    6363    }
    6464
    65     die('-1');
     65    die('0');
    6666    break;
    6767case 'ajax-tag-search' :
  • trunk/wp-admin/includes/template.php

    r15491 r15493  
    18151815        case 'edit-pages':
    18161816            $post_type = 'post';
    1817             if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) )
     1817            if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array( 'show_ui' => true ) ) ) )
    18181818                $post_type = $_GET['post_type'];
    18191819            $post_type_object = get_post_type_object($post_type);
Note: See TracChangeset for help on using the changeset viewer.