Fix position of admin notices, includes patch by caesarsgrunt, fixes #7619

git-svn-id: http://svn.automattic.com/wordpress/trunk@8769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-08-29 06:36:31 +00:00
parent 803b1572e6
commit 3c1095b79c
2 changed files with 5 additions and 15 deletions

View File

@ -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">

View File

@ -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');
?>