Changeset 33542
- Timestamp:
- 08/03/2015 09:11:35 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r33096 r33542 1569 1569 if ( $override ) { 1570 1570 ?> 1571 <a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', get_edit_post_link( $post->ID, 'url') ) ); ?>"><?php _e('Take over'); ?></a>1571 <a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', wp_nonce_url( get_edit_post_link( $post->ID, 'url' ), 'lock-post_' . $post->ID ) ) ); ?>"><?php _e('Take over'); ?></a> 1572 1572 <?php 1573 1573 } -
trunk/src/wp-admin/post.php
r33431 r33542 166 166 167 167 if ( ! empty( $_GET['get-post-lock'] ) ) { 168 check_admin_referer( 'lock-post_' . $post_id ); 168 169 wp_set_post_lock( $post_id ); 169 170 wp_redirect( get_edit_post_link( $post_id, 'url' ) );
Note: See TracChangeset
for help on using the changeset viewer.