Changeset 7601
- Timestamp:
- 04/05/2008 05:54:08 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r7592 r7601 2713 2713 */ 2714 2714 function clean_page_cache($id) { 2715 global $wpdb; 2716 $id = (int) $id; 2717 2715 2718 clean_post_cache($id); 2716 2719 … … 2719 2722 2720 2723 do_action('clean_page_cache', $id); 2724 2725 if ( $children = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$id'" ) ) 2726 foreach( $children as $cid ) 2727 clean_post_cache( $cid ); 2721 2728 } 2722 2729 … … 2944 2951 global $wpdb; 2945 2952 2946 if ( ! empty($_post->ancestors) )2953 if ( !isset($_post->ancestors) ) 2947 2954 return; 2948 2955
Note: See TracChangeset
for help on using the changeset viewer.