Make WordPress Core

Changeset 32940


Ignore:
Timestamp:
06/25/2015 04:48:14 PM (11 years ago)
Author:
wonderboymusic
Message:

prep_atom_text_construct() and before_last_bar() should strictly check against false when using str(r)?pos().

Sidenote: there's a function named before_last_bar.

See #32444.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r32845 r32940  
    581581        }
    582582
    583         if (strpos($data, ']]>') == false) {
     583        if (strpos($data, ']]>') === false) {
    584584                return array('html', "<![CDATA[$data]]>");
    585585        } else {
  • trunk/src/wp-includes/l10n.php

    r32605 r32940  
    117117function before_last_bar( $string ) {
    118118        $last_bar = strrpos( $string, '|' );
    119         if ( false == $last_bar )
     119        if ( false === $last_bar )
    120120                return $string;
    121121        else
Note: See TracChangeset for help on using the changeset viewer.