[wp-trac] [WordPress Trac] #60688: Plugin Dependencies Not Enforced After Manual Code Modification to Add Dependency
WordPress Trac
noreply at wordpress.org
Tue Mar 5 04:19:20 UTC 2024
#60688: Plugin Dependencies Not Enforced After Manual Code Modification to Add
Dependency
----------------------------+-----------------------------
Reporter: adarshposimyth | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
**Expected Behavior:** A plugin with specified dependencies should only
activate if all dependencies are installed and active.
**Observed Behavior:** After adding dependency declarations within a
plugin's code, the plugin remains active (if it was already active when
code changes were made not as plugin update even if its dependencies are
not met. )
The plugin does not adhere to the intended dependency flow and must be
manually deactivated for changes to take effect.
Steps to reproduce :
1) Install the beta version of WordPress on a test environment.
2) Install two plugins:
Plugin A (the plugin you'll modify)
Plugin B (a dependency for Plugin A)
3)Edit the code of Plugin A: Include code that explicitly declares Plugin
B as a dependency.
[[Image(https://i.postimg.cc/4NbDkgG4/image.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60688>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list