WordPress.org

Make WordPress Core

Ticket #16432: 16432-alt2.diff

File 16432-alt2.diff, 456 bytes (added by GaryJ, 7 years ago)

Check against null in short circuit.

  • wp-includes/formatting.php

     
    18751875 * @return string Text with converted entities.
    18761876 */
    18771877function ent2ncr($text) {
     1878
     1879        if( $filtered = apply_filters( 'ent2ncr', null, $text ) )
     1880                return $filtered;
     1881
    18781882        $to_ncr = array(
    18791883                '"' => '"',
    18801884                '&' => '&',