Skip to content

Commit

Permalink
wip tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
leonstafford committed May 13, 2020
1 parent a1199d9 commit 834fcc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,12 @@ public function addOptionsPage() : void {

// ensure WP2Static menu is active for addon
public function setActiveParentMenu() {
global $plugin_page;
global $plugin_page;

if ('wp2static-addon-bunnycdn' === $plugin_page) {
$plugin_page = 'wp2static-options';
}
if ('wp2static-addon-bunnycdn' === $plugin_page) {
// phpcs:ignore
$plugin_page = 'wp2static-options';
}
}
}

2 changes: 1 addition & 1 deletion wp2static-addon-bunnycdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

define( 'WP2STATIC_BUNNYCDN_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP2STATIC_BunnyCDN_VERSION', '1.0-alpha-006' );
define( 'WP2STATIC_BUNNYCDN_VERSION', '1.0-alpha-006' );

if ( file_exists( WP2STATIC_BUNNYCDN_PATH . 'vendor/autoload.php' ) ) {
require_once WP2STATIC_BUNNYCDN_PATH . 'vendor/autoload.php';
Expand Down

0 comments on commit 834fcc8

Please sign in to comment.