Skip to:
Content

bbPress.org

Changeset 6181


Ignore:
Timestamp:
12/27/2016 05:08:40 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Tools: Use explode() instead of maybe_unserialize().

User-meta values were strings to enable FIND_IN_SET() usages.

See #2959.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools.php

    r6177 r6181  
    22402240
    22412241        // Get post IDs
    2242         $post_ids  = maybe_unserialize( $meta->meta_value );
     2242        $post_ids  = explode( ',', $meta->meta_value );
    22432243        $to_change = count( $post_ids );
    22442244        $changed   = 0;
     
    22962296
    22972297        // Get post IDs
    2298         $post_ids  = maybe_unserialize( $meta->meta_value );
     2298        $post_ids  = explode( ',', $meta->meta_value );
    22992299        $to_change = count( $post_ids );
    23002300        $changed   = 0;
Note: See TracChangeset for help on using the changeset viewer.