Make WordPress Core

Ticket #26376: 26376.3.diff

File 26376.3.diff, 2.1 KB (added by georgestephanis, 11 years ago)
  • src/wp-admin/css/wp-admin.css

     
    31033103
    31043104/* Dashboard Quick Draft - Drafts list */
    31053105
    3106 #dashboard_quick_press .drafts {
     3106.js #dashboard_quick_press .drafts {
    31073107        border-top: 1px solid #eee;
    31083108}
    31093109
  • src/wp-admin/includes/dashboard.php

     
    4848        }
    4949
    5050        // 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        }
    5355
    5456        // WordPress News
    5557        wp_add_dashboard_widget( 'dashboard_primary', __( 'WordPress News' ), 'wp_dashboard_primary' );
     
    311313        $post_ID = (int) $post->ID;
    312314?>
    313315
    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">
    315317
    316318                <?php if ( $error_msg ) : ?>
    317319                <div class="error"><?php echo $error_msg; ?></div>
     
    535537                echo '<div id="' . $args['id'] . '" class="activity-block">';
    536538
    537539                if ( $posts->post_count > $args['display'] ) {
    538                         echo '<small class="show-more"><a href="#">' . sprintf( __( 'See %s more&hellip;'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
     540                        echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more&hellip;'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
    539541                }
    540542
    541543                echo '<h4>' . $args['title'] . '</h4>';