Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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-includes/rest-api/class-wp-rest-response.php

    r41162 r42343  
    233233            $error->add( $data['code'], $data['message'], $data['data'] );
    234234            if ( ! empty( $data['additional_errors'] ) ) {
    235                 foreach( $data['additional_errors'] as $err ) {
     235                foreach ( $data['additional_errors'] as $err ) {
    236236                    $error->add( $err['code'], $err['message'], $err['data'] );
    237237                }
     
    254254        $curies = array(
    255255            array(
    256                 'name' => 'wp',
    257                 'href' => 'https://api.w.org/{rel}',
     256                'name'      => 'wp',
     257                'href'      => 'https://api.w.org/{rel}',
    258258                'templated' => true,
    259259            ),
Note: See TracChangeset for help on using the changeset viewer.