Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (6 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r40776 r42343  
    1414require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
    1515
    16 if ( ! current_user_can( 'manage_network' ) )
     16if ( ! current_user_can( 'manage_network' ) ) {
    1717    wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
     18}
    1819
    19 $title = __( 'Dashboard' );
     20$title       = __( 'Dashboard' );
    2021$parent_file = 'index.php';
    2122
    22 $overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
     23$overview  = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
    2324$overview .= '<p>' . __( 'From here you can:' ) . '</p>';
    2425$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>';
     
    2728$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>';
    2829
    29 get_current_screen()->add_help_tab( array(
    30     'id'      => 'overview',
    31     'title'   => __( 'Overview' ),
    32     'content' => $overview
    33 ) );
     30get_current_screen()->add_help_tab(
     31    array(
     32        'id'      => 'overview',
     33        'title'   => __( 'Overview' ),
     34        'content' => $overview,
     35    )
     36);
    3437
    35 $quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
     38$quick_tasks  = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
    3639$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>';
    3740$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>';
     
    4043$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>';
    4144
    42 get_current_screen()->add_help_tab( array(
    43     'id'      => 'quick-tasks',
    44     'title'   => __( 'Quick Tasks' ),
    45     'content' => $quick_tasks
    46 ) );
     45get_current_screen()->add_help_tab(
     46    array(
     47        'id'      => 'quick-tasks',
     48        'title'   => __( 'Quick Tasks' ),
     49        'content' => $quick_tasks,
     50    )
     51);
    4752
    4853get_current_screen()->set_help_sidebar(
    49     '<p><strong>' . __('For more information:') . '</strong></p>' .
    50     '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>') . '</p>' .
    51     '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>'
     54    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     55    '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>' ) . '</p>' .
     56    '<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
    5257);
    5358
Note: See TracChangeset for help on using the changeset viewer.