Skip to content

Commit

Permalink
Add debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
DustyReagan committed Jul 23, 2024
1 parent 85a6b6f commit c7ef3f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/packages/masterbar/src/masterbar/class-masterbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public function __construct() {
* Initialize our masterbar.
*/
public function init() {
echo 'init masterbar';
error_log( 'init masterbar' );

Check warning on line 159 in projects/packages/masterbar/src/masterbar/class-masterbar.php

View workflow job for this annotation

GitHub Actions / PHP Code Sniffer (non-excluded files only)

error_log() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_error_log)
$this->locale = $this->get_locale();

// Don't show the masterbar on WordPress mobile apps.
Expand Down

0 comments on commit c7ef3f8

Please sign in to comment.