-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Autoloading WordPress classes #3470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aristath
wants to merge
321
commits into
WordPress:trunk
Choose a base branch
from
aristath:autoload
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
321 commits
Select commit
Hold shift + click to select a range
aaadf0f
partial revert
aristath 447b983
set_up() no longer needed
aristath 885a92a
remove another set_up() which is no longer needed
aristath 386562c
more cleanup
aristath 802deb6
set_up_before_class no longer necessary
aristath f3c4b56
Merge branch 'trunk' into autoload
aristath c6c190d
cleanup - set_up_before_class no longer necessary
aristath 38b6a53
Merge branch 'trunk' into autoload
aristath 6254961
Merge branch 'trunk' into autoload
aristath 974a979
Merge branch 'trunk' into autoload
aristath f5f4627
Merge branch 'trunk' into autoload
aristath 1b4c44a
Merge branch 'trunk' into autoload
aristath a3e6dd3
Revert changes to class-wp-block-parser.php
aristath f82b6b7
Merge branch 'trunk' into autoload
aristath dd0d90f
Merge branch 'trunk' into autoload
aristath dc6210c
Add new classes to the autoloader
aristath f78565e
Merge branch 'trunk' into autoload
aristath 485a5ca
Merge branch 'trunk' into autoload
aristath a44e76e
Add the `WP_Block_Bindings_Registry` to the autoloader
aristath a8b45ef
Merge branch 'trunk' into autoload
aristath 6317cb7
Merge branch 'trunk' into autoload
aristath 7a4904a
Merge branch 'trunk' into autoload
aristath 553a68c
Merge branch 'trunk' into autoload
aristath d444ae6
Merge branch 'trunk' into autoload
aristath 1bfac8c
Use str_starts_with()
aristath fc1747e
Merge branch 'trunk' into autoload
aristath 4aade49
Use empty() instead of !isset()
aristath be9c6cd
Use require instead of require_once where possible
aristath bd5bb87
Revert "Use require instead of require_once where possible"
aristath 9e181d6
Add PHPunit tests for the autoloader classmap
aristath bfa7a18
fix lowecase in classMap
aristath 7188eb8
Use `self` instead of `static`
aristath ba7f830
WIP: preload necessary Core classes for Core upgrades
aristath 6ea039d
Update src/wp-admin/includes/update-core.php
aristath 839cded
Update src/wp-admin/includes/update-core.php
aristath 55f6a5b
Update class-wp-autoload.php
aristath 55d2f04
Update class-wp-autoload.php
aristath c8632e9
Merge branch 'trunk' into autoload
aristath dde6611
Move simplepie autoloading to external scripts
aristath 50d4fbd
add avifinfo to the autoloader
aristath f184323
SimplePie should be conditionally loaded
aristath 296e797
Use `require` instead of `require_once` for SimplePie
aristath c0769f4
require_once will be better than a static var
aristath 6baf195
Update src/wp-includes/class-wp-autoload.php
aristath cf7813c
Update src/wp-includes/class-wp-autoload.php
aristath e0ab4ff
Update src/wp-includes/class-wp-autoload.php
aristath 044d2a2
Update src/wp-includes/class-wp-autoload.php
aristath 39ddcd4
Update src/wp-includes/class-wp-autoload.php
aristath e75e265
Update src/wp-includes/class-wp-autoload.php
aristath 5c806e0
Merge branch 'trunk' into autoload
aristath f0106f3
Add new classes to the autoloader
aristath 4d1a977
Revert previous change
aristath 550bc5e
Add back the type
aristath d3e8303
Merge branch 'trunk' into autoload
aristath 028d9a1
Merge branch 'trunk' into autoload
aristath 7fa3a8f
Add new classes to the autoloader
aristath cbc39c5
Merge branch 'trunk' into autoload
aristath c601018
Merge branch 'trunk' into autoload
aristath cc4d72e
Merge branch 'trunk' into autoload
aristath 9b81b58
Merge branch 'trunk' into autoload
aristath f98b101
no need to require the class
aristath 96b08cf
Merge branch 'trunk' into autoload
aristath cbb61c1
Merge branch 'trunk' into autoload
aristath f4aa7b4
Merge branch 'trunk' into autoload
aristath e503d43
Merge branch 'trunk' into autoload
aristath a44145f
Merge branch 'trunk' into autoload
aristath 992086a
Merge branch 'trunk' into autoload
aristath aaba7b5
Merge branch 'trunk' into autoload
aristath e5e94d1
Merge branch 'trunk' into autoload
aristath b0620d3
Merge branch 'trunk' into autoload
aristath 2311749
Merge branch 'trunk' into autoload
aristath a64d90a
Use data providers for the PHPUnit tests
aristath 8ea4dad
Merge branch 'trunk' into autoload
aristath d364fc0
Merge branch 'trunk' into autoload
aristath 1645848
Merge branch 'trunk' into autoload
aristath 393acc5
Add a check for overriden Core classes
aristath 59d76c0
Merge branch 'trunk' into autoload
aristath 8cc3731
Merge branch 'trunk' into autoload
aristath df81cf6
Merge branch 'trunk' into autoload
aristath e7f21cb
Merge branch 'trunk' into autoload
aristath ca99575
Merge branch 'trunk' into autoload
aristath 5d10ef5
Merge branch 'trunk' into autoload
aristath 5aaf8cc
Merge branch 'trunk' into autoload
aristath 32f7c7c
Merge branch 'trunk' into autoload
aristath 3f38052
Merge branch 'trunk' into autoload
aristath 25851ef
Merge branch 'trunk' into autoload
aristath 59e878e
Merge branch 'trunk' into autoload
aristath 8a7f037
Merge branch 'trunk' into autoload
aristath 4df7a9e
Merge branch 'trunk' into autoload
aristath a4276a7
Merge branch 'trunk' into autoload
aristath c14af69
Merge branch 'trunk' into autoload
aristath 67badb6
Merge branch 'trunk' into autoload
aristath fea3685
Merge branch 'trunk' into autoload
aristath 5961c64
Merge branch 'trunk' into autoload
aristath 6e5df39
Merge branch 'trunk' into autoload
aristath 80bf9f2
Merge branch 'trunk' into autoload
aristath 53b5f7b
Merge branch 'trunk' into autoload
aristath ebaf97f
Merge branch 'trunk' into autoload
aristath 0a6687b
Merge branch 'trunk' into autoload
aristath 8855e6d
Merge branch 'trunk' into autoload
aristath d078a48
Merge branch 'trunk' into autoload
aristath 982f563
Merge branch 'trunk' into autoload
aristath 6c57ef8
Merge branch 'trunk' into autoload
aristath 6020065
Merge branch 'trunk' into autoload
aristath 668a7af
Merge branch 'trunk' into autoload
aristath 5ac6b6d
remove another require_once call
aristath d2b56dd
Merge branch 'trunk' into autoload
aristath 4c1d503
Merge branch 'trunk' into autoload
aristath 8fbc046
Merge branch 'trunk' into autoload
aristath 72d2371
Merge branch 'trunk' into autoload
aristath cf355f0
Merge branch 'trunk' into autoload
aristath 87fb7b6
Merge branch 'trunk' into autoload
aristath 6fee23f
Merge branch 'trunk' into autoload
aristath 8bfc64e
Merge branch 'trunk' into autoload
aristath 4694360
Update src/wp-admin/includes/class-wp-site-health.php
aristath 536d703
Update src/index.php
aristath 14843e7
Merge branch 'trunk' into autoload
aristath fbc90ef
Add comment in plugin.php explaining the inclusion of the autoloader
aristath f8d0bf8
Update src/wp-includes/class-wp-autoload.php
aristath 88bed17
Update src/wp-includes/class-wp-autoload.php
aristath deaae87
Update src/wp-includes/class-wp-autoload.php
aristath 3c2ad1d
Update src/wp-admin/includes/class-wp-site-health.php
aristath 31b7939
Update src/wp-admin/includes/update-core.php
aristath bed770e
Update src/wp-admin/includes/class-wp-site-health.php
aristath 85a3df5
Typo (overriden -> overridden)
aristath 829dd9b
Merge branch 'trunk' into autoload
aristath 9d3ed0a
Test that `class-*` files exist in the classMap. Props @peterwilsoncc
aristath a9598ad
Update src/wp-settings.php
aristath e90d3a1
Update src/wp-includes/plugin.php
aristath 73fe7e7
Cleanup
aristath 5168218
Nitpick
aristath 54ac453
Improve the tests
aristath bdbbabc
Improve data providers in tests
aristath cd079bd
Update tests/phpunit/tests/autoloader-classmap.php
aristath 3ff323f
Fix docs language
aristath 82c8531
Update src/wp-includes/class-wp-autoload.php
aristath 6808f2b
Improve docs language
aristath 76293de
Add `since` in class members
aristath 262b110
Update src/wp-admin/includes/class-wp-site-health.php
aristath 4c07440
Add missing `tr` closing tag
aristath 040e3f2
Merge branch 'autoload' of https://github.com/aristath/wordpress-deve…
aristath c663dff
Merge branch 'trunk' into autoload
aristath a53256c
Update src/wp-admin/includes/class-wp-site-health.php
aristath dad3023
Update src/wp-includes/class-wp-autoload.php
aristath 656690b
Fix comment styles
aristath 8b741ce
Remove `return void` annotations
aristath e28567e
Fix comment styles
aristath 0934844
Method doesn't need to be static
aristath 3b7ca69
Add @covers annotation
aristath 282387b
Remove duplicate check
aristath 0372798
Use WP_INC
aristath 2f0b1f7
Merge branch 'trunk' into autoload
aristath b63ce76
a bit more verbose
aristath 5ca7e36
Use WP_INC again :shrug:
aristath 811470d
Merge branch 'trunk' into autoload
aristath 2bbc328
Merge branch 'trunk' into autoload
aristath 16fe142
Merge branch 'trunk' into autoload
aristath eec637b
Merge branch 'trunk' into autoload
aristath fa69f69
Merge branch 'trunk' into autoload
aristath f85236d
Merge branch 'trunk' into autoload
aristath c014fd6
Add WP_HTML_Doctype_Info class to the autoloader
aristath 7d97e22
Merge branch 'trunk' into autoload
aristath 423eb74
Merge branch 'trunk' into autoload
aristath 855ace3
Merge branch 'trunk' into autoload
aristath 5ac7dfc
Merge branch 'trunk' into autoload
aristath 9356648
Merge branch 'trunk' into autoload
aristath 7ab16a4
Add WP_Block_Templates_Registry to autoloader
aristath 1a326a9
Merge branch 'trunk' into autoload
aristath 637ab9c
Merge branch 'wp-trunk-current' into autoload
aristath 54f55fb
Remove explicit Text_Exception test include
aristath ea70ed5
Merge branch 'wp-trunk-current' into autoload
aristath 0999909
Merge branch 'wp-trunk-current' into autoload
aristath 8eb2e03
Merge branch 'wp-trunk-current' into autoload
aristath e63ad16
Merge branch 'wp-trunk-current' into autoload
aristath d36e81c
Merge branch 'wp-trunk-current' into autoload
aristath f9c7bea
Merge branch 'wp-trunk-current' into autoload
aristath 429b565
Merge branch 'wp-trunk-current' into autoload
aristath e87f907
Merge branch 'wp-trunk-current' into autoload
aristath 011e089
Merge branch 'wp-trunk-current' into autoload
aristath 45e194e
Merge branch 'wp-trunk-current' into autoload
aristath 2157d66
Merge branch 'wp-trunk-current' into autoload
aristath 77b5556
Merge branch 'wp-trunk-current' into autoload
aristath 9b23e90
Merge branch 'wp-trunk-current' into autoload
aristath d066fa7
Merge branch 'wp-trunk-current' into autoload
aristath 9fb8964
Merge branch 'wp-trunk-current' into autoload
aristath 0b1b710
Merge branch 'wp-trunk-current' into autoload
aristath efeda40
Merge branch 'wp-trunk-current' into autoload
aristath afe704a
Merge branch 'wp-trunk-current' into autoload
aristath eb4520e
Merge branch 'wp-trunk-current' into autoload
aristath 2f3fb20
Merge branch 'wp-trunk-current' into autoload
aristath c867d28
Merge branch 'wp-trunk-current' into autoload
aristath c30932b
Add WP_PHPMailer to the class map
aristath 704751d
Merge branch 'wp-trunk-current' into autoload
aristath ecb21e6
Merge branch 'wp-trunk-current' into autoload
aristath 27c86d8
Remove PasswordHash test include
aristath b3b3ecf
Merge branch 'wp-trunk-current' into autoload
aristath b2b33e2
Merge branch 'wp-trunk-current' into autoload
aristath 02eca1f
Merge branch 'wp-trunk-current' into autoload
aristath 8ff10aa
Merge branch 'wp-trunk-current' into autoload
aristath 8bfb96a
Merge branch 'wp-trunk-current' into autoload
aristath afc9e91
Merge branch 'wp-trunk-current' into autoload
aristath 4efcb57
Merge branch 'wp-trunk-current' into autoload
aristath d63c862
Merge branch 'wp-trunk-current' into autoload
aristath 1d12c3e
Remove phpass test includes
aristath eb01ffd
Merge branch 'wp-trunk-current' into autoload
aristath 5ef2a46
Merge branch 'wp-trunk-current' into autoload
aristath faedf1a
Merge branch 'wp-trunk-current' into autoload
aristath a299754
Merge branch 'wp-trunk-current' into autoload
aristath 0eccad7
Merge branch 'wp-trunk-current' into autoload
aristath cd258bb
Merge branch 'wp-trunk-current' into autoload
aristath f79ffd9
Merge branch 'wp-trunk-current' into autoload
aristath f5c4495
Merge branch 'wp-trunk-current' into autoload
aristath ce2a7d9
Merge branch 'wp-trunk-current' into autoload
aristath 7120806
Merge branch 'wp-trunk-current' into autoload
aristath 8629025
Merge branch 'wp-trunk-current' into autoload
aristath 67564db
Merge branch 'wp-trunk-current' into autoload
aristath 9a7d3c3
Merge branch 'wp-trunk-current' into autoload
aristath 5e449b3
Merge branch 'wp-trunk-current' into autoload
aristath de3beb3
Merge branch 'wp-trunk-current' into autoload
aristath 7dcc783
Merge branch 'wp-trunk-current' into autoload
aristath a00e379
Merge branch 'wp-trunk-current' into autoload
aristath 7468514
Merge branch 'wp-trunk-current' into autoload
aristath 12ada4a
Merge branch 'wp-trunk-current' into autoload
aristath dbb0764
Merge branch 'wp-trunk-current' into autoload
aristath 6e9d011
Merge branch 'wp-trunk-current' into autoload
aristath 9a8f882
Update autoloader classmap test for interfaces
aristath fbbb667
Merge branch 'wp-trunk-current' into autoload
aristath 1e18804
Merge branch 'wp-trunk-current' into autoload
aristath c57ffb4
Merge branch 'wp-trunk-current' into autoload
aristath 18b4beb
Merge branch 'trunk' into autoload
aristath aad16ed
fix for updates
aristath a89b5e5
Address CoPilot review findings
aristath a21701b
Remove simplepie from the autoloader - already lazy-loaded
aristath d91e232
obviously....
aristath 0555450
Merge branch 'wp-trunk-current' into autoload
aristath 1d5391e
Add WP_Email_Address to the autoloader
aristath 1bf6474
Merge branch 'wp-trunk-current' into autoload
aristath aa6d1bf
Merge branch 'wp-trunk-current' into autoload
aristath 22c5bdf
Merge branch 'wp-trunk-current' into autoload
aristath b757ca7
Merge branch 'wp-trunk-current' into autoload
aristath 0475def
Merge branch 'wp-trunk-current' into autoload
aristath a2b930b
Merge branch 'wp-trunk-current' into autoload
aristath eaf2e80
Merge branch 'wp-trunk-current' into autoload
aristath d994ca7
Merge branch 'wp-trunk-current' into autoload
aristath 0495d2e
Merge branch 'wp-trunk-current' into autoload
aristath 76c92cf
Merge branch 'wp-trunk-current' into autoload
aristath 4848005
Merge branch 'wp-trunk-current' into autoload
aristath 0a48af4
Merge branch 'wp-trunk-current' into autoload
aristath d7f92fa
Merge branch 'wp-trunk-current' into autoload
aristath 21f289f
Merge branch 'wp-trunk-current' into autoload
aristath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.