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

Added remaining plugin load globals #1755

Merged
merged 1 commit into from Jul 2, 2019
Merged

Conversation

Rarst
Copy link
Contributor

@Rarst Rarst commented Jul 2, 2019

Follow up to #1754 with two more globals related to plugin load.

Copy link
Member

@dingo-d dingo-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@dingo-d dingo-d added this to the 2.x Next milestone Jul 2, 2019
@dingo-d dingo-d added Focus: WP interoperability Doing things the WP way, prefer using WP functionality over userland/PHP native Type: Enhancement labels Jul 2, 2019
Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified & approved.

For future reference, these global variables are defined:

... and unset() straight after the loop finishes.

Just like $plugin in PR #1754, a variable override of these variable will only cause a problem if the plugin being loaded declares the variable in the global namespace in the initial network/mu-plugin file being loaded - or in any plugin files being loaded directly when the initial file is read.

@jrfnl jrfnl merged commit 9784d0d into WordPress:develop Jul 2, 2019
@Rarst Rarst deleted the patch-1 branch July 3, 2019 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: WP interoperability Doing things the WP way, prefer using WP functionality over userland/PHP native Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants