Skip to content
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

Merged
merged 8 commits into from
Mar 24, 2020

Commits on Mar 24, 2020

  1. 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.
    kbrown9 authored and zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    6748e27 View commit details
    Browse the repository at this point in the history
  2. 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
    kbrown9 authored and zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    8374aa1 View commit details
    Browse the repository at this point in the history
  3. 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.
    kbrown9 authored and zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    1d1d651 View commit details
    Browse the repository at this point in the history
  4. 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.
    kbrown9 authored and zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    1993b21 View commit details
    Browse the repository at this point in the history
  5. 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.
    kbrown9 authored and zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    ab30204 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8012de6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    00f5889 View commit details
    Browse the repository at this point in the history
  8. Added a nonce 'check'.

    zinigor committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    a3bf6d2 View commit details
    Browse the repository at this point in the history