Make WordPress Core

Changeset 24125


Ignore:
Timestamp:
04/29/2013 01:25:15 PM (13 years ago)
Author:
nacin
Message:

delete_user_setting() and remove_action() were getting called with too many args. props rlerdorf. see #24210.

Location:
trunk
Files:
2 edited

Legend:

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

    r23634 r24125  
    348348
    349349        if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
    350                 delete_user_setting('default_password_nag', $user_ID);
     350                delete_user_setting('default_password_nag');
    351351                update_user_option($user_ID, 'default_password_nag', false, true);
    352352        }
  • trunk/wp-includes/rewrite.php

    r23524 r24125  
    9090        $hook = 'do_feed_' . $feedname;
    9191        // Remove default function hook
    92         remove_action($hook, $hook, 10, 1);
     92        remove_action($hook, $hook);
    9393        add_action($hook, $function, 10, 1);
    9494        return $hook;
Note: See TracChangeset for help on using the changeset viewer.