Changeset 33548
- Timestamp:
- 08/03/2015 09:13:18 PM (9 years ago)
- Location:
- branches/3.7/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-admin/includes/post.php
r32188 r33548 1355 1355 if ( $override ) { 1356 1356 ?> 1357 <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>1357 <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> 1358 1358 <?php 1359 1359 } -
branches/3.7/src/wp-admin/post.php
r25616 r33548 147 147 148 148 if ( ! empty( $_GET['get-post-lock'] ) ) { 149 check_admin_referer( 'lock-post_' . $post_id ); 149 150 wp_set_post_lock( $post_id ); 150 151 wp_redirect( get_edit_post_link( $post_id, 'url' ) );
Note: See TracChangeset
for help on using the changeset viewer.