Changeset 6917
- Timestamp:
- 11/05/2019 08:10:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6916 r6917 646 646 // Update all anonymous metas 647 647 foreach ( $r as $anon_key => $anon_value ) { 648 update_post_meta( $post_id, '_' . $anon_key, (string) $anon_value, false ); 648 649 // Update, or delete if empty 650 ! empty( $anon_value ) 651 ? update_post_meta( $post_id, '_' . $anon_key, (string) $anon_value, false ) 652 : delete_post_meta( $post_id, '_' . $anon_key ); 649 653 } 650 654 }
Note: See TracChangeset
for help on using the changeset viewer.