Changeset 2923 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 09/27/2005 03:42:17 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r2921 r2923 71 71 function relocate_children($old_ID, $new_ID) { 72 72 global $wpdb; 73 $wpdb->query("UPDATE $wpdb->posts SET post_parent = $new_ID WHERE post_parent = $old_ID"); 73 $old_ID = (int) $old_ID; 74 $new_ID = (int) $new_ID; 75 return $wpdb->query("UPDATE $wpdb->posts SET post_parent = $new_ID WHERE post_parent = $old_ID"); 74 76 } 75 77
Note: See TracChangeset
for help on using the changeset viewer.