Skip to content

Commit 737ffb9

Browse files
committed
Also skip debug comments on XML-RPC requests
advanced-cache.php already treats XMLRPC_REQUEST as a non-HTML response type; keep wpsc_skip_debug_output() consistent so XML-RPC bodies stay clean regardless of the <html sniff.
1 parent 2ac3825 commit 737ffb9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wp-cache-phase2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,7 @@ function wpsc_skip_debug_output( $buffer ) {
21962196
( defined( 'REST_REQUEST' ) && REST_REQUEST ) ||
21972197
( defined( 'JSON_REQUEST' ) && JSON_REQUEST ) ||
21982198
( defined( 'WC_API_REQUEST' ) && WC_API_REQUEST ) ||
2199+
( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ||
21992200
( function_exists( 'wp_doing_ajax' ) && wp_doing_ajax() );
22002201
}
22012202

0 commit comments

Comments
 (0)