From 1be41c8ae84d40a032a42817b35eedd422408c8b Mon Sep 17 00:00:00 2001 From: Peter Molnar Date: Tue, 22 Jul 2014 10:50:53 +0100 Subject: [PATCH] 0.1, really --- wp-common | 2 +- wp-parsedown.php | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/wp-common b/wp-common index cd71352..a2af50d 160000 --- a/wp-common +++ b/wp-common @@ -1 +1 @@ -Subproject commit cd713521e8b843abacba790ba8d46363c803f1b8 +Subproject commit a2af50d2a60812c41e6539b17b310a43fd5535dc diff --git a/wp-parsedown.php b/wp-parsedown.php index ac8b08c..e774e67 100644 --- a/wp-parsedown.php +++ b/wp-parsedown.php @@ -163,6 +163,9 @@ class WP_PARSEDOWN extends PluginAbstract { +

+ +

options['log'] ) || $this->options['log'] != 1 ) + if ( !isset ( $this->options['debug'] ) || $this->options['debug'] != 1 ) return false; else $this->utils->log ( $this->plugin_constant, $message, $log_level ); @@ -211,8 +214,8 @@ class WP_PARSEDOWN extends PluginAbstract { * */ public function markdown_on_the_fly ( $markdown ) { - $post = get_the_post(); - $this->log ( sprintf ( __('WP-Parsedown parsing post: %s', $post->ID ) ) ); + $post = get_post(); + $this->log ( sprintf ( __('parsing post: %s', $this->plugin_constant), $post->ID ) ); return $this->parsedown->text ( $markdown ); } @@ -225,7 +228,7 @@ $wp_parsedown_defaults = array ( 'debug' => 0, ); -$wp_parsedown = new WP_GHOST ( 'wp-parsedown', '0.1', 'WP-Parsedown', $wp_parsedown_defaults ); +$wp_parsedown = new WP_PARSEDOWN ( 'wp-parsedown', '0.1', 'WP-Parsedown', $wp_parsedown_defaults ); ?>