From c773470866974ec33fc54b7b92d5185c5e7b6818 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 27 Sep 2005 03:42:17 +0000 Subject: [PATCH] Minor cleanups. git-svn-id: http://svn.automattic.com/wordpress/trunk@2923 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 +- wp-admin/upload.php | 227 ----------------------------------- 2 files changed, 3 insertions(+), 228 deletions(-) delete mode 100644 wp-admin/upload.php diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 3aa22f911..ea3cfa46f 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 6d2fa8b76..000000000 --- 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