Dashboard: Properly localize data for events

Moves localization to script-loader and removes dependency for two strings.

Props dd32, iandunn.
See #40702.

Built from https://develop.svn.wordpress.org/trunk@40776


git-svn-id: http://core.svn.wordpress.org/trunk@40634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland
2017-05-18 14:34:43 +00:00
parent bb1207cf5a
commit 9bbbc719d4
6 changed files with 49 additions and 53 deletions

View File

@@ -54,7 +54,6 @@ get_current_screen()->set_help_sidebar(
wp_dashboard_setup();
wp_enqueue_script( 'dashboard' );
wp_localize_script( 'dashboard', 'communityEventsData', wp_get_community_events_script_data() );
wp_enqueue_script( 'plugin-install' );
add_thickbox();