mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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: http://core.svn.wordpress.org/trunk@24557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
952b7acaca
commit
12ec3e4d69
@ -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