Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47207 r47219  
    307307
    308308    // Allow [[foo]] syntax for escaping a tag.
    309     if ( $m[1] == '[' && $m[6] == ']' ) {
     309    if ( '[' === $m[1] && ']' === $m[6] ) {
    310310        return substr( $m[0], 1, -1 );
    311311    }
     
    664664function strip_shortcode_tag( $m ) {
    665665    // Allow [[foo]] syntax for escaping a tag.
    666     if ( $m[1] == '[' && $m[6] == ']' ) {
     666    if ( '[' === $m[1] && ']' === $m[6] ) {
    667667        return substr( $m[0], 1, -1 );
    668668    }
Note: See TracChangeset for help on using the changeset viewer.