WordPress.org

Make WordPress Core

Ticket #16432: 16432-alt3.diff

File 16432-alt3.diff, 460 bytes (added by GaryJ, 7 years ago)

Proper identity check against null in short circuit

  • wp-includes/formatting.php

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