`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. Built from https://develop.svn.wordpress.org/trunk@32940 git-svn-id: http://core.svn.wordpress.org/trunk@32911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7453d12390
commit
b9e8ee95b5
|
@ -580,7 +580,7 @@ function prep_atom_text_construct($data) {
|
|||
}
|
||||
}
|
||||
|
||||
if (strpos($data, ']]>') == false) {
|
||||
if (strpos($data, ']]>') === false) {
|
||||
return array('html', "<![CDATA[$data]]>");
|
||||
} else {
|
||||
return array('html', htmlspecialchars($data));
|
||||
|
|
|
@ -116,7 +116,7 @@ function translate( $text, $domain = 'default' ) {
|
|||
*/
|
||||
function before_last_bar( $string ) {
|
||||
$last_bar = strrpos( $string, '|' );
|
||||
if ( false == $last_bar )
|
||||
if ( false === $last_bar )
|
||||
return $string;
|
||||
else
|
||||
return substr( $string, 0, $last_bar );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32939';
|
||||
$wp_version = '4.3-alpha-32940';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue