| @@ -22,12 +22,10 @@ | ||
| 22 | 22 | public function html( $attr, $content, $tag ) { |
| 23 | 23 | $id = $this->get_snippet_id( $attr, WINP_SNIPPET_TYPE_TEXT ); |
| 24 | 24 | |
| 25 | 25 | if ( ! $id ) { |
| 26 | - if ( current_user_can( 'manage_options' ) || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) { | |
| 27 | - /* translators: %s: Shortcode tag name */ | |
| 28 | - echo '<span style="color:red">' . sprintf( esc_html__( '[%s]: Text snippets error (not passed the snippet ID)', 'insert-php' ), esc_html( $tag ) ) . '</span>'; | |
| 29 | - } | |
| 26 | + /* translators: %s: Shortcode tag name */ | |
| 27 | + echo '<span style="color:red">' . sprintf( esc_html__( '[%s]: Text snippets error (not passed the snippet ID)', 'insert-php' ), esc_html( $tag ) ) . '</span>'; | |
| 30 | 28 | |
| 31 | 29 | return; |
| 32 | 30 | } |
| 33 | 31 | |
| @@ -60,7 +58,7 @@ | ||
| 60 | 58 | * @since 2.4.4 |
| 61 | 59 | */ |
| 62 | 60 | $post_content = apply_filters( 'wbcr/inp/snippet/shortcode_text/post_content', $post_content, $id ); |
| 63 | 61 | |
| 64 | - echo wp_kses_post( wpautop( str_replace( '{{SNIPPET_CONTENT}}', $content, $post_content ) ) ); | |
| 62 | + echo str_replace( '{{SNIPPET_CONTENT}}', $content, $post_content ); | |
| 65 | 63 | } |
| 66 | 64 | } |