all repos — wp-parsedown @ 1be41c8ae84d40a032a42817b35eedd422408c8b

0.1, really
Peter Molnar hello@petermolnar.eu
Tue, 22 Jul 2014 10:50:53 +0100
commit

1be41c8ae84d40a032a42817b35eedd422408c8b

parent

cfbc5d2e728b3e0b09a317bb04a9f903f969c2fd

1 files changed, 7 insertions(+), 4 deletions(-)

jump to
M wp-parsedown.phpwp-parsedown.php

@@ -163,6 +163,9 @@ <span class="description"><?php _e('Enables log messages; if <a href="http://codex.wordpress.org/WP_DEBUG">WP_DEBUG</a> is enabled, notices and info level is displayed as well, otherwie only ERRORS are logged.', $this->plugin_constant); ?></span>

</dd> </dl> </fieldset> + <p class="clear"> + <input class="button-primary" type="submit" name="<?php echo $this->button_save ?>" id="<?php echo $this->button_save ?>" value="<?php _e('Save Changes', $this->plugin_constant ) ?>" /> + </p> </form> </div> <?php

@@ -201,7 +204,7 @@ * log wrapper to include options

* */ public function log ( $message, $log_level = LOG_WARNING ) { - if ( !isset ( $this->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 @@ /**

* */ 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 ); ?>