WordPress.org

Plugin Directory

Changeset 482339


Ignore:
Timestamp:
12/30/11 14:04:53 (2 years ago)
Author:
ruhanirabin
Message:
 
Location:
wp-optimize/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-optimize/trunk/readme.txt

    r482317 r482339  
    1111Tested up to: 3.5 
    1212 
    13 Stable tag: 0.9.3 
     13Stable tag: 0.9.4 
    1414 
    1515 
     
    141141 
    142142== Changelog == 
     143 
     144 
     145= 0.9.4 = 
     146 
     147* Non Initialized variables fixes as of http://wordpress.org/support/topic/plugin-wp-optimize-errors-in-debug-mode?replies=2 
    143148 
    144149 
  • wp-optimize/trunk/wp-optimize-admin.php

    r482312 r482339  
    6464function cleanUpSystem($cleanupType){ 
    6565    global $wpdb; 
    66     $clean = ""; 
     66    $clean = ""; $message = ""; 
    6767 
    6868    switch ($cleanupType) { 
     
    126126function getInfo($cleanupType){ 
    127127    global $wpdb; 
    128     $sql = ""; 
     128    $sql = ""; $message = ""; 
    129129 
    130130    switch ($cleanupType) { 
     
    359359$alternate = ' class="alternate"'; 
    360360    $db_clean = DB_NAME; 
    361     $tot_data = 0; 
     361    $tot_data = 0; $total_gain = 0; $total_db_space = 0; $total_db_space_a = 0; 
    362362    $tot_idx = 0; 
    363363    $tot_all = 0; 
  • wp-optimize/trunk/wp-optimize.php

    r482312 r482339  
    44Plugin URI: http://www.ruhanirabin.com/wp-optimize/ 
    55Description: This plugin helps you to keep your database clean by removing post revisions and spams in a blaze. allows you to rename your admin name also. Additionally it allows you to run optimize command on your wordpress core tables (use with caution). 
    6 Version: 0.9.3 
     6Version: 0.9.4 
    77Author: Ruhani Rabin 
    88Author URI: http://www.ruhanirabin.com 
     
    5050    global $current_user; 
    5151    if ( current_user_can('manage_options') ) { 
    52         if (function_exists('add_meta_box')) {  
    53             add_menu_page("WP-Optimize", "WP-Optimize", 2, "WP-Optimize", "optimize_menu"); 
     52        if (function_exists('add_meta_box')) { 
     53            add_menu_page("WP-Optimize", "WP-Optimize", "manage_options", "WP-Optimize", "optimize_menu"); 
    5454        } else { 
    55         add_submenu_page("index.php", "WP-Optimize", "WP-Optimize", 2, "WP-Optimize", "optimize_menu"); 
     55            add_submenu_page("index.php", "WP-Optimize", "WP-Optimize", "manage_options", "WP-Optimize", "optimize_menu"); 
    5656        } // end if addmetabox 
    5757    }    
Note: See TracChangeset for help on using the changeset viewer.