Formatting: Avoid a PHP warning when `wptexturize()` is called with a trailing less-than symbol.

Props westonruter.
Fixes #35864.
Built from https://develop.svn.wordpress.org/trunk@36578


git-svn-id: http://core.svn.wordpress.org/trunk@36545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-02-18 20:31:27 +00:00
parent cc1261f7fd
commit 529a53e903
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ function wptexturize_primes( $haystack, $needle, $prime, $open_quote, $close_quo
*/
function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) {
// Is it an opening tag or closing tag?
if ( '/' !== $text[1] ) {
if ( isset( $text[1] ) && '/' !== $text[1] ) {
$opening_tag = true;
$name_offset = 1;
} elseif ( 0 == count( $stack ) ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36577';
$wp_version = '4.5-alpha-36578';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.