Ticket #11399: 11399.sw.1.diff
File 11399.sw.1.diff, 610 bytes (added by , 13 years ago) |
---|
-
post.php
4389 4389 do_action( 'clean_page_cache', $post->ID ); 4390 4390 } 4391 4391 4392 if ( $children = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_type FROM $wpdb->posts WHERE post_parent = %d ", $post->ID) ) ) {4392 if ( $children = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_type FROM $wpdb->posts WHERE post_parent = %d AND post_type <> 'revision' ", $post->ID) ) ) { 4393 4393 foreach ( $children as $child ) { 4394 4394 // Loop detection 4395 4395 if ( $child->ID == $post->ID )