Make WordPress Core

Ticket #26376: 26376.2.diff

File 26376.2.diff, 1.5 KB (added by helen, 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

     
    311311        $post_ID = (int) $post->ID;
    312312?>
    313313
    314         <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form">
     314        <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form hide-if-no-js">
    315315
    316316                <?php if ( $error_msg ) : ?>
    317317                <div class="error"><?php echo $error_msg; ?></div>
     
    535535                echo '<div id="' . $args['id'] . '" class="activity-block">';
    536536
    537537                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>';
     538                        echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more&hellip;'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
    539539                }
    540540
    541541                echo '<h4>' . $args['title'] . '</h4>';