Make WordPress Core


Ignore:
Timestamp:
09/16/2023 06:48:59 AM (12 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove extra parentheses in a few str_contains() conditionals.

Follow-up to [55988].

Props Cybr.
See #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r56561 r56596  
    45234523    }
    45244524
    4525     if ( ( str_contains( $url, '[' ) ) || ( str_contains( $url, ']' ) ) ) {
     4525    if ( str_contains( $url, '[' ) || str_contains( $url, ']' ) ) {
    45264526
    45274527        $parsed = wp_parse_url( $url );
Note: See TracChangeset for help on using the changeset viewer.