WordPress.org

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/noop.php

    r39950 r42343  
    6666 * @ignore
    6767 */
    68 function is_admin() {return true;}
     68function is_admin() {
     69    return true;}
    6970
    7071/**
     
    9495
    9596if ( ! function_exists( 'json_encode' ) ) :
    96 /**
    97  * @ignore
    98  */
    99 function json_encode() {}
     97    /**
     98    * @ignore
     99    */
     100    function json_encode() {}
    100101endif;
    101102
    102103function get_file( $path ) {
    103104
    104     if ( function_exists('realpath') ) {
     105    if ( function_exists( 'realpath' ) ) {
    105106        $path = realpath( $path );
    106107    }
Note: See TracChangeset for help on using the changeset viewer.