-
Notifications
You must be signed in to change notification settings - Fork 798
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
Autoloader: use all of the map files to populate the global maps #15002
Autoloader: use all of the map files to populate the global maps #15002
Commits on Mar 24, 2020
-
Autoloader: loop through all map files in enqueue_files()
The latest autoloader needs to loop through all of the classmap and filemap files created by the new autoloader and populate the globals. Add a loop through the active plugins to the enqueue_files() function.
Configuration menu - View commit details
-
Copy full SHA for 6748e27 - Browse repository at this point
Copy the full SHA 6748e27View commit details -
Autoloader: improve enqueue_files
Improve enqueue_files() by: - checking the map files with is_readable instead of file_exists - checking that the local map variables are arrays before using them - move the file_loader() block out of the active plugins loop
Configuration menu - View commit details
-
Copy full SHA for 8374aa1 - Browse repository at this point
Copy the full SHA 8374aa1View commit details -
Autoloader: remove plugins_loaded action conditional around file_loader
We no longer need to wait until the plugins_loaded action to call file_loader(), so remove the conditionals and the plugins_loaded hook.
Configuration menu - View commit details
-
Copy full SHA for 1d1d651 - Browse repository at this point
Copy the full SHA 1d1d651View commit details -
Autoloader: Handle an activating plugin
When a plugin is in the process of activating, it won't be in the active plugins list yet. We need to make sure that its classmap and filemap files are processed and the globals are updated so that the autoloader can use them with the newly activated plugin. - In enqueue_files(), process the current plugin's map file and the map files for all active plugins. - In set_up_autoloader(), detect if a new autoloader has been loaded by an activating plugin. If it has, reset the global classmap.
Configuration menu - View commit details
-
Copy full SHA for 1993b21 - Browse repository at this point
Copy the full SHA 1993b21View commit details -
Autoloader: handle an activating plugin
When a plugin is in the process of activating, it's not in the active plugins list. We need to add the activating plugin's packages to the autoloader before the plugin loads.
Configuration menu - View commit details
-
Copy full SHA for ab30204 - Browse repository at this point
Copy the full SHA ab30204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8012de6 - Browse repository at this point
Copy the full SHA 8012de6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00f5889 - Browse repository at this point
Copy the full SHA 00f5889View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3bf6d2 - Browse repository at this point
Copy the full SHA a3bf6d2View commit details