mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Custom background UI updates. props ocean90 for initial patch, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -405,9 +405,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
'warnDeleteMenuItem' => __( "You are about to permanently delete this menu item. \n 'Cancel' to stop, 'OK' to delete." ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'custom-background', "/wp-admin/js/custom-background$suffix.js", array('farbtastic'), '20100321' );
|
||||
$scripts->add( 'custom-background', "/wp-admin/js/custom-background$suffix.js", array('farbtastic'), '20100516' );
|
||||
$scripts->add_data( 'custom-background', 'group', 1 );
|
||||
// See wp_just_in_time_script_localization() for translation data for this object
|
||||
}
|
||||
}
|
||||
|
||||
@@ -529,9 +528,6 @@ function wp_just_in_time_script_localization() {
|
||||
'l10n_print_after' => 'try{convertEntities(autosaveL10n);}catch(e){};'
|
||||
) );
|
||||
|
||||
wp_localize_script( 'custom-background', 'customBackgroundL10n', array(
|
||||
'backgroundcolor' => '#' . get_background_color(),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user