mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: https://develop.svn.wordpress.org/trunk@14641 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1111,7 +1111,7 @@ function preview_theme() {
|
||||
}
|
||||
|
||||
// Prevent theme mods to current theme being used on theme being previewed
|
||||
add_filter( 'pre_option_mods_' . get_current_theme(), create_function( '', "return array();" ) );
|
||||
add_filter( 'pre_option_mods_' . get_current_theme(), '__return_empty_array' );
|
||||
|
||||
ob_start( 'preview_theme_ob_filter' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user