Make WordPress Core

Changeset 24188


Ignore:
Timestamp:
05/07/2013 03:55:31 PM (11 years ago)
Author:
nacin
Message:

remove_filter() only accepts three arguments: filter, callback, and priority. An accepted args parameter is only used for adds.

props rlerdorf.
see #24210.

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r24157 r24188  
    20182018    }
    20192019
    2020     remove_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 );
     2020    remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' );
    20212021
    20222022    if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) {
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r24123 r24188  
    764764
    765765        remove_filter('upgrader_source_selection', array(&$this, 'check_package') );
    766         remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter'), 10, 3);
     766        remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter'));
    767767
    768768        if ( ! $this->result || is_wp_error($this->result) )
     
    809809        $this->run($options);
    810810
    811         remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
    812         remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
    813         remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
     811        remove_filter('upgrader_pre_install', array(&$this, 'current_before'));
     812        remove_filter('upgrader_post_install', array(&$this, 'current_after'));
     813        remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'));
    814814
    815815        if ( ! $this->result || is_wp_error($this->result) )
     
    900900
    901901        // Cleanup our hooks, in case something else does a upgrade on this connection.
    902         remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
    903         remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
    904         remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
     902        remove_filter('upgrader_pre_install', array(&$this, 'current_before'));
     903        remove_filter('upgrader_post_install', array(&$this, 'current_after'));
     904        remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'));
    905905
    906906        // Force refresh of theme update information
Note: See TracChangeset for help on using the changeset viewer.