Skip to content

Commit

Permalink
Remove excessive admin.php loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymitr committed Oct 31, 2024
1 parent 2e1ae27 commit 8abca0d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions projects/plugins/jetpack/class-jetpack-xmlrpc-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ public static function json_api( $args = array() ) {
define( 'REST_API_REQUEST', true );
define( 'WPCOM_JSON_API__BASE', 'public-api.wordpress.com/rest/v1' );

// needed?
require_once ABSPATH . 'wp-admin/includes/admin.php';

require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
$api = WPCOM_JSON_API::init( $method, $url, $post_body );
$api->token_details['user'] = $user_details;
Expand Down

0 comments on commit 8abca0d

Please sign in to comment.