Make WordPress Core

Changeset 30720


Ignore:
Timestamp:
12/03/2014 08:46:31 AM (11 years ago)
Author:
DrewAPicture
Message:

Backtick-escape three sets of HTML entities used in DocBlock descriptions in wp-includes/kses.php.

Without the escaping, the Code Reference/browser may inadvertently attempt to convert and display entities.

Fixes #30473.

File:
1 edited

Legend:

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

    r30425 r30720  
    11731173 * Converts and fixes HTML entities.
    11741174 *
    1175  * This function normalizes HTML entities. It will convert "AT&T" to the correct
    1176  * "AT&T", ":" to ":", "&#XYZZY;" to "&#XYZZY;" and so on.
     1175 * This function normalizes HTML entities. It will convert `AT&T` to the correct
     1176 * `AT&T", ":" to ":", "&#XYZZY;" to "&#XYZZY;` and so on.
    11771177 *
    11781178 * @since 1.0.0
     
    12191219 * Callback for wp_kses_normalize_entities() regular expression.
    12201220 *
    1221  * This function helps wp_kses_normalize_entities() to only accept 16-bit values
    1222  * and nothing more for &#number; entities.
     1221 * This function helps {@see wp_kses_normalize_entities()} to only accept 16-bit
     1222 * values and nothing more for `&#number;` entities.
    12231223 *
    12241224 * @access private
     
    12781278 * Convert all entities to their character counterparts.
    12791279 *
    1280  * This function decodes numeric HTML entities (A and A). It doesn't do
    1281  * anything with other entities like ä, but we don't need them in the URL
    1282  * protocol whitelisting system anyway.
     1280 * This function decodes numeric HTML entities (`A` and `A`).
     1281 * It doesn't do anything with other entities like ä, but we don't
     1282 * need them in the URL protocol whitelisting system anyway.
    12831283 *
    12841284 * @since 1.0.0
Note: See TracChangeset for help on using the changeset viewer.