Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2017 12:43:21 AM (9 years ago)
Author:
johnjamesjacoby
Message:

General: ensure values are un/serialized as intended.

This change provides additional hardening around how some serialized data is manipulated while it's being passed around the application. (Some values were inconsistently or needlessly handled.)

Trunk, for 3.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-template.php

    r11363 r11692  
    196196
    197197        // Get an array of the logged in user's favorite activities.
    198         $this->my_favs = maybe_unserialize( bp_get_user_meta( bp_loggedin_user_id(), 'bp_favorite_activities', true ) );
     198        $this->my_favs = bp_get_user_meta( bp_loggedin_user_id(), 'bp_favorite_activities', true );
    199199
    200200        // Fetch specific activity items based on ID's.
Note: See TracChangeset for help on using the changeset viewer.