Make WordPress Core

Changeset 58944


Ignore:
Timestamp:
08/28/2024 02:34:54 PM (7 weeks ago)
Author:
jorbin
Message:

Bootstrap/Load: Add Words of warning about load order.

Since this file is loaded incredibly early, many functions are not available. Those deeply familiar with how load works might have some idea as to what's safe and what isn't, but it's generally confusing and a little opaque so let's warn people there be dragons.

Props helen, DrewAPicture, jorbin.
Fixes #38650.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r58703 r58944  
    33 * Sets up the default filters and actions for most
    44 * of the WordPress hooks.
     5 *
     6 * This file is loaded very early in the bootstrap which
     7 * means many functions are not yet available and site
     8 * information such as if this is multisite is unknown.
     9 * Before using functions besides `add_filter` and
     10 * `add_action`, verify things will work as expected.
    511 *
    612 * If you need to remove a default hook, this file will
Note: See TracChangeset for help on using the changeset viewer.