WordPress.org

Make WordPress Core


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

    r32845 r32940  
    581581    }
    582582
    583     if (strpos($data, ']]>') == false) {
     583    if (strpos($data, ']]>') === false) {
    584584        return array('html', "<![CDATA[$data]]>");
    585585    } else {
Note: See TracChangeset for help on using the changeset viewer.