Hide the Revisions meta box content if no-JS, as JS is required to actually do anything with revisions.
fixes #24405. props DrewAPicture, MikeHansenMe. git-svn-id: https://develop.svn.wordpress.org/trunk@24557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ffa73b8fc5
commit
977c747f43
@ -1437,7 +1437,9 @@ function wp_list_post_revisions( $post_id = 0, $type = 'all' ) {
|
||||
$rows .= "\t<li>" . wp_post_revision_title_expanded( $revision ) . "</li>\n";
|
||||
}
|
||||
|
||||
echo "<ul class='post-revisions'>\n";
|
||||
echo "<div class='hide-if-js'><p>" . __( 'JavaScript must be enabled to use this feature.' ) . "</p></div>\n";
|
||||
|
||||
echo "<ul class='post-revisions hide-if-no-js'>\n";
|
||||
echo $rows;
|
||||
|
||||
// if the post was previously restored from a revision
|
||||
|
Loading…
Reference in New Issue
Block a user