Fix position of admin notices, includes patch by caesarsgrunt, fixes #7619
git-svn-id: https://develop.svn.wordpress.org/trunk@8769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0ee936577d
commit
37d4888191
@ -133,10 +133,13 @@ if ( ! $is_opera ) {
|
||||
|
||||
<?php
|
||||
require(ABSPATH . 'wp-admin/menu-header.php');
|
||||
?>
|
||||
<div id="wpbody">
|
||||
<div id="wpbody-content">
|
||||
<?php
|
||||
do_action('admin_notices');
|
||||
|
||||
if ( $parent_file == 'options-general.php' ) {
|
||||
require(ABSPATH . 'wp-admin/options-head.php');
|
||||
}
|
||||
?>
|
||||
<div id="wpbody">
|
||||
<div id="wpbody-content">
|
||||
|
@ -104,34 +104,21 @@ function _wp_menu_output( &$menu, &$submenu, $submenu_as_parent = true ) {
|
||||
?>
|
||||
|
||||
<ul id="dashmenu" class="wp-menu">
|
||||
|
||||
<?php
|
||||
|
||||
_wp_menu_output( $top_menu, $top_submenu, false );
|
||||
do_action( 'dashmenu' );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<ul id="adminmenu" class="wp-menu">
|
||||
|
||||
<li class="write-new-button"><a class="button-secondary" href="post-new.php"><?php _e( 'Write New Post' ); ?></a></li>
|
||||
|
||||
<?php
|
||||
|
||||
_wp_menu_output( $menu, $submenu );
|
||||
do_action( 'adminmenu' );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
||||
do_action('admin_notices');
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user