mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Revisions changes.
* Eliminates the bloated Revisions meta box in favor of 'Revisions: #' in the publish box. * Adds ability to compare autosave to current post, when revisions are disabled. * Makes autosaves stand out visually, including "Restore This Autosave". Also: * Adds missing capability check for restoring a revision. * When no revision matches the post's current modified time, avoid marking an autosave as 'current'. * Fixes wp_get_post_autosave() to return an autosave even when revisions are disabled. * Add 'check_enabled' arg to wp_get_post_revisions(); false avoids the wp_revisions_enabled() check. * Adds a responsive slider that is narrower for fewer versions. props markjaquith. see #24804. git-svn-id: https://develop.svn.wordpress.org/trunk@24790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3539,7 +3539,7 @@ td.plugin-title p {
|
||||
margin: 0 auto;
|
||||
height: 0.8em;
|
||||
top: 7px;
|
||||
width: 70%;
|
||||
max-width: 70%;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
@@ -3641,6 +3641,11 @@ body.folded .revisions .loading-indicator {
|
||||
.revisions-controls .author-card .date {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.revisions-controls .author-card.autosave {
|
||||
color: #d54e21;
|
||||
}
|
||||
|
||||
.revisions-controls .author-card .author-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -3663,8 +3668,8 @@ body.folded .revisions .loading-indicator {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.wp-slider {
|
||||
width: 70%;
|
||||
.revisions-controls .wp-slider {
|
||||
max-width: 70%;
|
||||
margin: 0 auto;
|
||||
top: -3px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user