Changeset 23191 for trunk/wp-includes/theme.php
- Timestamp:
- 12/20/2012 03:55:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r22669 r23191 632 632 function preview_theme_ob_filter_callback( $matches ) { 633 633 if ( strpos($matches[4], 'onclick') !== false ) 634 $matches[4] = preg_replace('#onclick=([\'"]).*?(?<!\\\)\\1#i', '', $matches[4]); //Strip out any onclicks from rest of <a>. (?<!\\\) means to ignore the '" if it s escaped by \ to prevent breaking mid-attribute.634 $matches[4] = preg_replace('#onclick=([\'"]).*?(?<!\\\)\\1#i', '', $matches[4]); //Strip out any onclicks from rest of <a>. (?<!\\\) means to ignore the '" if it's escaped by \ to prevent breaking mid-attribute. 635 635 if ( 636 636 ( false !== strpos($matches[3], '/wp-admin/') )
Note: See TracChangeset
for help on using the changeset viewer.