Make WordPress Core

Ticket #5985: 5985-2.diff

File 5985-2.diff, 2.3 KB (added by iammattthomas, 19 years ago)

Move updated div above .wrap for consistency with other pages

  • wp-admin/edit-comments.php

     
    5252else
    5353        $comment_status = '';
    5454?>
    55 
    56 <div class="wrap">
    57 <form id="posts-filter" action="" method="get">
    58 <h2><?php _e('Manage Comments'); ?></h2>
    59 
    60 <ul class="subsubsub">
    6155<?php
    62 $status_links = array();
    63 $num_comments = wp_count_comments();
    64 $stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), $num_comments->moderated), 'approved' => __('Approved'));
    65 foreach ( $stati as $status => $label ) {
    66         $class = '';
    67 
    68         if ( $status == $comment_status )
    69                 $class = ' class="current"';
    70 
    71         $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>';
    72 }
    73 $class = ( '' === $comment_status ) ? ' class="current"' : '';
    74 $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>";
    75 echo implode(' | </li>', $status_links) . '</li>';
    76 unset($status_links);
    77 ?>
    78 </ul>
    79 
    80 <?php
    8156if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
    8257        $approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0;
    8358        $deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0;
    … …  
    10580        }
    10681}
    10782?>
     83<div class="wrap">
     84<form id="posts-filter" action="" method="get">
     85<h2><?php _e('Manage Comments'); ?></h2>
    10886
     87<ul class="subsubsub">
     88<?php
     89$status_links = array();
     90$num_comments = wp_count_comments();
     91$stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), $num_comments->moderated), 'approved' => __('Approved'));
     92foreach ( $stati as $status => $label ) {
     93        $class = '';
     94
     95        if ( $status == $comment_status )
     96                $class = ' class="current"';
     97
     98        $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>';
     99}
     100$class = ( '' === $comment_status ) ? ' class="current"' : '';
     101$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>";
     102echo implode(' | </li>', $status_links) . '</li>';
     103unset($status_links);
     104?>
     105</ul>
     106
    109107<p id="post-search">
    110108        <input type="text" id="post-search-input" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" />
    111109        <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />