Skip to:
Content

BuddyPress.org

Ticket #6789: 6789.docs.01.patch

File 6789.docs.01.patch, 1009 bytes (added by Offereins, 2 years ago)

Docfix for xprofile_sanitize_data_value_before_save

  • src/bp-xprofile/bp-xprofile-filters.php

    diff --git a/src/bp-xprofile/bp-xprofile-filters.php b/src/bp-xprofile/bp-xprofile-filters.php
    index a0c9481..3542cb5 100644
    a b function xprofile_filter_kses( $content, $data_obj = null ) { 
    156156 * @since 1.2.6
    157157 *
    158158 * @param string      $field_value Field value being santized.
    159  * @param int         $field_id    Field ID being sanitized.
     159 * @param int         $data_id     Data ID being sanitized.
    160160 * @param bool        $reserialize Whether to reserialize arrays before returning. Defaults to true.
    161161 * @param object|null $data_obj    The BP_XProfile_ProfileData object.
    162162 * @return string
    163163 */
    164 function xprofile_sanitize_data_value_before_save( $field_value, $field_id = 0, $reserialize = true, $data_obj = null ) {
     164function xprofile_sanitize_data_value_before_save( $field_value, $data_id = 0, $reserialize = true, $data_obj = null ) {
    165165
    166166        // Return if empty.
    167167        if ( empty( $field_value ) ) {