WordPress.org

Make WordPress Core

Changeset 9120


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

Dashboard styling and validation fixes from mdawaffe. see #7552

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/dashboard.css

    r9103 r9120  
    101101}
    102102
     103/* Recent Drafts */
     104#dashboard_recent_drafts ul {
     105    margin: 0;
     106    padding: 0;
     107    list-style: none;
     108}
     109
    103110/* Primary Feed */
    104111
  • 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";
  • trunk/wp-admin/includes/template.php

    r9110 r9120  
    20832083    <?php wp_comment_form_unfiltered_html_nonce(); ?>
    20842084<?php if ( $table_row ) : ?>
    2085 </td></tr></tbody></table></form>
     2085</td></tr></tbody></table>
    20862086<?php else : ?>
    20872087</div></div>
    20882088<?php endif; ?>
     2089</form>
    20892090<?php
    20902091}
Note: See TracChangeset for help on using the changeset viewer.