Ticket #7552: 7552.dashboard-2.diff
| File 7552.dashboard-2.diff, 3.0 KB (added by , 18 years ago) |
|---|
-
wp-admin/includes/dashboard.php
144 144 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 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 149 151 /* Dashboard Widgets */ … … 182 184 <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" /> 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> 188 190 </div> … … 210 212 } 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( 215 218 'post_type' => 'post', … … 225 228 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 ?> 234 237 <ul> … … 542 545 $slug = ''; 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"; 548 551 echo "<h5><a href='$link'>$title</a></h5> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n"; -
wp-admin/includes/template.php
2082 2082 <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce', false ); ?> 2083 2083 <?php wp_comment_form_unfiltered_html_nonce(); ?> 2084 2084 <?php if ( $table_row ) : ?> 2085 </td></tr></tbody></table> </form>2085 </td></tr></tbody></table> 2086 2086 <?php else : ?> 2087 2087 </div></div> 2088 2088 <?php endif; ?> 2089 </form> 2089 2090 <?php 2090 2091 } 2091 2092 -
wp-admin/css/dashboard.css
100 100 padding: 0; 101 101 } 102 102 103 /* Recent Drafts */ 104 #dashboard_recent_drafts ul { 105 margin: 0; 106 padding: 0; 107 list-style: none; 108 } 109 103 110 /* Primary Feed */ 104 111 105 112 #dashboard_primary a.rsswidget, #dashboard_plugins h5 {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)