mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Remove disable_some_pages(). Rely on cap checks. fixes #11770
git-svn-id: https://develop.svn.wordpress.org/trunk@12764 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,6 +12,9 @@ require_once('admin.php');
|
||||
if ( !current_user_can('create_users') )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
if ( is_multisite() && !get_site_option( 'add_new_users' ) )
|
||||
wp_die( __('Page disabled by the administrator') );
|
||||
|
||||
/** WordPress Registration API */
|
||||
require_once( ABSPATH . WPINC . '/registration.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user