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: http://core.svn.wordpress.org/trunk@24188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b34ca3234e
commit
3b4a087007
|
@ -2017,7 +2017,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||||
$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
|
$html = '<a href="' . esc_url( $url ) . '"' . $rel . '>' . $html . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
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 ) ) {
|
if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) {
|
||||||
$align = isset( $attachment['align'] ) ? $attachment['align'] : 'none';
|
$align = isset( $attachment['align'] ) ? $attachment['align'] : 'none';
|
||||||
|
|
|
@ -763,7 +763,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
$this->run($options);
|
$this->run($options);
|
||||||
|
|
||||||
remove_filter('upgrader_source_selection', array(&$this, 'check_package') );
|
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) )
|
if ( ! $this->result || is_wp_error($this->result) )
|
||||||
return $this->result;
|
return $this->result;
|
||||||
|
@ -808,9 +808,9 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
|
|
||||||
$this->run($options);
|
$this->run($options);
|
||||||
|
|
||||||
remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
|
remove_filter('upgrader_pre_install', array(&$this, 'current_before'));
|
||||||
remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
|
remove_filter('upgrader_post_install', array(&$this, 'current_after'));
|
||||||
remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
|
remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'));
|
||||||
|
|
||||||
if ( ! $this->result || is_wp_error($this->result) )
|
if ( ! $this->result || is_wp_error($this->result) )
|
||||||
return $this->result;
|
return $this->result;
|
||||||
|
@ -899,9 +899,9 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
$this->skin->footer();
|
$this->skin->footer();
|
||||||
|
|
||||||
// Cleanup our hooks, in case something else does a upgrade on this connection.
|
// 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_pre_install', array(&$this, 'current_before'));
|
||||||
remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
|
remove_filter('upgrader_post_install', array(&$this, 'current_after'));
|
||||||
remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
|
remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'));
|
||||||
|
|
||||||
// Force refresh of theme update information
|
// Force refresh of theme update information
|
||||||
wp_clean_themes_cache();
|
wp_clean_themes_cache();
|
||||||
|
|
Loading…
Reference in New Issue