| @@ -52,8 +52,12 @@ | ||
| 52 | 52 | * @return string |
| 53 | 53 | */ |
| 54 | 54 | private function render_unlocked_content( string $content ) : string { |
| 55 | 55 | if ( doing_filter( 'the_content' ) ) { |
| 56 | + // Mirror the_content order: blocks first, wpautop only for classic content. | |
| 57 | + if ( has_blocks( $content ) ) { | |
| 58 | + return do_shortcode( do_blocks( $content ) ); | |
| 59 | + } | |
| 56 | 60 | return wpautop( do_shortcode( $content ) ); |
| 57 | 61 | } |
| 58 | 62 | return apply_filters( 'the_content', $content ); |
| 59 | 63 | } |