Changeset 13049
- Timestamp:
- 02/10/2010 08:37:18 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r13044 r13049 712 712 * 713 713 * label - A descriptive name for the post type marked for translation. Defaults to $post_type. 714 * description - A short descriptive summary of what the post type is. Defaults to blank. 714 * description - A short descriptive summary of what the post type is. Defaults to blank. 715 715 * public - Whether posts of this type should be shown in the admin UI. Defaults to false. 716 716 * exclude_from_search - Whether to exclude posts with this post type from search results. Defaults to true if the type is not public, false if the type is public. -
trunk/wp-includes/query.php
r13037 r13049 2103 2103 } else { 2104 2104 foreach ( get_post_stati() as $status ) { 2105 if ( in_array( $status, $q_status ) ) 2106 $r_status[] = "$wpdb->posts.post_status = '$status'"; 2105 if ( in_array( $status, $q_status ) ) { 2106 if ( 'private' == $status ) 2107 $p_status[] = "$wpdb->posts.post_status = '$status'"; 2108 else 2109 $r_status[] = "$wpdb->posts.post_status = '$status'"; 2110 } 2107 2111 } 2108 2112 }
Note: See TracChangeset
for help on using the changeset viewer.