Changeset 24827 for trunk/wp-admin/revision.php
- Timestamp:
- 07/28/2013 09:51:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/revision.php
r24814 r24827 37 37 break; 38 38 } 39 40 // Don't allow revision restore when post is locked 41 if ( wp_check_post_lock( $post->ID ) ) 42 break; 39 43 40 44 check_admin_referer( "restore-post_{$revision->ID}" ); … … 171 175 </div> 172 176 <# if ( 'to' === data.type && data.attributes.restoreUrl ) { #> 173 <input 174 <# if ( data.attributes.current ) { #> 177 <input <?php if ( wp_check_post_lock( $post->ID ) ) { ?> 175 178 disabled="disabled" 176 <# } #> 179 <?php } else { ?> 180 <# if ( data.attributes.current ) { #> 181 disabled="disabled" 182 <# } #> 183 <?php } ?> 177 184 <# if ( data.attributes.autosave ) { #> 178 185 type="button" class="restore-revision button button-primary" value="<?php esc_attr_e( 'Restore This Autosave' ); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.