Skip to content

Commit b4d7217

Browse files
committed
Fix lint
1 parent a5be0cf commit b4d7217

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

modules/xml-rpc/xml-rpc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)