Make WordPress Core

Changeset 24557


Ignore:
Timestamp:
07/05/2013 03:04:24 PM (11 years ago)
Author:
markjaquith
Message:

Hide the Revisions meta box content if no-JS, as JS is required to actually do anything with revisions.

fixes #24405. props DrewAPicture, MikeHansenMe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r24490 r24557  
    14381438    }
    14391439
    1440     echo "<ul class='post-revisions'>\n";
     1440    echo "<div class='hide-if-js'><p>" . __( 'JavaScript must be enabled to use this feature.' ) . "</p></div>\n";
     1441
     1442    echo "<ul class='post-revisions hide-if-no-js'>\n";
    14411443    echo $rows;
    14421444
Note: See TracChangeset for help on using the changeset viewer.