Skip to content

Commit 91f21c5

Browse files
authored
Merge pull request #203 from newfold-labs/update/plugin-support
Add support for all plugins
2 parents 66ef74e + 1caba44 commit 91f21c5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/brand-plugin-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
module-repo: ${{ github.repository }}
4242
module-branch: ${{ needs.setup.outputs.branch }}
4343
plugin-repo: 'newfold-labs/wp-plugin-hostgator'
44+
plugin-branch: 'update/plugin-parity'
4445
secrets: inherit
4546

4647
web:
@@ -61,6 +62,7 @@ jobs:
6162
module-repo: ${{ github.repository }}
6263
module-branch: ${{ needs.setup.outputs.branch }}
6364
plugin-repo: 'newfold-labs/wp-plugin-crazy-domains'
65+
plugin-branch: 'update/plugin-parity'
6466
secrets: inherit
6567

6668
mojo:

includes/Performance.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
253253
}
254254
}
255255

256-
$brand = $this->container->get( 'plugin' )['id'];
257256
$wp_admin_bar->add_node(
258257
array(
259258
'id' => 'nfd_purge_menu-cache_settings',
@@ -271,18 +270,12 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
271270
* @return void
272271
*/
273272
public function add_management_page() {
274-
$brand = $this->container->get( 'plugin' )['id'];
275-
276-
// Determine the correct page slug
277-
$page_slug = ( 'bluehost' === $brand )
278-
? self::PAGE_SLUG
279-
: "$brand#/performance";
280273

281274
add_management_page(
282275
__( 'Performance', 'wp-module-performance' ),
283276
__( 'Performance', 'wp-module-performance' ),
284277
'manage_options',
285-
$page_slug,
278+
self::PAGE_SLUG,
286279
array( __CLASS__, 'render_performance_app' )
287280
);
288281
}

0 commit comments

Comments
 (0)