Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
538 commits
Select commit Hold shift + click to select a range
5e449b3
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
de3beb3
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
7dcc783
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
a00e379
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
7468514
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
12ada4a
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
dbb0764
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
6e9d011
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
9a8f882
Update autoloader classmap test for interfaces
aristath Jun 9, 2026
fbbb667
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
1e18804
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
c57ffb4
Merge branch 'wp-trunk-current' into autoload
aristath Jun 9, 2026
18b4beb
Merge branch 'trunk' into autoload
aristath Jun 9, 2026
aad16ed
fix for updates
aristath Jun 9, 2026
a89b5e5
Address CoPilot review findings
aristath Jun 9, 2026
a21701b
Remove simplepie from the autoloader - already lazy-loaded
aristath Jun 9, 2026
d91e232
obviously....
aristath Jun 9, 2026
0555450
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
1d5391e
Add WP_Email_Address to the autoloader
aristath Jun 19, 2026
1bf6474
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
aa6d1bf
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
22c5bdf
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
b757ca7
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
0475def
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
a2b930b
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
eaf2e80
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
d994ca7
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
0495d2e
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
76c92cf
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
4848005
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
0a48af4
Merge branch 'wp-trunk-current' into autoload
aristath Jun 19, 2026
d7f92fa
Merge branch 'wp-trunk-current' into autoload
aristath Jun 22, 2026
21f289f
Merge branch 'wp-trunk-current' into autoload
aristath Jun 22, 2026
e151531
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
fdbae12
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
28c42e1
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
faf1083
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
b3f6d7b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
3ca8d02
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
e5c8408
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
420fa7d
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
941de64
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
e67bf74
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
59ae897
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1741914
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
20bcd72
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
2728d1d
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
cc9e03b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
8bc457b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
9a8fae8
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
27ff233
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
c3c6a2c
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1ce1606
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
a932d85
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
69e5f19
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
867d15b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
c423ee1
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
f7b0631
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1fc14d2
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
f3f5a13
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
3c77302
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
2a1fd88
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
014998a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
c7f7bcf
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
bf0b753
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
12ef5c6
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1a15ac5
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
e861439
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1b7f358
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
565096a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
972a85f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
bc30cf5
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
912bcc5
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
d0d3a54
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
6dbe1b3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
4e786ed
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
bf9bade
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
4a53ee1
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
cd56299
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
3927132
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
e7a5e77
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
29b7ec9
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
0aa92fc
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
61cecf7
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
1a0f457
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
970f7cc
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
412b841
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
ce71f5a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
57ef967
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
f422011
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
73a4711
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
39b167b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
198b680
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
7c205ef
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
47fd4d6
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
c16d37e
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
4fe15e7
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
3def235
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
058e98d
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
850a94a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
424268c
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
22a6706
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
0995797
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
74677ac
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
4622db3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 22, 2026
69b77ba
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
d641471
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
b161bac
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
087d4cb
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
b86e654
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
59d3a22
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
10021bd
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
267318b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
9e62bb3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
959f447
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
e945437
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
bfeeb21
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
2bdd295
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
6702005
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
6cb7f8a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
e393f3f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
fb7ffde
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
0071d61
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
94cce49
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
f63ee5b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
2d233d3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
4ff58dc
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
f4ab742
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
48dae9f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
a603b4d
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
ff06738
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
d1cc9b3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
43f34bd
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
0b71a3f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
50a7043
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
b2c97aa
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
49f3141
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
557c0af
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
b715c8e
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
abfd932
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
e58cbe2
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
7a43207
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
3b789e7
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
26835c0
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
7e3f523
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
46d752a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
35e1923
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
d7b59df
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
d93dd01
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
939ad3b
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
9382291
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
d67a6ee
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
2672695
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
e1c3656
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
e55adc6
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
6bf83d4
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
22978e2
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
3c34967
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
f3f1502
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
7ab78d7
Merge branch 'wp-trunk-current' into autoload
aristath Jul 23, 2026
bed370a
Merge branch 'wp-trunk-current' into autoload
aristath Jul 29, 2026
ab96b3e
Merge branch 'wp-trunk-current' into autoload
aristath Jul 29, 2026
8b45d11
Merge branch 'wp-trunk-current' into autoload
aristath Jul 29, 2026
f1e8684
Merge branch 'wp-trunk-current' into autoload
aristath Jul 29, 2026
e48990f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
1eed9b1
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
abff811
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
86d8628
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
d1e8bb3
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
ad31362
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
c9bdce8
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
6635979
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
25b7366
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
c42dc52
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
7364f5f
Merge branch 'wp-trunk-current' into autoload
aristath Jul 30, 2026
39bbf82
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
c07fb46
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
2613f6a
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
878f835
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
a62b368
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
96e1d60
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
f375ce2
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
62261b8
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
26a6f49
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
787f2a8
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
47d66a9
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
8f671a1
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
cfb7ad7
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
a85097f
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
52ccded
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
204c75d
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
5619232
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
df9910c
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
beb1c90
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
b856e8d
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
4ddc2cd
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
e9933ea
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
8628373
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
db5df92
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
5a5c099
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
f1d8a56
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
9e3f56c
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
e935d93
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
2aa4eb0
Build/Test Tools: Fix autoloader PHPStan errors
aristath Aug 31, 2026
8eb3387
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
0f26fc0
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
3511a98
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
5d5abbe
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
8ac3484
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
95d24b4
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
0d8f4c7
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
ed1f682
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
b665859
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
3f91b90
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
85fdacf
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
af2c0bd
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
e66dd14
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
dec990a
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
afaa31d
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
16fb4ec
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
0565a47
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
9d83ecc
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
679c7df
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
6812178
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
6c6c047
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
c034a5d
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
0c93e78
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
dbc5315
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
df889b1
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
5f36951
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
cb77494
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
ab328e3
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
fd6e06f
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
9843636
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
682dd87
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
1a29824
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
c593f34
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
aec93c8
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
a8c18eb
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
dc69530
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
21766ce
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
21ea0bb
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
ff145d1
Merge branch 'wp-trunk-current' into autoload
aristath Aug 31, 2026
a6567b9
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
9d2f507
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
db2b968
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
595a046
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
42f7250
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
2618f63
Merge branch 'wp-trunk-current' into autoload
aristath Sep 1, 2026
d62f344
Remove unrelated tags.js whitespace change
aristath Sep 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
define( 'ABSPATH', __DIR__ . '/' );
}

