| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace YayMail\Migrations; |
| 3 | 3 | |
| 4 | 4 | use YayMail\Utils\Logger; |
| 5 | +use YayMail\Utils\SafeUnserializer; | |
| 5 | 6 | use YayMail\SupportedPlugins; |
| 6 | 7 | use YayMail\YayMailTemplate; |
| 7 | 8 | |
| 8 | 9 | |
| @@ -151,9 +152,9 @@ | ||
| 151 | 152 | } |
| 152 | 153 | |
| 153 | 154 | // If the option is found |
| 154 | 155 | if ( $yaymail_addon_versions_option ) { |
| 155 | - $versions = maybe_unserialize( $yaymail_addon_versions_option->option_value ); | |
| 156 | + $versions = SafeUnserializer::decode_backup( $yaymail_addon_versions_option->option_value ); | |
| 156 | 157 | |
| 157 | 158 | // If the unserialized value is an array |
| 158 | 159 | if ( is_array( $versions ) ) { |
| 159 | 160 | // Add or update the addon version |