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/tests/phpunit/tests/xmlrpc/wp/uploadFile.php

    r40417 r42343  
    1818        $filename = ( DIR_TESTDATA . '/images/a2-small.jpg' );
    1919        $contents = file_get_contents( $filename );
    20         $data = array(
     20        $data     = array(
    2121            'name' => 'a2-small.jpg',
    2222            'type' => 'image/jpeg',
    23             'bits' => $contents
     23            'bits' => $contents,
    2424        );
    25 
    2625
    2726        $result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );
Note: See TracChangeset for help on using the changeset viewer.