if ( ! defined( 'WPINC' ) ) {
define( 'WPINC', 'wp-includes' );
}

require_once ABSPATH . WPINC . '/class-wp-autoload.php';

Comment thread
aristath marked this conversation as resolved.
/*
* Load the actual index.php file if the assets were already built.
* Note: WPINC is not defined yet, it is defined later in wp-settings.php.
*/
if ( file_exists( ABSPATH . 'wp-includes/js/jquery/jquery.js' ) && is_dir( ABSPATH . 'wp-includes/build' ) ) {
if ( file_exists( ABSPATH . WPINC . '/js/jquery/jquery.js' ) && is_dir( ABSPATH . WPINC . '/build' ) ) {
require_once ABSPATH . '_index.php';
return;
}

define( 'WPINC', 'wp-includes' );
require_once ABSPATH . WPINC . '/version.php';
require_once ABSPATH . WPINC . '/compat.php';
require_once ABSPATH . WPINC . '/load.php';
Expand Down
3 changes: 0 additions & 3 deletions src/wp-admin/custom-background.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@
}

_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );

/** Custom_Background class */
require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';
3 changes: 0 additions & 3 deletions src/wp-admin/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@
}

_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );

/** Custom_Image_Header class */
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
15 changes: 0 additions & 15 deletions src/wp-admin/includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
/** WordPress Misc Administration API */
require_once ABSPATH . 'wp-admin/includes/misc.php';

/** WordPress Misc Administration API */
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';

/** WordPress Options Administration API */
require_once ABSPATH . 'wp-admin/includes/options.php';

Expand All @@ -55,7 +52,6 @@
require_once ABSPATH . 'wp-admin/includes/post.php';

/** WordPress Administration Screen API */
require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
require_once ABSPATH . 'wp-admin/includes/screen.php';

/** WordPress Taxonomy Administration API */
Expand All @@ -65,8 +61,6 @@
require_once ABSPATH . 'wp-admin/includes/template.php';

/** WordPress List Table Administration API and base class */
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php';
require_once ABSPATH . 'wp-admin/includes/list-table.php';

