Make WordPress Core

Ticket #51620: 51620.diff

File 51620.diff, 712 bytes (added by ediamin, 4 years ago)
  • src/wp-includes/kses.php

    diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php
    index 1e7739df91..3a11d8a69f 100644
    a b function wp_kses_bad_protocol_once2( $string, $allowed_protocols ) { 
    17771777 * Converts and fixes HTML entities.
    17781778 *
    17791779 * This function normalizes HTML entities. It will convert `AT&T` to the correct
    1780  * `AT&T`, `:` to `:`, `&#XYZZY;` to `&#XYZZY;` and so on.
     1780 * `AT&T`, `:` to `:`, `&#XYZZY;` to `&#XYZZY;` and so on.
    17811781 *
    17821782 * When `$context` is set to 'xml', HTML entities are converted to their code points.  For
    17831783 * example, `AT&T…&#XYZZY;` is converted to `AT&T…&#XYZZY;`.