diff --git a/chartbeat.php b/chartbeat.php index 6130256..01d8c09 100644 --- a/chartbeat.php +++ b/chartbeat.php @@ -3,7 +3,7 @@ Plugin Name: Chartbeat Plugin URI: http://chartbeat.com/wordpress/ Description: Adds Chartbeat pinging to Wordpress. -Version: 2.0.6 +Version: 2.0.7 Author: Chartbeat Author URI: http://chartbeat.com/ */ @@ -297,6 +297,9 @@ function chartbeat_configs() { else $cb_configs['use_canonical'] = 'false'; + // Setup custom 'path' + $cb_configs['path'] = apply_filters( 'chartbeat_config_path', false ); + return $cb_configs; } @@ -314,6 +317,9 @@ function add_chartbeat_config(){ _sf_async_config.domain = ""; _sf_async_config.useCanonical = ; + _sf_async_config.path = ''; + _sf_async_config.authors = ""; @@ -328,7 +334,7 @@ function add_chartbeat_footer() { // if visitor is admin AND tracking is off, do not load chartbeat if ( current_user_can( 'manage_options') && get_option('chartbeat_trackadmins') == 0) - return $analytics ; + return; ?>