Changeset 1587 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
- Timestamp:
- 05/15/2015 11:34:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
r1564 r1587 103 103 return; 104 104 105 // Don't add/remove meta on trash, untrash, restore, etc 106 if ( empty( $_POST['action'] ) || 'editpost' != $_POST['action'] ) { 107 return; 108 } 109 105 110 // WordCamp post type only 111 // todo return early if not type instead of indenting 106 112 if ( WCPT_POST_TYPE_ID == get_post_type() ) { 107 113 // If the venue address was changed, update its coordinates … … 588 594 589 595 // Check pending posts 596 // todo return early if not wordcamp post type instead of checking in both of these conditions 590 597 if ( WCPT_POST_TYPE_ID == $post_data['post_type'] && 'pending' == $post_data['post_status'] && absint( $_POST['post_ID'] ) > $min_site_id ) { 591 598 foreach( $required_pending_fields as $field ) { … … 601 608 602 609 // Check published posts 603 if ( WCPT_POST_TYPE_ID == $post_data['post_type'] && 'publish' == $post_data['post_status'] && absint( $_POST['post_ID'] ) > $min_site_id ) {610 if ( WCPT_POST_TYPE_ID == $post_data['post_type'] && 'publish' == $post_data['post_status'] && isset( $_POST['post_ID'] ) && absint( $_POST['post_ID'] ) > $min_site_id ) { 604 611 foreach( $required_publish_fields as $field ) { 605 612 $value = $_POST[ wcpt_key_to_str( $field, 'wcpt_' ) ];
Note: See TracChangeset
for help on using the changeset viewer.