Make WordPress Core

Changeset 44642


Ignore:
Timestamp:
01/17/2019 09:44:30 PM (6 years ago)
Author:
desrosj
Message:

Tests: Do not include the delimiter parameter in ucwords() calls.

This parameter is not supported in PHP < 5.4. Introduced in [44641].

See #44672.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-users-controller.php

    r44641 r44642  
    15021502        $user = get_userdata( self::$editor );
    15031503
    1504         $updated_email_with_case_change = ucwords( $user->user_email, '@' );
     1504        $updated_email_with_case_change = ucwords( $user->user_email );
    15051505
    15061506        $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/users/%d', self::$editor ) );
     
    15221522        $subscriber = get_userdata( self::$subscriber );
    15231523
    1524         $updated_email_with_case_change = ucwords( $subscriber->user_email, '@' );
     1524        $updated_email_with_case_change = ucwords( $subscriber->user_email );
    15251525
    15261526        $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/users/%d', self::$editor ) );
Note: See TracChangeset for help on using the changeset viewer.