Changeset 35817 for trunk/src/wp-includes/post.php
- Timestamp:
- 12/07/2015 05:46:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r35800 r35817 2406 2406 $children_query = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_parent = %d AND post_type = %s", $postid, $post->post_type ); 2407 2407 $children = $wpdb->get_results( $children_query ); 2408 2409 $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => $post->post_type ) ); 2408 if ( $children ) { 2409 $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => $post->post_type ) ); 2410 } 2410 2411 } 2411 2412
Note: See TracChangeset
for help on using the changeset viewer.