Version Description
[12/14/2017] = * NEW: Skip standard posttype 'oembed_cache' * BUG FIX: Hide the settings link (plugin page) for multi site sites (except for the main network site)
Download this release
Release Info
Developer | cageehv |
Plugin | Optimize Database after Deleting Revisions |
Version | 4.4.2 |
Comparing to | |
See all releases |
Code changes from version 4.4.1 to 4.4.2
- classes/odb-utilities.php +3 -1
- readme.txt +7 -3
- rvg-optimize-database.php +9 -8
classes/odb-utilities.php
CHANGED
@@ -26,7 +26,9 @@ class ODB_Utilities {
|
|
26 |
$posttype != 'revision' &&
|
27 |
$posttype != 'nav_menu_item' &&
|
28 |
$posttype != 'custom_css' &&
|
29 |
-
$posttype != 'customize_changeset'
|
|
|
|
|
30 |
array_push($relevant_pts, $posttype);
|
31 |
}
|
32 |
} // foreach ($posttypes as $posttype)
|
26 |
$posttype != 'revision' &&
|
27 |
$posttype != 'nav_menu_item' &&
|
28 |
$posttype != 'custom_css' &&
|
29 |
+
$posttype != 'customize_changeset' &&
|
30 |
+
// v4.4.2
|
31 |
+
$posttype != 'oembed_cache') {
|
32 |
array_push($relevant_pts, $posttype);
|
33 |
}
|
34 |
} // foreach ($posttypes as $posttype)
|
readme.txt
CHANGED
@@ -7,9 +7,9 @@ Tags: database, delete, revisions, optimize, post, posts, page, pages, clean, cl
|
|
7 |
Author URI: http://cagewebdev.com
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
-
Tested up to: 4.9
|
11 |
-
Stable tag: 4.4.
|
12 |
-
Version: 4.4.
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
@@ -102,6 +102,10 @@ http://cagewebdev.com/wordpress-plugins/
|
|
102 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
|
|
105 |
= 4.4.1 [11/06/2017] =
|
106 |
* BUG FIX: Bug in counting excluded tables fixed
|
107 |
|
7 |
Author URI: http://cagewebdev.com
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
+
Tested up to: 4.9.1
|
11 |
+
Stable tag: 4.4.2
|
12 |
+
Version: 4.4.2
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
102 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
103 |
|
104 |
== Changelog ==
|
105 |
+
= 4.4.2 [12/14/2017] =
|
106 |
+
* NEW: Skip standard posttype 'oembed_cache'
|
107 |
+
* BUG FIX: Hide the settings link (plugin page) for multi site sites (except for the main network site)
|
108 |
+
|
109 |
= 4.4.1 [11/06/2017] =
|
110 |
* BUG FIX: Bug in counting excluded tables fixed
|
111 |
|
rvg-optimize-database.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
-
* @version 4.4.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
@@ -10,7 +10,7 @@ Description: Optimizes the Wordpress Database after Cleaning it out
|
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
-
Version: 4.4.
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
@@ -24,8 +24,8 @@ $odb_class = new OptimizeDatabase();
|
|
24 |
|
25 |
class OptimizeDatabase {
|
26 |
// VERSION
|
27 |
-
var $odb_version = '4.4.
|
28 |
-
var $odb_release_date = '
|
29 |
|
30 |
// PLUGIN OPTIONS
|
31 |
var $odb_rvg_options = array();
|
@@ -350,10 +350,14 @@ class OptimizeDatabase {
|
|
350 |
// v4.1: PLUGIN ONLY CAN BE USED ON THE MAIN SITE (NOT ON THE SUB SITES)
|
351 |
add_action('admin_menu', array(&$this, 'odb_admin_tools'));
|
352 |
add_action('admin_menu', array(&$this, 'odb_admin_settings'));
|
|
|
|
|
353 |
} // if ($blog_id == 1)
|
354 |
} else {
|
355 |
add_action('admin_menu', array(&$this, 'odb_admin_tools'));
|
356 |
add_action('admin_menu', array(&$this, 'odb_admin_settings'));
|
|
|
|
|
357 |
} // if (is_multisite())
|
358 |
|
359 |
// ICON MODE: ADD ICON TO ADMIN MENU
|
@@ -361,10 +365,7 @@ class OptimizeDatabase {
|
|
361 |
add_action('admin_menu', array(&$this, 'odb_admin_icon'));
|
362 |
add_action('admin_menu', array(&$this, 'odb_register_options'));
|
363 |
}
|
364 |
-
|
365 |
-
// ADD 'SETTINGS' LINK TO THE MAIN PLUGIN PAGE
|
366 |
-
add_filter('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'odb_settings_link'));
|
367 |
-
|
368 |
// ADD THE '1 CLICK OPTIMIZE DATABASE' ITEM TO THE ADMIN BAR (IF ACTIVATED)
|
369 |
if($this->odb_rvg_options['adminbar'] == 'Y')
|
370 |
add_action('wp_before_admin_bar_render', array(&$this, 'odb_admin_bar'));
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
+
* @version 4.4.2
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
+
Version: 4.4.2
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
24 |
|
25 |
class OptimizeDatabase {
|
26 |
// VERSION
|
27 |
+
var $odb_version = '4.4.2';
|
28 |
+
var $odb_release_date = '12/14/2017';
|
29 |
|
30 |
// PLUGIN OPTIONS
|
31 |
var $odb_rvg_options = array();
|
350 |
// v4.1: PLUGIN ONLY CAN BE USED ON THE MAIN SITE (NOT ON THE SUB SITES)
|
351 |
add_action('admin_menu', array(&$this, 'odb_admin_tools'));
|
352 |
add_action('admin_menu', array(&$this, 'odb_admin_settings'));
|
353 |
+
// ADD 'SETTINGS' LINK TO THE MAIN PLUGIN PAGE
|
354 |
+
add_filter('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'odb_settings_link'));
|
355 |
} // if ($blog_id == 1)
|
356 |
} else {
|
357 |
add_action('admin_menu', array(&$this, 'odb_admin_tools'));
|
358 |
add_action('admin_menu', array(&$this, 'odb_admin_settings'));
|
359 |
+
// ADD 'SETTINGS' LINK TO THE MAIN PLUGIN PAGE
|
360 |
+
add_filter('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'odb_settings_link'));
|
361 |
} // if (is_multisite())
|
362 |
|
363 |
// ICON MODE: ADD ICON TO ADMIN MENU
|
365 |
add_action('admin_menu', array(&$this, 'odb_admin_icon'));
|
366 |
add_action('admin_menu', array(&$this, 'odb_register_options'));
|
367 |
}
|
368 |
+
|
|
|
|
|
|
|
369 |
// ADD THE '1 CLICK OPTIMIZE DATABASE' ITEM TO THE ADMIN BAR (IF ACTIVATED)
|
370 |
if($this->odb_rvg_options['adminbar'] == 'Y')
|
371 |
add_action('wp_before_admin_bar_render', array(&$this, 'odb_admin_bar'));
|