Changeset 16313 for trunk/wp-includes/kses.php
- Timestamp:
- 11/11/2010 10:50:36 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r15383 r16313 547 547 $pass_allowed_html = $allowed_html; 548 548 $pass_allowed_protocols = $allowed_protocols; 549 return preg_replace_callback('%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%', 550 create_function('$match', 'global $pass_allowed_html, $pass_allowed_protocols; return wp_kses_split2($match[1], $pass_allowed_html, $pass_allowed_protocols);'), $string); 549 return preg_replace_callback( '%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%', '_wp_kses_split_callback', $string ); 550 } 551 552 /** 553 * Callback for wp_kses_split. 554 * 555 * @since 3.1.0 556 * @access private 557 */ 558 function _wp_kses_split_callback( $match ) { 559 global $pass_allowed_html, $pass_allowed_protocols; 560 return wp_kses_split2( $match[1], $pass_allowed_html, $pass_allowed_protocols ); 551 561 } 552 562
Note: See TracChangeset
for help on using the changeset viewer.