/** WordPress Theme Administration API */
Expand All @@ -75,18 +69,9 @@
/** WordPress Privacy Functions */
require_once ABSPATH . 'wp-admin/includes/privacy-tools.php';

/** WordPress Privacy List Table classes. */
// Previously in wp-admin/includes/user.php. Need to be loaded for backward compatibility.
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php';

/** WordPress User Administration API */
require_once ABSPATH . 'wp-admin/includes/user.php';

/** WordPress Site Icon API */
require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';

/** WordPress Update Administration API */
require_once ABSPATH . 'wp-admin/includes/update.php';

Expand Down
29 changes: 0 additions & 29 deletions src/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ function wp_ajax_autocomplete_user() {
* @since 4.8.0
*/
function wp_ajax_get_community_events() {
require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';

check_ajax_referer( 'community_events' );

$search = isset( $_POST['location'] ) ? wp_unslash( $_POST['location'] ) : '';
Expand Down Expand Up @@ -1962,10 +1960,6 @@ function wp_ajax_wp_link_ajax() {

$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;

if ( ! class_exists( '_WP_Editors', false ) ) {
require ABSPATH . WPINC . '/class-wp-editor.php';
}

$results = _WP_Editors::wp_link_query( $args );

if ( ! isset( $results ) ) {
Expand Down Expand Up @@ -4062,7 +4056,6 @@ function wp_ajax_crop_image() {

switch ( $context ) {
case 'site-icon':
require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
$wp_site_icon = new WP_Site_Icon();

// Skip creating a new attachment if the attachment is a Site Icon.
Expand Down Expand Up @@ -4213,7 +4206,6 @@ function wp_ajax_install_theme() {
wp_send_json_error( $status );
}

require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
require_once ABSPATH . 'wp-admin/includes/theme.php';

$api = themes_api(
Expand Down Expand Up @@ -4345,8 +4337,6 @@ function wp_ajax_update_theme() {
$status['oldVersion'] = $theme->get( 'Version' );
}

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

$current = get_site_transient( 'update_themes' );
if ( empty( $current ) ) {
wp_update_themes();
Expand Down Expand Up @@ -4506,7 +4496,6 @@ function wp_ajax_install_plugin() {
wp_send_json_error( $status );
}

require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

$api = plugins_api(
Expand Down Expand Up @@ -4678,8 +4667,6 @@ function wp_ajax_update_plugin() {
$status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
}

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

wp_update_plugins();

$skin = new WP_Ajax_Upgrader_Skin();
Expand Down Expand Up @@ -5407,10 +5394,6 @@ function wp_ajax_health_check_dotorg_communication() {
wp_send_json_error();
}

if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}

$site_health = WP_Site_Health::get_instance();
wp_send_json_success( $site_health->get_test_dotorg_communication() );
}
Expand Down Expand Up @@ -5440,10 +5423,6 @@ function wp_ajax_health_check_background_updates() {
wp_send_json_error();
}

if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}

$site_health = WP_Site_Health::get_instance();
wp_send_json_success( $site_health->get_test_background_updates() );
}
Expand Down Expand Up @@ -5473,10 +5452,6 @@ function wp_ajax_health_check_loopback_requests() {
wp_send_json_error();
}

if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}

$site_health = WP_Site_Health::get_instance();
wp_send_json_success( $site_health->get_test_loopback_requests() );
}
Expand Down Expand Up @@ -5523,10 +5498,6 @@ function wp_ajax_health_check_get_sizes() {
wp_send_json_error();
}

if ( ! class_exists( 'WP_Debug_Data' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
}

$sizes_data = WP_Debug_Data::get_sizes();
$all_sizes = array( 'raw' => 0 );

Expand Down
2 changes: 0 additions & 2 deletions src/wp-admin/includes/class-ftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,6 @@ function PopError(){
$mod_sockets = extension_loaded( 'sockets' );
}

require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";

if ( $mod_sockets ) {
class ftp extends ftp_sockets {}
} else {
Expand Down
5 changes: 0 additions & 5 deletions src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ public function __construct( $opt = null ) {
'password' => '',
);

// Check if possible to use ftp functions.
if ( ! require_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) {
return;
}

$this->ftp = new ftp();

if ( ! is_array( $opt ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
* @since 4.9.6
*/

if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
}

/**
* WP_Privacy_Data_Export_Requests_Table class.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
* @since 4.9.6
*/

if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
}

/**
* WP_Privacy_Data_Removal_Requests_List_Table class.
*
Expand Down
13 changes: 0 additions & 13 deletions src/wp-admin/includes/class-wp-site-health-auto-updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@

#[AllowDynamicProperties]
class WP_Site_Health_Auto_Updates {
/**
* WP_Site_Health_Auto_Updates constructor.
*
* @since 5.2.0
*/
public function __construct() {
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
}


/**
* Runs tests to determine if auto-updates can run.
Expand Down Expand Up @@ -144,10 +135,6 @@ public function test_filters_automatic_updater_disabled() {
* @return array|false The test results if auto-updates are disabled, false otherwise.
*/
public function test_wp_automatic_updates_disabled() {
if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
}

$auto_updates = new WP_Automatic_Updater();

if ( ! $auto_updates->is_disabled() ) {
Expand Down
87 changes: 83 additions & 4 deletions src/wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -1753,10 +1753,6 @@ public function get_test_background_updates() {
'test' => 'background_updates',
);

if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php';
}

/*
* Run the auto-update tests in a separate class,
* as there are many considerations to be made.
Expand Down Expand Up @@ -2376,6 +2372,83 @@ public function get_test_file_uploads() {
return $result;
}

/**
* Tests if any of the WordPress Core classes are overridden.
*
* @since 6.6.0
*
* @return array
*/
public static function get_test_core_classes_paths() {
$overridden_classes = array();
/*
* Bypass check for WP_Object_Cache.
*
* It is intended that persistent caching plugins replace the core version
* of WP_Object_Cache with their own version so it shouldn't be reported
* as an error in site health.
*/
$wp_core_classes = WP_Autoload::CLASSES_PATHS;
unset( $wp_core_classes['wp_object_cache'] );
foreach ( $wp_core_classes as $class_name => $class_path ) {
$default_path = wp_normalize_path( ABSPATH . $class_path );

/*
* Skip classes that cannot be loaded. A class that is missing or
* otherwise not loadable should not be reported as overridden, and
* must not be allowed to fatal this test.
*/
if ( ! class_exists( $class_name ) ) {
continue;
}

// Init a Reflection class to get the real path of the class.
$reflection = new \ReflectionClass( $class_name );

// Normalize both paths so symlinks and directory separators do not cause false positives.
$reflection_path = wp_normalize_path( $reflection->getFileName() );

if ( $default_path !== $reflection_path ) {
$overridden_classes[ $reflection->getName() ] = $reflection->getFileName();
}
}

$result = array(
'label' => __( 'All WordPress Core classes can be properly loaded' ),
'status' => 'good',
'badge' => array(
'label' => __( 'Security' ),
'color' => 'blue',
),
'description' => sprintf(
'<p>%s</p>',
__( 'Plugins and Themes should not override the default WordPress Core classes, as that might lead to unexpected side-effects on your site.' )
),
'actions' => '',
'test' => 'core_classes_paths',
);

if ( ! empty( $overridden_classes ) ) {
$result['status'] = 'critical';
$result['label'] = __( 'WordPress Core classes are being overridden' );
$result['description'] .= sprintf(
'<p>%s</p>',
__( 'The following WordPress Core classes are being overridden:' )
);

$result['description'] .= '<table class="widefat striped health-check-table">';
foreach ( $overridden_classes as $class_name => $class_path ) {
$result['description'] .= '<tr>';
Comment thread
aristath marked this conversation as resolved.
$result['description'] .= '<th><code>' . esc_html( $class_name ) . '</code></th>';
$result['description'] .= '<td><code>' . esc_html( $class_path ) . '</code></td>';
$result['description'] .= '</tr>';
}
$result['description'] .= '</table>';
}

return $result;
}

/**
* Tests if the Authorization header has the expected values.
*
Expand Down Expand Up @@ -2992,6 +3065,12 @@ public static function get_tests() {
);
}

// Check for Core classes being overridden.
$tests['direct']['core_classes_paths'] = array(
'label' => __( 'Core classes paths' ),
'test' => 'core_classes_paths',
);

/**
* Filters which site status tests are run on a site.
*
Expand Down
Loading
Loading