Ticket #26376: 26376.3.diff
File 26376.3.diff, 2.1 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/wp-admin.css
3103 3103 3104 3104 /* Dashboard Quick Draft - Drafts list */ 3105 3105 3106 #dashboard_quick_press .drafts {3106 .js #dashboard_quick_press .drafts { 3107 3107 border-top: 1px solid #eee; 3108 3108 } 3109 3109 -
src/wp-admin/includes/dashboard.php
48 48 } 49 49 50 50 // QuickPress Widget 51 if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) 52 wp_add_dashboard_widget( 'dashboard_quick_press', __( 'Quick Draft' ), 'wp_dashboard_quick_press' ); 51 if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) { 52 $quickpress_title = sprintf( '<span class="hide-if-no-js">%1$s</span><span class="hide-if-js">%2$s</span>', __( 'Quick Draft' ), __( 'Drafts' ) ); 53 wp_add_dashboard_widget( 'dashboard_quick_press', $quickpress_title, 'wp_dashboard_quick_press' ); 54 } 53 55 54 56 // WordPress News 55 57 wp_add_dashboard_widget( 'dashboard_primary', __( 'WordPress News' ), 'wp_dashboard_primary' ); … … 311 313 $post_ID = (int) $post->ID; 312 314 ?> 313 315 314 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form ">316 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form hide-if-no-js"> 315 317 316 318 <?php if ( $error_msg ) : ?> 317 319 <div class="error"><?php echo $error_msg; ?></div> … … 535 537 echo '<div id="' . $args['id'] . '" class="activity-block">'; 536 538 537 539 if ( $posts->post_count > $args['display'] ) { 538 echo '<small class="show-more "><a href="#">' . sprintf( __( 'See %s more…'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';540 echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more…'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>'; 539 541 } 540 542 541 543 echo '<h4>' . $args['title'] . '</h4>';