PluginProbe
Sign-up Sheets / trunk
Sign-up Sheets vtrunk
trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 2.2 2.2.0.1 2.2.1 2.2.10 2.2.11 2.2.11.1 2.2.12 2.2.13 2.2.14 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.0.1 All 32 releases
sign-up-sheets / utils.php

utils.php in Sign-up Sheets trunk, at utils.php

26 lines 557 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Utility functions for Sign-up Sheets
4 */
5
6 namespace FDSUS;
7
8 if (!defined('ABSPATH')) exit; // Exit if accessed directly
9
10 class Utils
11 {
12 /**
13 * Safely unserialize WordPress data with no allowed classes
14 *
15 * @param string $data Data that might be unserialized
16 * @return mixed Unserialized data can be any type
17 */
18 public static function safeMaybeUnserialize($data)
19 {
20 if (is_serialized($data)) {
21 return @unserialize($data, ['allowed_classes' => false]);
22 }
23 return $data;
24 }
25 }
26