Make WordPress Core


Ignore:
Timestamp:
03/07/2008 10:05:54 AM (19 years ago)
Author:
matt
Message:

A number of style tweaks; widen up a little; starting to add contextual help to various forms; catching up unloved forms with new UI guidelines.

File:
1 edited

Legend:

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

    r6903 r7181  
    5757        );
    5858
     59$draft_div = '';
    5960if ( !empty($my_drafts) || !empty($pending) || !empty($others_drafts) ) {
    60         echo '<div class="wrap" id="draft-nag">';
     61        $draft_div = '<div class="wrap" id="draft-nag">';
    6162
    6263        foreach ( $nag_posts as $nag ) {
    6364                if ( ${$nag[0]} ) {
    64                         echo '<p><strong>' . wp_specialchars($nag[1]) . '</strong> ';
     65                        $draft_div .= '<p><strong>' . wp_specialchars($nag[1]) . '</strong> ';
    6566                        $i = 0;
    6667                        foreach ( ${$nag[0]} as $post ) {
    … …  
    6869                                if ( $i > $nag_posts_limit )
    6970                                        break;
    70                                 echo '<a href="post.php?action=edit&amp;post=' . $post->ID . '">';
    71                                 ( '' == the_title('', '', FALSE) ) ? printf( __('Post #%s'), $post->ID ) : the_title();
    72                                 echo '</a>';
     71                                $draft_div .= '<a href="post.php?action=edit&amp;post=' . $post->ID . '">';
     72                                $draft_div .= ( '' == the_title('', '', FALSE) ) ? sprintf( __('Post #%s'), $post->ID ) : get_the_title();
     73                                $draft_div .= '</a>';
    7374                                if ( $i < min($nag[3], $nag_posts_limit) )
    74                                         echo ', ';
     75                                        $draft_div .= ', ';
    7576                        }
    7677                        if ( $nag[3] > $nag_posts_limit )
    77                                 printf(__(', and <a href="%s">%d more</a>'), $nag[2], $nag[3] - $nag_posts_limit);
    78                         echo '.</p>';
     78                                $draft_div .= sprintf(__(', and <a href="%s">%d more</a>'), $nag[2], $nag[3] - $nag_posts_limit);
     79                        $draft_div .= '.</p>';
    7980                }
    8081        }
    81         echo "</div>\n";
     82        $draft_div .= "</div>\n";
    8283}
    8384
Note: See TracChangeset for help on using the changeset viewer.