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();