Make WordPress Core


Ignore:
Timestamp:
11/05/2008 08:30:26 PM (17 years ago)
Author:
ryan
Message:

Move notices below h2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r9506 r9533  
    164164$messages[3] = __('Error saving media attachment.');
    165165
    166 if ( isset($_GET['message']) && (int) $_GET['message'] )
     166if ( isset($_GET['message']) && (int) $_GET['message'] ) {
    167167    $message = $messages[$_GET['message']];
    168 
     168    $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
     169}
     170?>
     171
     172<?php do_action('restrict_manage_posts'); ?>
     173
     174<div class="wrap">
     175<h2><?php echo wp_specialchars( $title ); ?></h2>
     176
     177<?php
    169178if ( isset($message) ) { ?>
    170179<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
    171 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    172 }
    173 ?>
    174 
    175 <?php do_action('restrict_manage_posts'); ?>
    176 
    177 <div class="wrap">
    178 <h2><?php echo wp_specialchars( $title ); ?></h2>
     180<?php
     181}
     182?>
    179183
    180184<ul class="subsubsub">
Note: See TracChangeset for help on using the changeset viewer.