Make WordPress Core

Ticket #1827: edit.php.diff

File edit.php.diff, 931 bytes (added by markjaquith, 16 years ago)

Patch for WP 1.6 SVN

  • edit.php

     
    8181  </fieldset>
    8282</form>
    8383
     84<?php $arc_result = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC");
     85if ( count($arc_result) ) { ?>
     86
    8487<form name="viewarc" action="" method="get" style="float: left; width: 20em; margin-bottom: 1em;">
    8588        <fieldset>
    8689        <legend><?php _e('Browse Month&hellip;') ?></legend>
    8790    <select name='m'>
    8891        <?php
    89                 $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC");
    9092                foreach ($arc_result as $arc_row) {                     
    9193                        $arc_year  = $arc_row->yyear;
    9294                        $arc_month = $arc_row->mmonth;
     
    106108        </fieldset>
    107109</form>
    108110
     111<?php } ?>
     112
    109113<br style="clear:both;" />
    110114
    111115<?php