diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-22 14:24:41 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-22 14:24:41 +0000 |
commit | 5fd2feb54c38fc6f357026aadd8abfd224631c26 (patch) | |
tree | e656773b126e32d85ba8d9578a6e7e5fff90652a /wp-admin/custom-header.php | |
parent | c463abff16013fb7b011758a314d444278212894 (diff) | |
download | wordpress-mu-5fd2feb54c38fc6f357026aadd8abfd224631c26.tar.gz wordpress-mu-5fd2feb54c38fc6f357026aadd8abfd224631c26.tar.xz wordpress-mu-5fd2feb54c38fc6f357026aadd8abfd224631c26.zip |
WP Merge to 4914
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@896 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/custom-header.php')
-rw-r--r-- | wp-admin/custom-header.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 8b0ad34..4db9f71 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -286,8 +286,7 @@ Event.observe( window, 'load', hide_text ); // cleanup $file = get_attached_file( $_POST['attachment_id'] ); $medium = str_replace(basename($file), 'midsize-'.basename($file), $file); - @unlink( $medium ); - apply_filters( 'wp_delete_file', $medium ); + @unlink( apply_filters( 'wp_delete_file', $medium ) ); wp_delete_attachment( $_POST['attachment_id'] ); return $this->finished(); |