Changeset 38785 for trunk/src/wp-includes/kses.php
- Timestamp:
- 10/13/2016 10:24:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r38511 r38785 528 528 $allowed_protocols = wp_allowed_protocols(); 529 529 $string = wp_kses_no_null( $string, array( 'slash_zero' => 'keep' ) ); 530 $string = wp_kses_js_entities($string);531 530 $string = wp_kses_normalize_entities($string); 532 531 $string = wp_kses_hook($string, $allowed_html, $allowed_protocols); // WP changed the order of these funcs and added args to wp_kses_hook … … 551 550 $allowed_protocols = wp_allowed_protocols(); 552 551 $string = wp_kses_no_null( $string, array( 'slash_zero' => 'keep' ) ); 553 $string = wp_kses_js_entities( $string );554 552 555 553 // Preserve leading and trailing whitespace. … … 1297 1295 1298 1296 /** 1299 * Removes the HTML JavaScript entities found in early versions of Netscape 4.1300 *1301 * @since 1.0.01302 *1303 * @param string $string1304 * @return string1305 */1306 function wp_kses_js_entities($string) {1307 return preg_replace('%&\s*\{[^}]*(\}\s*;?|$)%', '', $string);1308 }1309 1310 /**1311 1297 * Handles parsing errors in wp_kses_hair(). 1312 1298 *
Note: See TracChangeset
for help on using the changeset viewer.