Skip to content

Commit

Permalink
class-IXR.php doesn't need to be included anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Mar 2, 2023
1 parent 0ff64be commit 5e2adb5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/wp-includes/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,6 @@ function generic_ping( $post_id = 0 ) {
* @param int|WP_Post $post Post ID or object.
*/
function pingback( $content, $post ) {
include_once ABSPATH . WPINC . '/class-IXR.php';

// Original code by Mort (http://mort.mine.nu:8080).
$post_links = array();
Expand Down Expand Up @@ -3217,7 +3216,6 @@ function trackback( $trackback_url, $title, $excerpt, $ID ) {
* @param string $path Path to send the ping.
*/
function weblog_ping( $server = '', $path = '' ) {
include_once ABSPATH . WPINC . '/class-IXR.php';

// Using a timeout of 3 seconds should be enough to cover slow servers.
$client = new WP_HTTP_IXR_Client( $server, ( ( ! strlen( trim( $path ) ) || ( '/' === $path ) ) ? false : $path ) );
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ function do_enclose( $content, $post ) {
global $wpdb;

// @todo Tidy this code and make the debug code optional.
include_once ABSPATH . WPINC . '/class-IXR.php';

$post = get_post( $post );
if ( ! $post ) {
Expand Down
1 change: 0 additions & 1 deletion src/xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
}

require_once ABSPATH . 'wp-admin/includes/admin.php';
require_once ABSPATH . WPINC . '/class-IXR.php';

/**
* Posts submitted via the XML-RPC interface get that title
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/includes/testcase-xmlrpc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
require_once ABSPATH . 'wp-admin/includes/admin.php';
require_once ABSPATH . WPINC . '/class-IXR.php';
require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';

abstract class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/multisite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<file>../../src/wp-admin/includes/ms-deprecated.php</file>

<file>../../src/wp-includes/atomlib.php</file>
<file>../../src/wp-includes/class-IXR.php</file>
<file>../../src/wp-includes/class-json.php</file>
<file>../../src/wp-includes/class-phpass.php</file>
<file>../../src/wp-includes/class-pop3.php</file>
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/tests/xmlrpc/basic.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

require_once ABSPATH . 'wp-admin/includes/admin.php';
require_once ABSPATH . WPINC . '/class-IXR.php';
require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';

/**
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/tests/xmlrpc/client.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once ABSPATH . WPINC . '/class-IXR.php';
require_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';

/**
Expand Down

0 comments on commit 5e2adb5

Please sign in to comment.