Optimize Database after Deleting Revisions - Version 2.4.1

Version Description

[05/24/2013] = * NEW: you can set a time (hour) for the scheduler to run (thanks to frekel) * NEW: '1-click run button' in the admin bar (thanks to JB ORSI)

Download this release

Release Info

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

Code changes from version 2.4 to 2.4.1

Files changed (2) hide show
  1. readme.txt +4 -4
  2. rvg-optimize-db.php +5 -4
readme.txt CHANGED
@@ -6,10 +6,10 @@ Plugin URI: http://cagewebdev.com/index.php/optimize-database-after-deleting-rev
6
  Tags: database, delete, revisions, optimize, post, posts, page, pages, clean, clean up, trash, spam, trashed, spammed, database size, scheduler
7
  Author URI: http://cagewebdev.com
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
- Requires at least: 2.4
10
  Tested up to: 3.5.1
11
- Stable tag: 2.4
12
- Version: 2.4
13
 
14
  == Description ==
15
 
@@ -48,7 +48,7 @@ http://wordpress.org/extend/plugins/rvg-optimize-database/
48
 
49
  == Changelog ==
50
 
51
- = 2.4 [05/24/2013] =
52
  * NEW: you can set a time (hour) for the scheduler to run (thanks to frekel)
53
  * NEW: '1-click run button' in the admin bar (thanks to JB ORSI)
54
 
6
  Tags: database, delete, revisions, optimize, post, posts, page, pages, clean, clean up, trash, spam, trashed, spammed, database size, scheduler
7
  Author URI: http://cagewebdev.com
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
+ Requires at least: 2.4.1
10
  Tested up to: 3.5.1
11
+ Stable tag: 2.4.1
12
+ Version: 2.4.1
13
 
14
  == Description ==
15
 
48
 
49
  == Changelog ==
50
 
51
+ = 2.4.1 [05/24/2013] =
52
  * NEW: you can set a time (hour) for the scheduler to run (thanks to frekel)
53
  * NEW: '1-click run button' in the admin bar (thanks to JB ORSI)
54
 
rvg-optimize-db.php CHANGED
@@ -1,16 +1,16 @@
1
  <?php
2
- $odb_version = '2.4';
3
  $odb_release_date = '05/24/2013';
4
  /**
5
  * @package Optimize Database after Deleting Revisions
6
- * @version 2.4
7
  */
8
  /*
9
  Plugin Name: Optimize Database after Deleting Revisions
10
  Plugin URI: http://cagewebdev.com/index.php/optimize-database-after-deleting-revisions-wordpress-plugin/
11
  Description: Optimizes the Wordpress Database after Cleaning it out - <a href="options-general.php?page=rvg_odb_admin"><strong>plug in options</strong></a>
12
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
13
- Version: 2.4
14
  Author URI: http://cagewebdev.com
15
  */
16
  ?>
@@ -50,7 +50,8 @@ add_action( 'admin_menu', 'rvg_odb_admin_menu' );
50
  function rvg_odb_admin_bar()
51
  { global $wp_admin_bar;
52
  if ( !is_super_admin() || !is_admin_bar_showing() ) return;
53
- $wp_admin_bar->add_menu( array('id' => 'optimize','title' => __( 'Optimize DB (1 click)'),'href' => __('/wp-admin/tools.php?page=rvg-optimize-db.php&action=run'),) );
 
54
  }
55
  add_action( 'wp_before_admin_bar_render', 'rvg_odb_admin_bar' );
56
 
1
  <?php
2
+ $odb_version = '2.4.1';
3
  $odb_release_date = '05/24/2013';
4
  /**
5
  * @package Optimize Database after Deleting Revisions
6
+ * @version 2.4.1
7
  */
8
  /*
9
  Plugin Name: Optimize Database after Deleting Revisions
10
  Plugin URI: http://cagewebdev.com/index.php/optimize-database-after-deleting-revisions-wordpress-plugin/
11
  Description: Optimizes the Wordpress Database after Cleaning it out - <a href="options-general.php?page=rvg_odb_admin"><strong>plug in options</strong></a>
12
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
13
+ Version: 2.4.1
14
  Author URI: http://cagewebdev.com
15
  */
16
  ?>
50
  function rvg_odb_admin_bar()
51
  { global $wp_admin_bar;
52
  if ( !is_super_admin() || !is_admin_bar_showing() ) return;
53
+ $siteurl = site_url('/');
54
+ $wp_admin_bar->add_menu( array('id' => 'optimize','title' => __( 'Optimize DB (1 click)'),'href' => __('tools.php?page=rvg-optimize-db.php&action=run') ) );
55
  }
56
  add_action( 'wp_before_admin_bar_render', 'rvg_odb_admin_bar' );
57