Make WordPress Core


Ignore:
Timestamp:
10/10/2008 11:54:27 PM (17 years ago)
Author:
ryan
Message:

Dashboard styling and validation fixes from mdawaffe. see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r9111 r9120  
    145145    wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    146146    echo "</p>\n</form>\n";
     147
     148    echo "</div>";
    147149}
    148150
     
    183185        </div>
    184186
    185         <h4><label for="content"><?php _e('Post') ?></label></h4>
     187        <h4><label for="quickpress-content"><?php _e('Post') ?></label></h4>
    186188        <div class="textarea-wrap">
    187189            <textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea>
     
    211213
    212214function wp_dashboard_recent_drafts( $drafts = false ) {
     215    global $post;
    213216    if ( !$drafts ) {
    214217        $drafts_query = new WP_Query( array(
     
    226229    if ( $drafts && is_array( $drafts ) ) :
    227230        $list = array();
    228         foreach ( $drafts as $draft ) {
     231        foreach ( $drafts as $post ) {
    229232            $url = get_edit_post_link( $draft->ID );
    230233            $title = _draft_or_post_title( $draft->ID );
    231             $list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
     234            $list[] = '<abbr title="' . get_the_time(__('Y/m/d g:i:s A')) . '">' . get_the_time( get_option( 'date_format' ) ) . "</abbr> <a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
    232235        }
    233236?>
     
    543546
    544547        $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) .
    545                             '&TB_iframe=true&width=600&height=800';
     548                            '&amp;TB_iframe=true&amp;width=600&amp;height=800';
    546549
    547550        echo "<h4>$label</h4>\n";
Note: See TracChangeset for help on using the changeset viewer.