replace_short_tags( $template ); $error = null; eval_template( $php_code, $args, $error ); if ( $error instanceof Throwable ) { $this->handle_error( $error, $template, $args, $unique_id, $is_validation ); } } protected function replace_short_tags( string $template ): string { $short_tags = array( // 1: any present long version into the short one. ' ' ' ' $replacement ) { $template = str_replace( $short_tag, $replacement, $template ); } return $template; } }