Make WordPress Core


Ignore:
Timestamp:
06/10/2011 05:02:03 PM (13 years ago)
Author:
markjaquith
Message:

Fix mistaken use of publicly_queryable when public was what was intended. props nacin. fixes #17040

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r18211 r18234  
    3232    register_post_type( 'page', array(
    3333        'public' => true,
     34        'publicly_queryable' => false,
    3435        '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
    3536        '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
     
    42054206        $add_seconds_server = date('Z');
    42064207
    4207         $post_types = get_post_types( array( 'publicly_queryable' => true ) );
     4208        $post_types = get_post_types( array( 'public' => true ) );
    42084209        array_walk( $post_types, array( &$wpdb, 'escape_by_ref' ) );
    42094210        $post_types = "'" . implode( "', '", $post_types ) . "'";
Note: See TracChangeset for help on using the changeset viewer.