Changeset 9145 for trunk/wp-includes/post.php
- Timestamp:
- 10/14/2008 12:15:59 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r9129 r9145 2052 2052 'exclude' => '', 'include' => '', 2053 2053 'meta_key' => '', 'meta_value' => '', 2054 'authors' => '' 2054 'authors' => '', 'parent' => -1 2055 2055 ); 2056 2056 … … 2065 2065 $inclusions = ''; 2066 2066 if ( !empty($include) ) { 2067 $child_of = 0; //ignore child_of, exclude, meta_key, and meta_value params if using include 2067 $child_of = 0; //ignore child_of, parent, exclude, meta_key, and meta_value params if using include 2068 $parent = -1; 2068 2069 $exclude = ''; 2069 2070 $meta_key = ''; … … 2138 2139 2139 2140 } 2141 2142 if ( $parent >= 0 ) 2143 $where .= $wpdb->prepare(' AND post_parent = %d ', $parent); 2144 2140 2145 $query = "SELECT * FROM $wpdb->posts $join WHERE (post_type = 'page' AND post_status = 'publish') $where "; 2141 2146 $query .= $author_query;
Note: See TracChangeset
for help on using the changeset viewer.