[wp-trac] [WordPress Trac] #61610: Hidding the dependency notice + prevent the plugin deactivation only on some case.

WordPress Trac noreply at wordpress.org
Tue Jul 9 17:43:51 UTC 2024


#61610: Hidding the dependency notice + prevent the plugin deactivation only on
some case.
----------------------------+-------------------------------------
 Reporter:  sebastienserre  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:
 Severity:  normal          |   Keywords:  needs-patch 2nd-opinion
  Focuses:                  |
----------------------------+-------------------------------------
 WordPress 6.5 introduced th depedency fature for plugins which is a great
 feature.
 For the context, i'm working at the Polylang helpdesk and all the day i'm
 helping our customers to fix behaviours between pllugins and Polylang.
 Most of the plugins for WooCommerce are starting to declare their
 depedency to WooCommerce nas this is great. In my case, I've several of
 them, not activated but installed and I've permanently this notice:
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes
 /class-wp-plugin-dependencies.php#L372.
 => I think we should be able to find a solution to hide the notice in some
 cases.

 I also can't deactivate WooCommerce in bulk because these plugins are
 installed (not activated) and I think there's something not logical
 because for the really first time on WordPress (I think) that a plugin has
 an action on another one without being activated.

 => I think we should prevent the deactivation on WooCommerce only if a
 dependent plugin is activated.

 I took WooCommerce as an example because it's a major plugin with lots of
 plugins in its ecosystem.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list