Skip to content

Commit 0a3416e

Browse files
committed
Fix XHTML validation issue
Props [NoMad1337](http://www.tacticalcode.de/).
1 parent 7b1c5a7 commit 0a3416e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
5555

5656
== ChangeLog ==
5757

58+
= Version 3.1.7 =
59+
60+
* XHTML validation fix by adding `type` attribute to `<style>` tag. Props [NoMad1337](http://www.tacticalcode.de/).
61+
5862
= Version 3.1.6 =
5963

6064
* Kill off v2 copy-to-clipboard SWF file due to XSS security issue with the file. If you want to be able to copy/paste, use the better v3.

syntaxhighlighter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ function js_escape_singlequotes( $string ) {
561561
// Output an anchor in the header for the Javascript to use.
562562
// In the <head>, we don't know if we'll need this plugin's CSS and JavaScript yet but we will in the footer.
563563
function output_header_placeholder() {
564-
echo '<style id="syntaxhighlighteranchor"></style>' . "\n";
564+
echo '<style type="text/css" id="syntaxhighlighteranchor"></style>' . "\n";
565565
}
566566

567567

0 commit comments

Comments
 (0)