Make WordPress Core


Ignore:
Timestamp:
06/25/2015 04:48:14 PM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.