Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 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/includes/admin.php

    r38470 r42343  
    88 */
    99
    10 if ( ! defined('WP_ADMIN') ) {
     10if ( ! defined( 'WP_ADMIN' ) ) {
    1111    /*
    1212     * This file is being included from a file other than wp-admin/admin.php, so
     
    1818
    1919/** WordPress Administration Hooks */
    20 require_once(ABSPATH . 'wp-admin/includes/admin-filters.php');
     20require_once( ABSPATH . 'wp-admin/includes/admin-filters.php' );
    2121
    2222/** WordPress Bookmark Administration API */
    23 require_once(ABSPATH . 'wp-admin/includes/bookmark.php');
     23require_once( ABSPATH . 'wp-admin/includes/bookmark.php' );
    2424
    2525/** WordPress Comment Administration API */
    26 require_once(ABSPATH . 'wp-admin/includes/comment.php');
     26require_once( ABSPATH . 'wp-admin/includes/comment.php' );
    2727
    2828/** WordPress Administration File API */
    29 require_once(ABSPATH . 'wp-admin/includes/file.php');
     29require_once( ABSPATH . 'wp-admin/includes/file.php' );
    3030
    3131/** WordPress Image Administration API */
    32 require_once(ABSPATH . 'wp-admin/includes/image.php');
     32require_once( ABSPATH . 'wp-admin/includes/image.php' );
    3333
    3434/** WordPress Media Administration API */
    35 require_once(ABSPATH . 'wp-admin/includes/media.php');
     35require_once( ABSPATH . 'wp-admin/includes/media.php' );
    3636
    3737/** WordPress Import Administration API */
    38 require_once(ABSPATH . 'wp-admin/includes/import.php');
     38require_once( ABSPATH . 'wp-admin/includes/import.php' );
    3939
    4040/** WordPress Misc Administration API */
    41 require_once(ABSPATH . 'wp-admin/includes/misc.php');
     41require_once( ABSPATH . 'wp-admin/includes/misc.php' );
    4242
    4343/** WordPress Options Administration API */
    44 require_once(ABSPATH . 'wp-admin/includes/options.php');
     44require_once( ABSPATH . 'wp-admin/includes/options.php' );
    4545
    4646/** WordPress Plugin Administration API */
    47 require_once(ABSPATH . 'wp-admin/includes/plugin.php');
     47require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    4848
    4949/** WordPress Post Administration API */
    50 require_once(ABSPATH . 'wp-admin/includes/post.php');
     50require_once( ABSPATH . 'wp-admin/includes/post.php' );
    5151
    5252/** WordPress Administration Screen API */
    53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');
    54 require_once(ABSPATH . 'wp-admin/includes/screen.php');
     53require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
     54require_once( ABSPATH . 'wp-admin/includes/screen.php' );
    5555
    5656/** WordPress Taxonomy Administration API */
    57 require_once(ABSPATH . 'wp-admin/includes/taxonomy.php');
     57require_once( ABSPATH . 'wp-admin/includes/taxonomy.php' );
    5858
    5959/** WordPress Template Administration API */
    60 require_once(ABSPATH . 'wp-admin/includes/template.php');
     60require_once( ABSPATH . 'wp-admin/includes/template.php' );
    6161
    6262/** WordPress List Table Administration API and base class */
    63 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
    64 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php');
    65 require_once(ABSPATH . 'wp-admin/includes/list-table.php');
     63require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
     64require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php' );
     65require_once( ABSPATH . 'wp-admin/includes/list-table.php' );
    6666
    6767/** WordPress Theme Administration API */
    68 require_once(ABSPATH . 'wp-admin/includes/theme.php');
     68require_once( ABSPATH . 'wp-admin/includes/theme.php' );
    6969
    7070/** WordPress User Administration API */
    71 require_once(ABSPATH . 'wp-admin/includes/user.php');
     71require_once( ABSPATH . 'wp-admin/includes/user.php' );
    7272
    7373/** WordPress Site Icon API */
    74 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
     74require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' );
    7575
    7676/** WordPress Update Administration API */
    77 require_once(ABSPATH . 'wp-admin/includes/update.php');
     77require_once( ABSPATH . 'wp-admin/includes/update.php' );
    7878
    7979/** WordPress Deprecated Administration API */
    80 require_once(ABSPATH . 'wp-admin/includes/deprecated.php');
     80require_once( ABSPATH . 'wp-admin/includes/deprecated.php' );
    8181
    8282/** WordPress Multisite support API */
    8383if ( is_multisite() ) {
    84     require_once(ABSPATH . 'wp-admin/includes/ms-admin-filters.php');
    85     require_once(ABSPATH . 'wp-admin/includes/ms.php');
    86     require_once(ABSPATH . 'wp-admin/includes/ms-deprecated.php');
     84    require_once( ABSPATH . 'wp-admin/includes/ms-admin-filters.php' );
     85    require_once( ABSPATH . 'wp-admin/includes/ms.php' );
     86    require_once( ABSPATH . 'wp-admin/includes/ms-deprecated.php' );
    8787}
Note: See TracChangeset for help on using the changeset viewer.