Ticket #20852: 20852.diff
File 20852.diff, 558 bytes (added by , 13 years ago) |
---|
-
wp-admin/customize.php
18 18 if ( ! $theme ) 19 19 $theme = get_stylesheet(); 20 20 21 // Make sure theme exists first, and is allowed (multisite only). 22 $theme = wp_get_theme( $theme ); 23 if ( ! $theme->exists() || ! $theme->is_allowed() ) 24 wp_die( __( 'Cheatin’ uh?' ) ); 25 21 26 $registered = $wp_scripts->registered; 22 27 $wp_scripts = new WP_Scripts; 23 28 $wp_scripts->registered = $registered;