mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Dashboard: Update the existing WordPress News dashboard widget to also include upcoming meetup events and WordCamps near the current user’s location.
Props @afercia, @andreamiddleton, @azaozz, @camikaos, @coreymckrill, @chanthaboune, @courtneypk, @dd32, @iandunn, @iseulde, @mapk, @mayukojpn, @melchoyce, @nao, @obenland, @pento, @samuelsidler, @stephdau, @tellyworth. See #40702. git-svn-id: https://develop.svn.wordpress.org/trunk@40607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,6 +15,8 @@ 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' );
|
||||
if ( current_user_can( 'install_plugins' ) ) {
|
||||
@@ -138,4 +140,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div><!-- wrap -->
|
||||
|
||||
<?php
|
||||
wp_print_community_events_templates();
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
||||
Reference in New Issue
Block a user