Make WordPress Core


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

    r36709 r42343  
    1414}
    1515
    16 if ( defined('ABSPATH') )
    17     require_once(ABSPATH . 'wp-load.php');
    18 else
     16if ( defined( 'ABSPATH' ) ) {
     17    require_once( ABSPATH . 'wp-load.php' );
     18} else {
    1919    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     20}
    2021
    2122/** Allow for cross-domain requests (from the front end). */
    2223send_origin_headers();
    2324
    24 require_once(ABSPATH . 'wp-admin/includes/admin.php');
     25require_once( ABSPATH . 'wp-admin/includes/admin.php' );
    2526
    2627nocache_headers();
Note: See TracChangeset for help on using the changeset viewer.