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

git-svn-id: https://develop.svn.wordpress.org/trunk@18234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2011-06-10 17:02:03 +00:00
parent 740272025b
commit 2aea6faf97
4 changed files with 6 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ function create_initial_post_types() {
register_post_type( 'page', array(
'public' => true,
'publicly_queryable' => false,
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
'_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
'capability_type' => 'page',
@@ -4204,7 +4205,7 @@ function _get_last_post_time( $timezone, $field ) {
if ( !$date ) {
$add_seconds_server = date('Z');
$post_types = get_post_types( array( 'publicly_queryable' => true ) );
$post_types = get_post_types( array( 'public' => true ) );
array_walk( $post_types, array( &$wpdb, 'escape_by_ref' ) );
$post_types = "'" . implode( "', '", $post_types ) . "'";