From 06507af832acbebd371d17f0da8e86be1ef4afed Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 7 May 2013 15:55:31 +0000 Subject: [PATCH] remove_filter() only accepts three arguments: filter, callback, and priority. An accepted args parameter is only used for adds. props rlerdorf. see #24210. git-svn-id: https://develop.svn.wordpress.org/trunk@24188 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/ajax-actions.php | 2 +- wp-admin/includes/class-wp-upgrader.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 677b42808f..06d47af870 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -2017,7 +2017,7 @@ function wp_ajax_send_attachment_to_editor() { $html = '' . $html . ''; } - remove_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 ); + remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' ); if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) { $align = isset( $attachment['align'] ) ? $attachment['align'] : 'none'; diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index c8815c04f2..55c79b6574 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -763,7 +763,7 @@ class Theme_Upgrader extends WP_Upgrader { $this->run($options); remove_filter('upgrader_source_selection', array(&$this, 'check_package') ); - remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter'), 10, 3); + remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter')); if ( ! $this->result || is_wp_error($this->result) ) return $this->result; @@ -808,9 +808,9 @@ class Theme_Upgrader extends WP_Upgrader { $this->run($options); - remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2); - remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2); - remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4); + remove_filter('upgrader_pre_install', array(&$this, 'current_before')); + remove_filter('upgrader_post_install', array(&$this, 'current_after')); + remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme')); if ( ! $this->result || is_wp_error($this->result) ) return $this->result; @@ -899,9 +899,9 @@ class Theme_Upgrader extends WP_Upgrader { $this->skin->footer(); // Cleanup our hooks, in case something else does a upgrade on this connection. - remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2); - remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2); - remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4); + remove_filter('upgrader_pre_install', array(&$this, 'current_before')); + remove_filter('upgrader_post_install', array(&$this, 'current_after')); + remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme')); // Force refresh of theme update information wp_clean_themes_cache();