mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Dashboard: Properly localize data for events
Moves localization to script-loader and removes dependency for two strings. Props dd32, iandunn. See #40702. git-svn-id: https://develop.svn.wordpress.org/trunk@40776 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,7 +15,6 @@ require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
||||
wp_dashboard_setup();
|
||||
|
||||
wp_enqueue_script( 'dashboard' );
|
||||
wp_localize_script( 'dashboard', 'communityEventsData', wp_get_community_events_script_data() );
|
||||
|
||||
if ( current_user_can( 'edit_theme_options' ) )
|
||||
wp_enqueue_script( 'customize-loader' );
|
||||
|
||||
Reference in New Issue
Block a user