WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/14/2010 04:55:26 PM (10 years ago)
Author:
westi
Message:

Introduce return_empty_array() and use it instead of create_function in the theme preview.

File:
1 edited

Legend:

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

    r14610 r14641  
    11121112
    11131113    // Prevent theme mods to current theme being used on theme being previewed
    1114     add_filter( 'pre_option_mods_' . get_current_theme(), create_function( '', "return array();" ) );
     1114    add_filter( 'pre_option_mods_' . get_current_theme(), '__return_empty_array' );
    11151115
    11161116    ob_start( 'preview_theme_ob_filter' );
Note: See TracChangeset for help on using the changeset viewer.