diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 3aa22f9118..ea3cfa46f1 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -70,7 +70,9 @@ function write_post() { // Move child posts to a new parent function relocate_children($old_ID, $new_ID) { global $wpdb; - $wpdb->query("UPDATE $wpdb->posts SET post_parent = $new_ID WHERE post_parent = $old_ID"); + $old_ID = (int) $old_ID; + $new_ID = (int) $new_ID; + return $wpdb->query("UPDATE $wpdb->posts SET post_parent = $new_ID WHERE post_parent = $old_ID"); } // Update an existing post with values provided in $_POST. diff --git a/wp-admin/upload.php b/wp-admin/upload.php deleted file mode 100644 index 6d2fa8b76e..0000000000 --- a/wp-admin/upload.php +++ /dev/null @@ -1,227 +0,0 @@ - - -
- - -

%s) doesn't appear to be writable by WordPress. Check the permissions on the directory and for typos."), get_settings('fileupload_realpath')) ?>

- -$type"; - } - $i = implode(', ', $type_tags); -?> -

KB. If you’re an admin you can configure these values under options.'), $i, get_settings('fileupload_maxk'), 'options-misc.php') ?>

-
-

- -
- -

-

-
- -

- -

-

- -
- -
- -
- - : - -

-

-
-
-

-

-

-

-
- - - - - - - -

-
-
-
- -
- -"; -else - $piece_of_code = "$imgdesc"; - -$piece_of_code = htmlspecialchars( $piece_of_code ); -?> - -

-

%s was uploaded successfully!"), $img1_name); ?>

-

-

-

-

:
- - -
- - KB') ?>
- - -

- -

- \ No newline at end of file