Optimize Database after Deleting Revisions - Version 3.5

Version Description

[10/24/2015] = * CHANGE: Stylesheet is only loaded on required admin pages

Download this release

Release Info

Developer cageehv
Plugin Icon 128x128 Optimize Database after Deleting Revisions
Version 3.5
Comparing to
See all releases

Code changes from version 3.4.9 to 3.5

Files changed (2) hide show
  1. readme.txt +5 -2
  2. rvg-optimize-db.php +8 -15
readme.txt CHANGED
@@ -8,8 +8,8 @@ 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.3.1
11
- Stable tag: 3.4.9
12
- Version: 3.4.9
13
  License: GPLv2 or later
14
 
15
  == Description ==
@@ -86,6 +86,9 @@ http://cagewebdev.com/index.php/wordpress-plugins/
86
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
87
 
88
  == Changelog ==
 
 
 
89
  = 3.4.9 [10/23/2015] =
90
  * BUG FIX: Bug fixed for deleting unused tags
91
 
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
  Requires at least: 2.8
10
  Tested up to: 4.3.1
11
+ Stable tag: 3.5
12
+ Version: 3.5
13
  License: GPLv2 or later
14
 
15
  == Description ==
86
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
87
 
88
  == Changelog ==
89
+ = 3.5 [10/24/2015] =
90
+ * CHANGE: Stylesheet is only loaded on required admin pages
91
+
92
  = 3.4.9 [10/23/2015] =
93
  * BUG FIX: Bug fixed for deleting unused tags
94
 
rvg-optimize-db.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
- * @version 3.4.9
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
@@ -9,11 +9,11 @@ Plugin URI: http://cagewebdev.com/index.php/optimize-database-after-deleting-rev
9
  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
- Version: 3.4.9
13
  */
14
 
15
- $odb_version = '3.4.9';
16
- $odb_release_date = '10/23/2015';
17
 
18
  // v3.3 - MULTISITE
19
  $odb_ms_prefixes = array();
@@ -153,17 +153,6 @@ $rvg_odb_adminbar = rvg_odb_get_option('rvg_odb_adminbar');
153
  if($rvg_odb_adminbar == "Y") add_action('wp_before_admin_bar_render', 'rvg_odb_admin_bar');
154
 
155
 
156
- /********************************************************************************************
157
- *
158
- * LOAD STYLE SHEETS (v3.1.1)
159
- *
160
- ********************************************************************************************/
161
- function odb_styles()
162
- { wp_enqueue_style ('odb', plugin_dir_url(__FILE__) . 'css/style.css',false,'1.0','all');
163
- } // odb_styles()
164
- add_action( 'admin_init', 'odb_styles' );
165
-
166
-
167
  /********************************************************************************************
168
  *
169
  * ACTIONS FOR THE SCHEDULER
@@ -486,6 +475,8 @@ function rvg_odb_settings_page()
486
  if(!$rvg_odb_adminmenu) $rvg_odb_adminmenu = 'N';
487
 
488
  ?>
 
 
489
  <script type="text/javascript">
490
  function schedule_changed()
491
  { // v3.1.4
@@ -814,6 +805,8 @@ function rvg_optimize_db()
814
  $results = $wpdb->get_results($sql);
815
  $number_excluded = $results[0]->cnt;
816
  ?>
 
 
817
  <div class="odb-padding-left">
818
  <div class="odb-title-bar">
819
  <h2>
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
+ * @version 3.5
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
9
  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
+ Version: 3.5
13
  */
14
 
15
+ $odb_version = '3.5';
16
+ $odb_release_date = '10/24/2015';
17
 
18
  // v3.3 - MULTISITE
19
  $odb_ms_prefixes = array();
153
  if($rvg_odb_adminbar == "Y") add_action('wp_before_admin_bar_render', 'rvg_odb_admin_bar');
154
 
155
 
 
 
 
 
 
 
 
 
 
 
 
156
  /********************************************************************************************
157
  *
158
  * ACTIONS FOR THE SCHEDULER
475
  if(!$rvg_odb_adminmenu) $rvg_odb_adminmenu = 'N';
476
 
477
  ?>
478
+ <?php /*?>v3.5<?php */?>
479
+ <link rel="stylesheet" type="text/css" media="all" href="<?php echo plugin_dir_url(__FILE__).'css/style.css'?>" />
480
  <script type="text/javascript">
481
  function schedule_changed()
482
  { // v3.1.4
805
  $results = $wpdb->get_results($sql);
806
  $number_excluded = $results[0]->cnt;
807
  ?>
808
+ <?php /*?>v3.5<?php */?>
809
+ <link rel="stylesheet" type="text/css" media="all" href="<?php echo plugin_dir_url(__FILE__).'css/style.css'?>" />
810
  <div class="odb-padding-left">
811
  <div class="odb-title-bar">
812
  <h2>