Skip to content

Commit

Permalink
remove XML-RPC integration (#275)
Browse files Browse the repository at this point in the history
The XML-RPC feature is unmaintained and there is no known use case for
the getStats endpoint. With statistics data now available as a REST API
endpoint we have a modern alternative in place. Let's remove the feature
and make room for new stuff.
  • Loading branch information
stklcode committed Nov 5, 2023
1 parent 3c0eb9c commit 47fdbd2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 84 deletions.
80 changes: 0 additions & 80 deletions inc/class-statify-xmlrpc.php

This file was deleted.

4 changes: 1 addition & 3 deletions inc/class-statify.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ public static function init() {
// Cron.
add_action( 'statify_cleanup', array( 'Statify_Cron', 'cleanup_data' ) );

if ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) { // XMLRPC.
add_filter( 'xmlrpc_methods', array( 'Statify_XMLRPC', 'xmlrpc_methods' ) );
} elseif ( is_admin() ) { // Backend.
if ( is_admin() ) { // Backend.
add_action( 'wp_initialize_site', array( 'Statify_Install', 'init_site' ) );
add_action( 'wp_uninitialize_site', array( 'Statify_Uninstall', 'init_site' ) );
add_action( 'wp_dashboard_setup', array( 'Statify_Dashboard', 'init' ) );
Expand Down
1 change: 0 additions & 1 deletion statify.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function statify_autoload( $class ) {
'Statify_Deactivate',
'Statify_Settings',
'Statify_Table',
'Statify_XMLRPC',
'Statify_Cron',
);

Expand Down

0 comments on commit 47fdbd2

Please sign in to comment.