|
4 | 4 |
|
5 | 5 | Plugin Name: SyntaxHighlighter Evolved
|
6 | 6 | Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
|
7 |
| -Version: 3.4.1 |
| 7 | +Version: 3.4.2 |
8 | 8 | 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.
|
9 | 9 | Author: Alex Mills (Viper007Bond)
|
10 | 10 | Author URI: http://www.viper007bond.com/
|
|
21 | 21 |
|
22 | 22 | class SyntaxHighlighter {
|
23 | 23 | // 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 |
25 | 25 | var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
|
26 | 26 | var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
|
27 | 27 | var $settings = array(); // Contains the user's settings
|
@@ -344,6 +344,12 @@ function enqueue_block_editor_assets() {
|
344 | 344 | *
|
345 | 345 | * For the shortcode, brushes are activated by `shortcode_callback()`, but that won't detect brushes that were
|
346 | 346 | * 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. |
347 | 353 | */
|
348 | 354 | function enable_brushes_used_in_blocks( $content ) {
|
349 | 355 | /*
|
@@ -410,6 +416,8 @@ function enable_brushes_used_in_blocks( $content ) {
|
410 | 416 | * have child blocks and so forth. Technically this means that we're
|
411 | 417 | * parsing any regular SyntaxHighlighter blocks again, but oh well. :)
|
412 | 418 | *
|
| 419 | + * @since 3.4.2 |
| 420 | + * |
413 | 421 | * @param string $content The post content.
|
414 | 422 | *
|
415 | 423 | * @return string Unmodified $content.
|
|
0 commit comments