2.6 bug with get_option and update_option?
-
One of my plugins broke when I upgrade to 2.6 yesterday. Here’s the code:
// serialize and save $recently_viewed_posts = serialize($recently_viewed_posts_array); if (get_option('recently_viewed_posts')) update_option('recently_viewed_posts', $recently_viewed_posts); else add_option('recently_viewed_posts', $recently_viewed_posts); // get and unserialize $recently_viewed_posts = get_option('recently_viewed_posts'); $recently_viewed_posts_array = unserialize($recently_viewed_posts);
$recently_viewed_posts
becomes set as an Array, Why?? Can you see what’s wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘2.6 bug with get_option and update_option?’ is closed to new replies.