Skip to content

Commit e331b3e

Browse files
committed
Version bump
1 parent b64f3be commit e331b3e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Try excluding this plugin's Javascript from any performance optimizations your s
3737

3838
== ChangeLog ==
3939

40+
= Version 3.4.2 =
41+
42+
* Blocks: Support SyntaxHighlighter block being used as a reusable block.
43+
4044
= Version 3.4.1 =
4145

4246
* Bring back support for the Gutenberg plugin for the people that are still on older versions of WordPress (pre-5.0) and are using the new block editor via the Gutenberg plugin.

syntaxhighlighter.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Plugin Name: SyntaxHighlighter Evolved
66
Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7-
Version: 3.4.1
7+
Version: 3.4.2
88
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
99
Author: Alex Mills (Viper007Bond)
1010
Author URI: http://www.viper007bond.com/
@@ -21,7 +21,7 @@
2121

2222
class SyntaxHighlighter {
2323
// All of these variables are private. Filters are provided for things that can be modified.
24-
var $pluginver = '3.4.1'; // Plugin version
24+
var $pluginver = '3.4.2'; // Plugin version
2525
var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
2626
var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
2727
var $settings = array(); // Contains the user's settings
@@ -344,6 +344,12 @@ function enqueue_block_editor_assets() {
344344
*
345345
* For the shortcode, brushes are activated by `shortcode_callback()`, but that won't detect brushes that were
346346
* used in blocks. For that, we need to extract the data from the block's attributes.
347+
*
348+
* @since 3.3.0
349+
*
350+
* @param string $content The post content.
351+
*
352+
* @return string Unmodified $content.
347353
*/
348354
function enable_brushes_used_in_blocks( $content ) {
349355
/*
@@ -410,6 +416,8 @@ function enable_brushes_used_in_blocks( $content ) {
410416
* have child blocks and so forth. Technically this means that we're
411417
* parsing any regular SyntaxHighlighter blocks again, but oh well. :)
412418
*
419+
* @since 3.4.2
420+
*
413421
* @param string $content The post content.
414422
*
415423
* @return string Unmodified $content.

0 commit comments

Comments
 (0)