Skip to content

Commit b66a926

Browse files
committed
Ensure that class names are unique in admin bar files.
These files are loaded as part of separate and mutually-exclusive code paths, but it's better for consistency and for PHPCS to use unique names anyway.
1 parent 4bf4567 commit b66a926

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

includes/network-toolbar-legacy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ function openlab_remove_admin_bar_default_css( $styles ) {
282282
/**
283283
* Bootstrap
284284
*/
285-
add_action( 'add_admin_bar_menus', array( 'OpenLab_Admin_Bar', 'init' ) );
285+
add_action( 'add_admin_bar_menus', array( 'OpenLab_Admin_Bar_Legacy', 'init' ) );
286286

287-
class OpenLab_Admin_Bar {
287+
class OpenLab_Admin_Bar_Legacy {
288288
public static function init() {
289289
static $instance;
290290

291291
if ( empty( $instance ) ) {
292-
$instance = new OpenLab_Admin_Bar();
292+
$instance = new OpenLab_Admin_Bar_Legacy();
293293
}
294294
}
295295

0 commit comments

Comments
 (0)