File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ class Xml_Rpc {
66
77 public static function init () {
88 if ( ! defined ( 'VIP_SECURITY_BOOST_CONFIGS ' ) ) {
9- error_log ( 'VIP_SECURITY_BOOST_CONFIGS not defined ' );
9+ // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
10+ trigger_error ( 'VIP_SECURITY_BOOST_CONFIGS not defined ' );
1011 return ;
1112 }
1213
@@ -17,7 +18,6 @@ public static function init() {
1718
1819 if ( vip_is_jetpack_request () ) {
1920 // Jetpack is allowed to use XML-RPC.
20- error_log ( 'Allowing Jetpack to use XML-RPC ' );
2121 return ;
2222 }
2323
@@ -60,6 +60,7 @@ public static function disable_xml_rpc() {
6060 add_filter ('wp_xmlrpc_server_class ' , function ( $ class ) {
6161 header ('HTTP/1.1 403 Forbidden ' );
6262 exit ('Access to XML-RPC is disabled on this site. ' );
63+ return $ class ;
6364 });
6465 }
6566
You can’t perform that action at this time.
0 commit comments