[wp-trac] [WordPress Trac] #60504: Plugin dependencies: Account for mu-plugin as dependency
WordPress Trac
noreply at wordpress.org
Mon Feb 12 22:26:53 UTC 2024
#60504: Plugin dependencies: Account for mu-plugin as dependency
----------------------------------------+---------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5
Component: Upgrade/Install | Version: trunk
Severity: critical | Resolution:
Keywords: needs-testing dev-feedback | Focuses:
----------------------------------------+---------------------
Comment (by costdev):
> @johnbillion Yeah this is going to be a sticking point, I've worked on
many sites where there's one wp-content/mu-plugins/loader.php type file
that loads all mu-plugins.
A filter callback could have several conditions/`in_array()` in the `if`
so that if any of the slugs for the MU plugins it loads are found, it
passes `basename( __FILE__ )` back.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60504#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list