WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/20/12 15:55:32 (5 years ago)
Author:
helen
Message:

its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r22669 r23191  
    632632function preview_theme_ob_filter_callback( $matches ) { 
    633633    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 its 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. 
    635635    if ( 
    636636        ( false !== strpos($matches[3], '/wp-admin/') ) 
Note: See TracChangeset for help on using the changeset viewer.