Skip to content

Commit

Permalink
Don't bother loading this plugin on the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Viper007Bond committed Dec 7, 2015
1 parent 822d144 commit a1af651
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regenerate-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public static function instance() {
* file, registering the various actions and filters, and filtering the plugin's capability.
*/
public function setup() {
if ( ! is_admin() ) {
return false;
}

load_plugin_textdomain( 'regenerate-thumbnails', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' );

// Add a new item to the Tools menu in the admin menu
Expand Down

0 comments on commit a1af651

Please sign in to comment.