Changes from trunk/wp-includes/kses.php at r17228 to branches/3.0/wp-includes/kses.php at r17186
- File:
-
- 1 edited
-
branches/3.0/wp-includes/kses.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/kses.php
r17228 r17186 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 *32 31 */ 33 32 … … 555 554 $pass_allowed_html = $allowed_html; 556 555 $pass_allowed_protocols = $allowed_protocols; 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 ); 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); 569 558 } 570 559
Note: See TracChangeset
for help on using the changeset viewer.