Clean up wp-admin/index.php after dash merge. see #25824.

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


git-svn-id: http://core.svn.wordpress.org/trunk@26092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-11-14 23:59:09 +00:00
parent 70330d468c
commit ae1710882c
1 changed files with 5 additions and 6 deletions

View File

@ -89,16 +89,14 @@ $screen->set_help_sidebar(
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
include ( ABSPATH . 'wp-admin/admin-header.php' );
$today = current_time( 'mysql', 1 );
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
$classes = 'welcome-panel';
$option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
@ -122,7 +120,7 @@ $today = current_time( 'mysql', 1 );
do_action( 'welcome_panel' );
?>
</div>
<?php endif; ?>
<?php endif; ?>
<div id="dashboard-widgets-wrap">
<?php wp_dashboard(); ?>
@ -130,4 +128,5 @@ $today = current_time( 'mysql', 1 );
</div><!-- wrap -->
<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
<?php
require( ABSPATH . 'wp-admin/admin-footer.php' );