PluginProbe
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / 2.0.7
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF v2.0.7
2.0.7 2.0.6 2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 All 26 releases
robin-image-optimizer / migrations / 010802.php
010802.php
29 lines 788 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 * Updates for altering the table used to store statistics data.
9 * Adds new columns and renames existing ones in order to add support for the new social buttons.
10 *
11 */
12 class WIOUpdate010802 extends Wbcr_Factory600_Update {
13
14 /**
15 * Handles the installation process for the plugin, including cleanup of
16 * old options and setting new configurations.
17 *
18 * @return void
19 */
20 public function install() {
21 WRIO_Plugin::app()->deleteOption( 'image_optimize_all_usage' );
22 WRIO_Plugin::app()->deleteOption( 'image_optimize_flush_usage' );
23
24 WRIO_Plugin::app()->updatePopulateOption( 'server_2_quota_limit', 300 );
25
26 WRIO_Plugin::app()->logger->info( 'Plugin migration to 1.8.2 was successful!' );
27 }
28 }
29