Skip to content

Commit

Permalink
Merge pull request #5 from mrqaidi/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Oct 19, 2020
2 parents 2643c13 + 464c3ff commit ae41bc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QM_Collector_WPBP_Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class QM_Collector_WPBP_Debug extends QM_Collector {
function __construct( $title, $parent ) {
$this->title = $title;
$this->parent = $parent;
$this->id = strtolower( str_replace(' ', '_', $title ) );
$this->id = strtolower( str_replace(' ', '-', $title ) );
}

public function name() {
Expand Down
2 changes: 1 addition & 1 deletion QM_Collector_WPBP_Debug_Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public function __construct( QM_Collector $collector, $output, $title ) {
parent::__construct( $collector );
$this->output = $output;
$this->title = $title;
$this->id = strtolower( str_replace(' ', '_', $title ) );
$this->id = strtolower( str_replace(' ', '-', $title ) );
add_filter( 'qm/output/menus', array( $this, 'admin_menu' ), 101 );
add_filter( 'qm/output/title', array( $this, 'admin_title' ), 101 );
add_filter( 'qm/output/menu_class', array( $this, 'admin_class' ) );
Expand Down
2 changes: 1 addition & 1 deletion debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function load (array $output, QM_Collectors $collectors ) {
include 'QM_Collector_WPBP_Debug_Output.php';
}

$id = strtolower( str_replace( ' ', '_', $this->title ) );
$id = strtolower( str_replace( ' ', '-', $this->title ) );
if ( $collector = QM_Collectors::get( $id ) ) {
$output[ $id ] = new QM_Collector_WPBP_Debug_Output( $collector, $this->output, $this->title );
}
Expand Down

0 comments on commit ae41bc2

Please sign in to comment.