Skip to content

Commit

Permalink
Merge pull request #40 from spka/issue-39-ABSPATH
Browse files Browse the repository at this point in the history
fix: changed ABSPATH check and route
  • Loading branch information
anandakrishna committed Jul 8, 2021
2 parents 28cbac6 + 9ea88c9 commit 0af2306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/hooks.php
@@ -1,9 +1,9 @@
<?php
require_once(dirname(__FILE__, 3) . "/../../wp-includes/pluggable.php");
require_once(dirname(__FILE__, 3) . "/../../wp-load.php");

if (!defined('ABSPATH')) exit ('Peekaboo!');

require_once(ABSPATH."/wp-includes/pluggable.php");
require_once(ABSPATH."/wp-load.php");

add_action( 'admin_footer', 'wh_admin_footer' );
function wh_admin_footer(){
echo '<a href="#" id="fake_link" target="_blank">&nbsp;</a>';
Expand Down

0 comments on commit 0af2306

Please sign in to comment.