Changes from branches/3.0/wp-includes/kses.php at r17186 to trunk/wp-includes/kses.php at r17228
- File:
-
- 1 edited
-
trunk/wp-includes/kses.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r17186 r17228 18 18 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit 19 19 * http://www.gnu.org/licenses/gpl.html 20 * 20 * 21 21 * [kses strips evil scripts!] 22 22 * … … 29 29 * @package External 30 30 * @subpackage KSES 31 * 31 32 */ 32 33 … … 554 555 $pass_allowed_html = $allowed_html; 555 556 $pass_allowed_protocols = $allowed_protocols; 556 return preg_replace_callback('%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%', 557 create_function('$match', 'global $pass_allowed_html, $pass_allowed_protocols; return wp_kses_split2($match[1], $pass_allowed_html, $pass_allowed_protocols);'), $string); 557 return preg_replace_callback( '%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%', '_wp_kses_split_callback', $string ); 558 } 559 560 /** 561 * Callback for wp_kses_split. 562 * 563 * @since 3.1.0 564 * @access private 565 */ 566 function _wp_kses_split_callback( $match ) { 567 global $pass_allowed_html, $pass_allowed_protocols; 568 return wp_kses_split2( $match[1], $pass_allowed_html, $pass_allowed_protocols ); 558 569 } 559 570
Note: See TracChangeset
for help on using the changeset viewer.