Make WordPress Core


Ignore:
Timestamp:
02/18/2016 08:30:54 PM (9 years ago)
Author:
ocean90
Message:

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

Props westonruter.
Fixes #35864.

File:
1 edited

Legend:

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

    r36488 r36578  
    375375function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) {
    376376    // Is it an opening tag or closing tag?
    377     if ( '/' !== $text[1] ) {
     377    if ( isset( $text[1] ) && '/' !== $text[1] ) {
    378378        $opening_tag = true;
    379379        $name_offset = 1;
Note: See TracChangeset for help on using the changeset viewer.