Changeset 48121 for trunk/src/wp-includes/kses.php
- Timestamp:
- 06/22/2020 05:24:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r48104 r48121 1721 1721 * 1722 1722 * This function processes URL protocols, checks to see if they're in the 1723 * whitelist or not, and returns different data depending on the answer. 1723 * list of allowed protocols or not, and returns different data depending 1724 * on the answer. 1724 1725 * 1725 1726 * @access private … … 1727 1728 * @since 1.0.0 1728 1729 * 1729 * @param string $string URI scheme to check against the whitelist.1730 * @param string $string URI scheme to check against the list of allowed protocols. 1730 1731 * @param string[] $allowed_protocols Array of allowed URL protocols. 1731 1732 * @return string Sanitized content. … … 1773 1774 $string = str_replace( '&', '&', $string ); 1774 1775 1775 // Change back the allowed entities in our entity whitelist.1776 // Change back the allowed entities in our list of allowed entities. 1776 1777 if ( 'xml' === $context ) { 1777 1778 $string = preg_replace_callback( '/&([A-Za-z]{2,8}[0-9]{0,2});/', 'wp_kses_xml_named_entities', $string ); … … 1913 1914 * This function decodes numeric HTML entities (`A` and `A`). 1914 1915 * It doesn't do anything with named entities like `ä`, but we don't 1915 * need them in the URL protocol whitelistingsystem anyway.1916 * need them in the allowed URL protocols system anyway. 1916 1917 * 1917 1918 * @since 1.0.0
Note: See TracChangeset
for help on using the changeset viewer.