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/tests/phpunit/tests/comment/wpBlacklistCheck.php

    r38048 r42343  
    1414        $user_agent   = '';
    1515
    16         update_option( 'blacklist_keys',"well\nfoo" );
     16        update_option( 'blacklist_keys', "well\nfoo" );
    1717
    1818        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
     
    3232        $user_agent   = '';
    3333
    34         update_option( 'blacklist_keys',"halfway\nfoo" );
     34        update_option( 'blacklist_keys', "halfway\nfoo" );
    3535
    3636        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
     
    4747        $user_agent   = '';
    4848
    49         update_option( 'blacklist_keys',"sideshow\nfoo" );
     49        update_option( 'blacklist_keys', "sideshow\nfoo" );
    5050
    5151        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
     
    6262        $user_agent   = '';
    6363
    64         update_option( 'blacklist_keys',"example\nfoo" );
     64        update_option( 'blacklist_keys', "example\nfoo" );
    6565
    6666        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
     
    8080        $user_agent   = '';
    8181
    82         update_option( 'blacklist_keys',"/spam/" );
     82        update_option( 'blacklist_keys', '/spam/' );
    8383
    8484        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
     
    9595        $user_agent   = '';
    9696
    97         update_option( 'blacklist_keys',"sideshow\nfoobar" );
     97        update_option( 'blacklist_keys', "sideshow\nfoobar" );
    9898
    9999        $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
Note: See TracChangeset for help on using the changeset viewer.