WordPress.org

Make WordPress Core

Changeset 26236


Ignore:
Timestamp:
11/16/2013 05:37:26 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Remove redundant current_user_can() check. props jeremyfelt. fixes #26057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r25962 r26236  
    3434    check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
    3535
    36     if ( ! current_user_can( 'manage_sites' ) )
    37         wp_die( __( 'You do not have permission to access this page.' ) );
    38 
    3936    if ( ! is_array( $_POST['blog'] ) )
    4037        wp_die( __( 'Can’t create an empty site.' ) );
     38
    4139    $blog = $_POST['blog'];
    4240    $domain = '';
Note: See TracChangeset for help on using the changeset viewer.