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-footer.php

    r42201 r42343  
    88
    99// don't load directly
    10 if ( !defined('ABSPATH') )
    11     die('-1');
     10if ( ! defined( 'ABSPATH' ) ) {
     11    die( '-1' );
     12}
    1213
    1314/**
     
    100101
    101102// get_site_option() won't exist when auto upgrading from <= 2.7
    102 if ( function_exists('get_site_option') ) {
    103     if ( false === get_site_option('can_compress_scripts') )
     103if ( function_exists( 'get_site_option' ) ) {
     104    if ( false === get_site_option( 'can_compress_scripts' ) ) {
    104105        compression_test();
     106    }
    105107}
    106108
Note: See TracChangeset for help on using the changeset viewer.