Skip to content

Commit

Permalink
Bump plugin version number, strip trailing PHP tag, and define a clas…
Browse files Browse the repository at this point in the history
…s variable
  • Loading branch information
Viper007Bond committed Apr 23, 2015
1 parent 2c8af5e commit c4d8029
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions regenerate-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin Name: Regenerate Thumbnails
Plugin URI: http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/
Description: Allows you to regenerate thumbnail images for times when you change thumbnail sizes or switch to a theme with a different featured image size.
Version: 2.3.0
Version: 2.4.0
Author: Viper007Bond
Author URI: http://www.viper007bond.com/
Expand All @@ -14,7 +14,7 @@
**************************************************************************
Copyright (C) 2008-2012 Alex Mills (Viper007Bond)
Copyright (C) 2008-2015 Alex Mills (Viper007Bond)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 or greater,
Expand All @@ -34,6 +34,7 @@

class RegenerateThumbnails {
public $menu_id;
public $capability = 'manage_options'; // Modify using the "regenerate_thumbs_cap" filter

private static $instance;

Expand Down Expand Up @@ -69,7 +70,7 @@ public function setup() {
add_action( 'attachment_submitbox_misc_actions', array( $this, 'add_submitbox_button' ), 99 ); // Button on media edit screen

// Allow people to change what capability is required to use this plugin
$this->capability = apply_filters( 'regenerate_thumbs_cap', 'manage_options' );
$this->capability = apply_filters( 'regenerate_thumbs_cap', $this->capability );
}


Expand Down Expand Up @@ -431,6 +432,4 @@ function RegenerateThumbnails() {
return RegenerateThumbnails::instance();
}

add_action( 'plugins_loaded', 'RegenerateThumbnails' );

?>
add_action( 'plugins_loaded', 'RegenerateThumbnails' );

0 comments on commit c4d8029

Please sign in to comment.