Changeset 12733 for trunk/wp-includes/query.php
- Timestamp:
- 01/15/2010 10:11:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r12597 r12733 333 333 /** 334 334 * Whether current page view is the blog homepage. 335 * 335 * 336 336 * This is the page which is showing the time based blog content of your site 337 337 * so if you set a static page for the front page of your site then this will 338 * only be true on the page which you set as the "Posts page" in Reading Settings. 338 * only be true on the page which you set as the "Posts page" in Reading Settings. 339 339 * 340 340 * @since 1.5.0 … … 2066 2066 $post_type_object = get_post_type_object ( $post_type ); 2067 2067 if ( !empty($post_type_object) ) 2068 $post_type_cap = $post_type_object->capability_type; 2068 $post_type_cap = $post_type_object->capability_type; 2069 2069 else 2070 2070 $post_type_cap = $post_type; … … 2078 2078 $where .= $exclude_post_types; 2079 2079 } elseif ( !empty( $post_type ) && is_array( $post_type ) ) { 2080 $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')"; 2080 $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')"; 2081 2081 } elseif ( ! empty( $post_type ) ) { 2082 2082 $where .= " AND $wpdb->posts.post_type = '$post_type'";
Note: See TracChangeset
for help on using the changeset viewer.