| @@ -69,8 +69,13 @@ | ||
| 69 | 69 | |
| 70 | 70 | // Set current snippet context for error handler. |
| 71 | 71 | WINP_Error_Handler::set_current_snippet( $id, $snippet->post_title, $snippet_content ); |
| 72 | 72 | |
| 73 | + $redeclaration_output = $this->render_redeclaration_error( $snippet_content, WINP_SNIPPET_TYPE_UNIVERSAL ); | |
| 74 | + if ( null !== $redeclaration_output ) { | |
| 75 | + return $redeclaration_output; | |
| 76 | + } | |
| 77 | + | |
| 73 | 78 | eval( '?>' . $snippet_content . '<?php ' ); |
| 74 | 79 | |
| 75 | 80 | // Clear snippet context after execution. |
| 76 | 81 | WINP_Error_Handler::clear_current_snippet(); |