Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Oct 19, 2023
1 parent 712a714 commit 206702f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Managers/CleanupManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function run() {
// Remove comments from the admin menu.
add_action( 'admin_menu', array( $this, 'remove_comments_from_admin_menu' ) );

add_action( 'xmlrpc_enabled', array( $this, 'xmlrpc_enabled' ) );
add_filter( 'xmlrpc_enabled', array( $this, 'xmlrpc_enabled' ) );
}

/**
Expand Down Expand Up @@ -173,7 +173,7 @@ public function remove_comments_from_admin_menu():void {
/**
* Enable or disable XML RPC endpoint.
*/
public function xmlrpc_enabled(): bool {
public function xmlrpc_enabled():bool {
return $this->xml_rpc;
}
}

0 comments on commit 206702f

Please sign in to comment.