Make WordPress Core


Ignore:
Timestamp:
03/03/2010 07:04:25 AM (15 years ago)
Author:
nacin
Message:

Switch the multisite constant EDIT_ANY_USER to a filter. Also ensure we're back compat with POST_BY_EMAIL. see #12381

File:
1 edited

Legend:

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

    r13539 r13568  
    6262
    6363
    64 // Only allow site admins to edit every user.
    65 if ( is_multisite() && !defined( "EDIT_ANY_USER" ) && !is_super_admin() && $user_id != $current_user->ID )
     64// Only allow super admins on multisite to edit every user.
     65if ( is_multisite() && ! is_super_admin() && $user_id != $current_user->ID && apply_filters( 'enable_edit_any_user_configuration', true ) )
    6666    wp_die( __( 'You do not have permission to edit this user.' ) );
    6767
Note: See TracChangeset for help on using the changeset viewer.