fix: PHP errors and clean up error_log statements
- Fixed redirect_wc_pages_to_spa: added spa_mode check (only redirect when 'full') - Fixed PHP fatal error: use get_queried_object() instead of global $product - Removed all error_log debug statements from codebase - Fixed broken syntax in PaymentGatewaysProvider.php after error_log removal
This commit is contained in:
@@ -86,13 +86,11 @@ class EmailRenderer {
|
||||
|
||||
if (!$template) {
|
||||
if (defined('WP_DEBUG') && WP_DEBUG) {
|
||||
error_log('[EmailRenderer] No template found for event: ' . $event_id . ', recipient: ' . $recipient_type);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if (defined('WP_DEBUG') && WP_DEBUG) {
|
||||
error_log('[EmailRenderer] Template found - Subject: ' . ($template['subject'] ?? 'no subject'));
|
||||
}
|
||||
|
||||
// Get design template preference
|
||||
|
||||
Reference in New Issue
Block a user