Changeset 7576
- Timestamp:
- 11/15/2013 09:08:20 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7570 r7576 747 747 $meta_value = maybe_serialize( $meta_value ); 748 748 749 // If value is empty, delete the meta key750 if ( empty( $meta_value ))749 // If value is false, delete the meta key 750 if ( false === $meta_value ) 751 751 return bp_activity_delete_meta( $activity_id, $meta_key ); 752 752 -
trunk/tests/testcases/activity/functions.php
r7570 r7576 103 103 104 104 /** 105 * @group bp_activity_update_meta 106 * @ticket BP5083 107 */ 108 public function test_bp_activity_update_meta_with_0() { 109 $a = $this->factory->activity->create(); 110 $meta_value = 0; 111 112 bp_activity_update_meta( $a, '0_test', $meta_value ); 113 114 $this->assertNotSame( false, bp_activity_get_meta( $a, '0_test' ) ); 115 } 116 117 /** 105 118 * @group bp_activity_get_user_mentionname 106 119 */
Note: See TracChangeset
for help on using the changeset viewer.