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:
Andrew Nacin
2010-05-16 05:17:57 +00:00
parent d7130b8341
commit ae5af53f10
5 changed files with 42 additions and 51 deletions

View File

@@ -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(),
) );
}
/**