Make WordPress Core

Ticket #24405: 24405.2.diff

File 24405.2.diff, 975 bytes (added by MikeHansenMe, 12 years ago)

minor update to previous patch

  • wp-includes/post-template.php

     
    13741374
    13751375        $date = date_i18n( $datef, strtotime( $revision->post_modified ) );
    13761376        if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
    1377                 $date = "<a href='$link'>$date</a>";
     1377                $date = "<a href='$link' class='hide-if-no-js'>$date</a><span class='hide-if-js'>$date</span></a>";
    13781378
    13791379        $revision_date_author = sprintf(
    13801380                /* translators: post revision title: 1: author avatar, 2: author name, 3: time ago, 4: date */
     
    14401440                $rows .= "\t<li>" . wp_post_revision_title_expanded( $revision ) . "</li>\n";
    14411441        }
    14421442
     1443        echo "<div class='error hide-if-js'><p>" . __( 'Javascript must be enabled to use this feature.' ) . "</p></div>\n";
     1444
    14431445        echo "<ul class='post-revisions'>\n";
    14441446        echo $rows;
    14451447