Skip to content

Commit

Permalink
Remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
joppuyo committed Mar 26, 2024
1 parent 407657b commit 92c1089
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public function init()
add_filter('template_redirect', [$this, 'set_404']);
add_filter('redirect_canonical', [$this, 'redirect_canonical'], 0, 2);
add_filter('attachment_link', [$this, 'change_attachment_link'], 10, 2);

error_log(print_r('init', true));
}

public function __construct()
Expand All @@ -50,8 +48,6 @@ public static function debug(...$messages)

function set_404()
{
error_log(print_r('set_404', true));

if (is_attachment()) {
global $wp_query;
$wp_query->set_404();
Expand Down

0 comments on commit 92c1089

Please sign in to comment.