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

    r28067 r42343  
    1010    function test_set_option_no_escape_strings() {
    1111        $this->make_user_by_role( 'administrator' );
    12         $string_with_quote = "Mary's Lamb Shop";
     12        $string_with_quote         = "Mary's Lamb Shop";
    1313        $escaped_string_with_quote = esc_html( $string_with_quote ); // title is passed through esc_html()
    1414
    1515        update_option( 'default_comment_status', 'closed' );
    1616        $this->assertEquals( 'closed', get_option( 'default_comment_status' ) );
    17         $result = $this->myxmlrpcserver->wp_setOptions( array( 1, 'administrator', 'administrator', array(
    18             'blog_title' => $string_with_quote,
    19             'default_comment_status' => 'open',
    20         ) ) );
     17        $result = $this->myxmlrpcserver->wp_setOptions(
     18            array(
     19                1,
     20                'administrator',
     21                'administrator',
     22                array(
     23                    'blog_title'             => $string_with_quote,
     24                    'default_comment_status' => 'open',
     25                ),
     26            )
     27        );
    2128
    2229        $this->assertInternalType( 'array', $result );
Note: See TracChangeset for help on using the changeset viewer.