| @@ -41,14 +41,9 @@ | ||
| 41 | 41 | |
| 42 | 42 | if ( ! $is_activate || $snippet_scope != 'shortcode' || ! $is_condition ) { |
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | - | |
| 46 | - $post_content = $snippet->post_content; | |
| 47 | - if ( WINP_Plugin::app()->getOption( 'execute_shortcode' ) ) { | |
| 48 | - $post_content = do_shortcode( $post_content ); | |
| 49 | - } | |
| 50 | - | |
| 51 | - echo str_replace( '{{SNIPPET_CONTENT}}', $content, $post_content ); | |
| 45 | + | |
| 46 | + echo str_replace( '{{SNIPPET_CONTENT}}', $content, do_shortcode( $snippet->post_content ) ); | |
| 52 | 47 | } |
| 53 | 48 | |
| 54 | 49 | } |