Changeset 8488
- Timestamp:
- 03/21/2019 11:29:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php
r6626 r8488 215 215 array_walk( $new_values[ 'mes_regional_sponsorships' ], 'absint' ); 216 216 update_post_meta( $post_id, 'mes_regional_sponsorships', $new_values[ 'mes_regional_sponsorships' ] ); 217 } else {218 delete_post_meta( $post_id, 'mes_regional_sponsorships' );219 217 } 220 218 … … 231 229 if ( isset( $new_values["mes_$field"] ) ) { 232 230 update_post_meta( $post_id, "mes_$field", sanitize_text_field( $new_values["mes_$field"] ) ); 233 } else {234 delete_post_meta( $post_id, "mes_$field" );235 231 } 236 232 } … … 239 235 if ( $sponsor_agreement ) { 240 236 update_post_meta( $post_id, 'mes_sponsor_agreement', $sponsor_agreement ); 241 } else {242 delete_post_meta( $post_id, 'mes_sponsor_agreement' );243 237 } 244 238 }
Note: See TracChangeset
for help on using the changeset viewer.