Changeset 8133
- Timestamp:
- 01/24/2019 08:32:29 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php
r8085 r8133 413 413 } 414 414 415 // Make sure the requset came from the edit post screen. 415 if ( $this->get_event_type() !== $post->post_status ) { 416 return; 417 } 418 419 // Make sure the request came from the edit post screen. 416 420 if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'update-post_' . $post_id ) ) { 417 421 die( 'Unable to verify nonce' ); … … 420 424 // Don't add/remove meta on trash, untrash, restore, etc. 421 425 if ( empty( $_POST['action'] ) || 'editpost' !== $_POST['action'] ) { 422 return;423 }424 425 if ( $this->get_event_type() !== get_post_type() ) {426 426 return; 427 427 }
Note: See TracChangeset
for help on using the changeset viewer.