- Timestamp:
- 04/12/2024 01:00:20 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r13475 r13791 77 77 * 78 78 * @since 1.0.0 79 * 79 * 80 80 * @global wpdb $wpdb WordPress database object. 81 81 * … … 104 104 $this->user_id = (int) $profiledata->user_id; 105 105 $this->field_id = (int) $profiledata->field_id; 106 $this->value = stripslashes( $profiledata->value );107 106 $this->last_updated = $profiledata->last_updated; 108 107 108 // If the value is serializable, do not stripslashes. 109 $this->value = is_serialized( $profiledata->value ) ? $profiledata->value : stripslashes( $profiledata->value ); 109 110 } else { 110 111 // When no row is found, we'll need to set these properties manually. … … 178 179 * 179 180 * @since 1.0.0 180 * 181 * 181 182 * @global wpdb $wpdb WordPress database object. 182 183 * … … 322 323 * @since 8.0.0 Checks if a null field data is an xProfile WP Field. 323 324 * Adds a new parameter `$field_type_objects` to pass the list of field type objects. 324 * 325 * 325 326 * @global wpdb $wpdb WordPress database object. 326 327 * … … 481 482 * 482 483 * @since 1.6.0 483 * 484 * 484 485 * @global wpdb $wpdb WordPress database object. 485 486 * … … 516 517 * @since 1.0.0 517 518 * @since 8.0.0 Checks if a null field data is an xProfile WP Field. 518 * 519 * 519 520 * @global wpdb $wpdb WordPress database object. 520 521 * … … 626 627 * 627 628 * @since 1.0.0 628 * 629 * @global wpdb $wpdb WordPress database object. 630 * 629 * 630 * @global wpdb $wpdb WordPress database object. 631 * 631 632 * @deprecated 8.0.0 This function is not used anymore. 632 633 * … … 695 696 * 696 697 * @since 1.0.0 697 * 698 * 698 699 * @global wpdb $wpdb WordPress database object. 699 700 * … … 717 718 * 718 719 * @since 1.0.0 719 * 720 * 720 721 * @global wpdb $wpdb WordPress database object. 721 722 * … … 737 738 * 738 739 * @since 1.0.0 739 * 740 * 740 741 * @global wpdb $wpdb WordPress database object. 741 742 * … … 765 766 * 766 767 * @since 1.0.0 767 * 768 * 768 769 * @global wpdb $wpdb WordPress database object. 769 770 *
Note: See TracChangeset
for help on using the changeset viewer.