Make WordPress Core


Ignore:
Timestamp:
07/17/2005 09:08:47 PM (21 years ago)
Author:
ryan
Message:

Fix draft list and publish button. fixes #1514

File:
1 edited

Legend:

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

    r2709 r2723  
    327327            <p><strong><?php _e('Your Drafts:') ?></strong>
    328328            <?php
    329             for ( $i = 0; $i < 15; $i++ ) {
     329            $num_drafts = count($drafts);
     330            if ( $num_drafts > 15 ) $num_drafts = 15;
     331            for ( $i = 0; $i < $num_drafts; $i++ ) {
    330332                $draft = $drafts[$i];
    331333                if ( 0 != $i )
Note: See TracChangeset for help on using the changeset viewer.