WordPress.org

Make WordPress Core

Ticket #41213: 41213.patch

File 41213.patch, 852 bytes (added by ajayghaghretiya1, 2 years ago)
  • src/wp-admin/my-sites.php

     
    99
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 if ( !is_multisite() )
     12if ( ! is_multisite() )
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    1515if ( ! current_user_can('read') )
  • src/wp-admin/plugin-editor.php

     
    1414        exit();
    1515}
    1616
    17 if ( !current_user_can('edit_plugins') )
     17if ( ! current_user_can('edit_plugins') )
    1818        wp_die( __('Sorry, you are not allowed to edit plugins for this site.') );
    1919
    2020$title = __("Edit Plugins");