Changeset 6382 for trunk/wp-includes/post.php
- Timestamp:
- 12/14/2007 08:56:55 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r6379 r6382 759 759 } 760 760 761 // Point children of this page to its parent 761 // Point children of this page to its parent, also clean the cache of affected children 762 $children_query = $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_parent = %d AND post_type='page'", $postid); 763 $children = $wpdb->get_results($children_query); 764 762 765 $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'page' ) ); 763 766 } … … 774 777 if ( 'page' == $post->post_type ) { 775 778 clean_page_cache($postid); 779 780 foreach ( (array) $children as $child ) 781 clean_page_cache($child->ID); 782 776 783 $wp_rewrite->flush_rules(); 777 784 } else {
Note: See TracChangeset
for help on using the changeset viewer.