Changeset 9120 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 10/10/2008 11:54:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r9111 r9120 145 145 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); 146 146 echo "</p>\n</form>\n"; 147 148 echo "</div>"; 147 149 } 148 150 … … 183 185 </div> 184 186 185 <h4><label for=" content"><?php _e('Post') ?></label></h4>187 <h4><label for="quickpress-content"><?php _e('Post') ?></label></h4> 186 188 <div class="textarea-wrap"> 187 189 <textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea> … … 211 213 212 214 function wp_dashboard_recent_drafts( $drafts = false ) { 215 global $post; 213 216 if ( !$drafts ) { 214 217 $drafts_query = new WP_Query( array( … … 226 229 if ( $drafts && is_array( $drafts ) ) : 227 230 $list = array(); 228 foreach ( $drafts as $ draft ) {231 foreach ( $drafts as $post ) { 229 232 $url = get_edit_post_link( $draft->ID ); 230 233 $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>"; 232 235 } 233 236 ?> … … 543 546 544 547 $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . 545 '& TB_iframe=true&width=600&height=800';548 '&TB_iframe=true&width=600&height=800'; 546 549 547 550 echo "<h4>$label</h4>\n";
Note: See TracChangeset
for help on using the changeset viewer.