When adding a Shortcode to a core/code block, the Shortcode is printed as text instead of being evaluated (this is useful e.g. for documentation pages of a plugin's Shortcodes).
When then activating "Syntax-highlighting Code Block (with Server-side Rendering)" version 1.3.1 (tested on WP 6.1.1 and trunk), the Shortcode is however evaluated.
To reproduce this:
- Add a small plugin that adds a Shortcode:
<?php
/*
Plugin Name: Shortcode Test
Description: Shortcode Test
Version: 1.0
*/
add_shortcode( 'test', 'shortcode_test' );
function shortcode_test( $atts, $content ) {
return 'Just a test';
}
- Add a "Code" block to a post or page with the Shortcode
[test] as the content.
- Compare the page output with "Syntax-highlighting Code Block (with Server-side Rendering)" deactivated and activated.
When adding a Shortcode to a core/code block, the Shortcode is printed as text instead of being evaluated (this is useful e.g. for documentation pages of a plugin's Shortcodes).
When then activating "Syntax-highlighting Code Block (with Server-side Rendering)" version 1.3.1 (tested on WP 6.1.1 and trunk), the Shortcode is however evaluated.
To reproduce this:
[test]as the content.