summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wp-syntax/wp-syntax.php')
-rw-r--r--plugins/wp-syntax/wp-syntax.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/wp-syntax/wp-syntax.php b/plugins/wp-syntax/wp-syntax.php
index c2f3792f..db9ea98b 100644
--- a/plugins/wp-syntax/wp-syntax.php
+++ b/plugins/wp-syntax/wp-syntax.php
@@ -4,7 +4,7 @@ Plugin Name: WP-Syntax
Plugin URI: http://wordpress.org/extend/plugins/wp-syntax/
Description: Syntax highlighting using <a href="http://qbnz.com/highlighter/">GeSHi</a> supporting a wide range of popular languages. Wrap code blocks with <code>&lt;pre lang="LANGUAGE" line="1"&gt;</code> and <code>&lt;/pre&gt;</code> where <code>LANGUAGE</code> is a geshi supported language syntax. The <code>line</code> attribute is optional.
Author: Ryan McGeary, Steven A. Zahm
-Version: 0.9.9
+Version: 0.9.10
Author URI: http://connections-pro.com
*/
@@ -59,7 +59,7 @@ function wp_syntax_head()
$css_url = get_bloginfo("template_url") . "/wp-syntax.css";
}
echo "\n".'<link rel="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."\n";*/
-
+
$css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css";
if (file_exists(STYLESHEETPATH . "/wp-syntax.css"))
{
@@ -161,6 +161,7 @@ function wp_syntax_after_filter($content)
}
$wp_syntax_token = md5(uniqid(rand()));
+$wp_syntax_matches = array();
// Add styling
add_action('wp_head', 'wp_syntax_head');