Skip to content

Commit 91ccf4d

Browse files
authored
add support for all plugins
1 parent 4bb6161 commit 91ccf4d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

includes/Performance.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,18 +271,12 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
271271
* @return void
272272
*/
273273
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";
280274

281275
add_management_page(
282276
__( 'Performance', 'wp-module-performance' ),
283277
__( 'Performance', 'wp-module-performance' ),
284278
'manage_options',
285-
$page_slug,
279+
self::PAGE_SLUG,
286280
array( __CLASS__, 'render_performance_app' )
287281
);
288282
}

0 commit comments

Comments
 (0)