Plugin Directory

Changeset 1030856


Ignore:
Timestamp:
11/22/2014 06:39:55 PM (11 years ago)
Author:
galerio
Message:

removed unwanted unnecessary menu

Location:
better-delete-revision/trunk
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • better-delete-revision/trunk/better-delete-revision.php

    r1030151 r1030856  
    1414best things you can do to your Wordpress blog to keep it running as fast as it
    1515can.
    16 Author: Galerio & Urda, BestWebLayout
    17 Version: 1.6
     16Author: Galerio & Urda
     17Version: 1.6.1
    1818Author URI: http://www.1e2.it/
    1919License: GPLv3 or later
     
    3737    function bdr_admin_menu() {
    3838        add_options_page( __( 'Better Delete Revision', 'bdr' ), __( 'Better Delete Revision', 'bdr' ), 'manage_options', basename( __FILE__ ), 'bdr_page' );
    39 
    40         global $bstwblt_options, $bstwblt_added_menu;
    41         $bwl_menu_info = get_plugin_data( plugin_dir_path( __FILE__ ) . "bwl_menu/bwl_menu.php" );
    42         $bwl_menu_version = $bwl_menu_info["Version"];
    43         $base = plugin_basename(__FILE__);
    44 
    45         if ( ! isset( $bstwblt_options ) ) {
    46             if ( function_exists( 'is_multisite' ) ) {
    47                 if ( is_multisite() ) {
    48                     if ( ! get_site_option( 'bstwblt_options' ) )
    49                         add_site_option( 'bstwblt_options', array(), '', 'yes' );
    50                     $bstwbsftwppdtplgns_options = get_site_option( 'bstwblt_options' );
    51                 } else {
    52                     if ( ! get_option( 'bstwblt_options' ) )
    53                         add_option( 'bstwblt_options', array(), '', 'yes' );
    54                     $bstwblt_options = get_option( 'bstwblt_options' );
    55                 }
    56             } else {
    57                 if ( ! get_option( 'bstwblt_options' ) )
    58                         add_option( 'bstwblt_options', array(), '', 'yes' );
    59                     $bstwblt_options = get_option( 'bstwblt_options' );
    60             }
    61         }
    62        
    63         if ( ! isset( $bstwblt_options['bwl_menu']['version'][ $base ] ) || $bstwblt_options['bwl_menu']['version'][ $base ] < $bwl_menu_version ) {
    64             $bstwblt_options['bwl_menu']['version'][ $base ] = $bwl_menu_version;
    65             update_option( 'bstwblt_options', $bstwblt_options, '', 'yes' );
    66             require_once( dirname( __FILE__ ) . '/bwl_menu/bwl_menu.php' );
    67         } else if ( ! isset( $bstwblt_added_menu ) ) {
    68             $plugin_with_newer_menu = $base;
    69             foreach ( $bstwblt_options['bwl_menu']['version'] as $key => $value ) {
    70                 if ( $bwl_menu_version < $value && is_plugin_active( $base ) )
    71                     $plugin_with_newer_menu = $key;
    72             }
    73 
    74             $plugin_with_newer_menu = explode( '/', $plugin_with_newer_menu );
    75        
    76             $wp_content_dir = defined( 'WP_CONTENT_DIR' ) ? basename( WP_CONTENT_DIR ) : 'wp-content';
    77             if ( file_exists( ABSPATH . $wp_content_dir . '/plugins/' . $plugin_with_newer_menu[0] . '/bwl_menu/bwl_menu.php' ) )
    78                 require_once( ABSPATH . $wp_content_dir . '/plugins/' . $plugin_with_newer_menu[0] . '/bwl_menu/bwl_menu.php' );
    79             else
    80                 require_once( dirname( __FILE__ ) . '/bwl_menu/bwl_menu.php' );
    81             $bstwblt_added_menu = true;         
    82         }   
    83         add_menu_page( 'BWL Plugins', 'BWL Plugins', 'manage_options', 'bwl_plugins', 'bwl_add_menu_render', plugins_url( "images/px.png", __FILE__ ), 1001 );
    8439    }
    8540}
  • better-delete-revision/trunk/readme.txt

    r1030151 r1030856  
    11=== Better Delete Revision ===
    2 Contributors: galerio, Urda, bestweblayout
     2Contributors: galerio, Urda
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K72TR62V5ZDU8
    44Tags: better delete revision, revision, delete, remove, removal, revision removal, delete revision, disable revision, no revision, revision manager, manage revision, remove revision, post revision, page revision, optimize database, database optimization, optimize, fast, light, faster, lighter, speed up, improve site performance, redundant revisions, perform optimization, delete revision from database, remove old database content, reduce database size
    55Requires at least: 2.7
    66Tested up to: 4.0.1
    7 Stable tag: 1.6
     7Stable tag: 1.6.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1818This plugin can also perform optimizations on your Wordpress database. With optimization and old revision removal this plugin will keep your database lighter and smaller throughout use. Removing old revisions and database optimizations is one of the best things you can do to your Wordpress blog to keep it running as fast as it can.
    1919
    20 Please pay ATTENTION, if you use the NextGEN Gallery plugin, some problems may occur when deleting revisions of posts or pages that contain the shortcode of the NextGEN Gallery plugin. So if you also use the NextGEN Gallery plugin we recommend you to make a backup before using the Better Delete Revision.
     20Please pay ATTENTION, even if we added a fix that solve the problem, if you use the NextGEN Gallery plugin, some problems may occur when deleting revisions of posts or pages that contain the shortcode of the NextGEN Gallery plugin. So if you also use the NextGEN Gallery plugin we recommend you to make a backup before using the Better Delete Revision.
    2121
    2222Wordpress MU or customs installation (like some pre-made installation of some Hosting Providers) are not yet supported. Wordpress MU support is in our TODO list.
     
    6767
    6868== Changelog ==
     69
     70= V1.6.1 - 22.11.2014 =
     71* Removed : Unnecessary and unwanted menu
    6972
    7073= V1.6 - 21.11.2014 =
Note: See TracChangeset for help on using the changeset viewer.