- Timestamp:
- 11/24/2022 09:33:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r12888 r13372 131 131 $retval = true; 132 132 } else { 133 $bp = buddypress();133 $bp = buddypress(); 134 134 $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = %d", $this->user_id, $this->field_id ) ); 135 135 } … … 140 140 * @since 1.2.7 141 141 * 142 * @param bool $retval Whether or not data already exists.143 * @param BP_XProfile_ProfileData $ thisInstance of the current BP_XProfile_ProfileData class.142 * @param bool $retval Whether or not data already exists. 143 * @param BP_XProfile_ProfileData $profile_data Instance of the current BP_XProfile_ProfileData class. 144 144 */ 145 145 return apply_filters_ref_array( 'xprofile_data_exists', array( (bool)$retval, $this ) ); … … 158 158 global $wpdb; 159 159 160 $bp = buddypress(); 161 160 $bp = buddypress(); 162 161 $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = %d", $this->field_id ) ); 163 162 … … 167 166 * @since 1.2.7 168 167 * 169 * @param bool $retval Whether or not data is valid.170 * @param BP_XProfile_ProfileData $ thisInstance of the current BP_XProfile_ProfileData class.168 * @param bool $retval Whether or not data is valid. 169 * @param BP_XProfile_ProfileData $profile_data Instance of the current BP_XProfile_ProfileData class. 171 170 */ 172 171 return apply_filters_ref_array( 'xprofile_data_is_valid_field', array( (bool)$retval, $this ) ); … … 211 210 * @since 2.1.0 Added `$reserialize` and `$this` parameters. 212 211 * 213 * @param string $field_value The field value.214 * @param int $data_id The field data ID.215 * @param bool $reserialize Whether to reserialize arrays before returning. Defaults to true.216 * @param BP_XProfile_ProfileData $ thisCurrent instance of the profile data being saved.212 * @param string $field_value The field value. 213 * @param int $data_id The field data ID. 214 * @param bool $reserialize Whether to reserialize arrays before returning. Defaults to true. 215 * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved. 217 216 */ 218 217 $this->value = apply_filters( 'xprofile_data_value_before_save', $this->value, $this->id, true, $this ); … … 235 234 * @since 1.0.0 236 235 * 237 * @param BP_XProfile_ProfileData $ thisCurrent instance of the profile data being saved.236 * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved. 238 237 */ 239 238 do_action_ref_array( 'xprofile_data_before_save', array( $this ) ); … … 261 260 * @since 1.0.0 262 261 * 263 * @param BP_XProfile_ProfileData $ thisCurrent instance of the profile data being saved.262 * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved. 264 263 */ 265 264 do_action_ref_array( 'xprofile_data_after_save', array( $this ) ); … … 290 289 * @since 1.9.0 291 290 * 292 * @param BP_XProfile_ProfileData $ thisCurrent instance of the profile data being deleted.291 * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being deleted. 293 292 */ 294 293 do_action_ref_array( 'xprofile_data_before_delete', array( $this ) ); … … 304 303 * @since 1.9.0 305 304 * 306 * @param BP_XProfile_ProfileData $ thisCurrent instance of the profile data being deleted.305 * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being deleted. 307 306 */ 308 307 do_action_ref_array( 'xprofile_data_after_delete', array( $this ) );
Note: See TracChangeset
for help on using the changeset viewer.