[wp-trac] [WordPress Trac] #22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)

WordPress Trac noreply at wordpress.org
Sun Feb 25 12:31:19 UTC 2024


#22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
-------------------------------------------------+-------------------------
 Reporter:  Viper007Bond                         |       Owner:  afragen
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.5
Component:  Upgrade/Install                      |     Version:  3.4.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by oglekler):

 == Test Report

 === Description

 1. Bulk actions are not handling dependencies. For example, bulk
 deactivation should deactivate dependent plugins first before deactivating
 dependencies, and work in another direction if it is bulk activation. In
 fact, dependencies just cannot be selected.

 2. A plugin should be blocked from Activation if it has missing
 dependencies.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_12-34-58.png)]]

 Otherwise, we get:

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_12-43-30.png)]]

 3. Can we have an error message in the admin and not like wp_die() dead
 end?

 4. Notice that there is no name for the plugin that requires dependencies.
 In this case, it is ‘My Hello Dolly’. With a lot of plugins installed and
 some of them deactivated (as this is usually happening with projects with
 uneven history), it can be very confusing.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_12-58-41.png)]]

 5. If plugin was previously removed and due to this deactivated, and then
 added back again, the Note message is not matching its current state

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_13-25-34%20(2).png)]]

 6. There are no check on the back end for dependencies during
 deactivation:
 - Activate My Car plugin. Open another window and activate the My Car
 Trailer plugin. Go to the previous tab and deactivate the My Car plugin -
 it is successfully deactivated.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_13-42-33.png)]]

 7. Plugin deletion also has no check on the back end if with a valid link
 it can be deleted even if it has dependency.
 8. The plugin cannot be selected for a bulk action, but it can be
 deactivated. If it can be deactivated, it can be selected for a bulk
 action.

 9. The  Note does not match the current possibilities either.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_14-51-57.png)]]

 10. The Note does not match the current state.

 [[Image(https://core.trac.wordpress.org/attachment/ticket/22316/2024-02-25_15-02-47.png)]]

 === Environment
 - WordPress: 6.5-beta2
 - PHP: 8.1.9
 - Server: Apache
 - Database: mysqli (Server: 10.8.4-MariaDB / Client: mysqlnd 8.1.9)
 - Browser: Chrome 121.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Four 1.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.1.0
   * WordPress Beta Tester 3.5.5

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/22316#comment:326>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list