Make WordPress Core

Ticket #24405: 24405.patch

File 24405.patch, 991 bytes (added by DrewAPicture, 12 years ago)
  • 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>";
    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'>" . __( 'Your browser does not support managing revisions with javascript disabled.' ) . "</div>\n";
     1444
    14431445        echo "<ul class='post-revisions'>\n";
    14441446        echo $rows;
    14451447