PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.7.5
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.7.5
2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 2.7.1 All 27 releases
← All changes | includes/shortcodes/shortcode-php.php +1 -1 trunk2.7.5 View file →
@@ -21,9 +21,9 @@
21 21 */
22 22 public function html( $attr, $content, $tag ) {
23 23 $id = $this->get_snippet_id( $attr, WINP_SNIPPET_TYPE_PHP );
24 24
25 - if ( ! $id && ( current_user_can( 'manage_options' ) || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) ) {
25 + if ( ! $id ) {
26 26 /* translators: %s: Shortcode tag name */
27 27 echo '<span style="color:red">' . sprintf( esc_html__( '[%s]: PHP snippets error (not passed the snippet ID)', 'insert-php' ), esc_html( $tag ) ) . '</span>';
28 28
29 29 return;