Skip to content

Commit

Permalink
Bugfix / debug code depends on MyPHP but we don't currently have MyPH…
Browse files Browse the repository at this point in the history
…P packaged in with the plugin.
  • Loading branch information
Charles committed Sep 15, 2015
1 parent eb0c852 commit 3ee5a7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/wpw_wikiparser.php
Expand Up @@ -138,11 +138,8 @@ function handle_internallink($matches) {
return sprintf('<a href="%s" title="%s">%s</a>', esc_url($newhref), $namespace . ": " . $href, $title);
endif;

/*DBG*/ if (MyPHP::get('debug')) : var_dump($href); endif;
$href = $this->toWikiHref($href);
/*DBG*/ if (MyPHP::get('debug')) : var_dump($href); endif;
$slug = sanitize_title($href);
/*DBG*/ if (MyPHP::get('debug')) : var_dump($slug); endif;

$wiki = $wpdb->get_var(
'SELECT `p`.`id` FROM `' . $wpdb->posts . '` `p`
Expand Down

0 comments on commit 3ee5a7f

Please sign in to comment.