[wp-trac] [WordPress Trac] #18289: Direct link to plugin installation should have admin chrome

WordPress Trac noreply at wordpress.org
Tue Aug 2 19:35:51 UTC 2022


#18289: Direct link to plugin installation should have admin chrome
-------------------------------------+-----------------------------
 Reporter:  nacin                    |       Owner:  (none)
     Type:  task (blessed)           |      Status:  reviewing
 Priority:  normal                   |   Milestone:  Future Release
Component:  Upgrade/Install          |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by desrosj):

 * keywords:  has-patch needs-testing needs-refresh => has-patch needs-
               testing
 * owner:  nacin => (none)
 * milestone:   => Future Release


Comment:

 ''Wipes the dust off''

 Found this one going through a list of tickets missing a milestone.
 Mulling it over, I think this is still something that would be a nice to
 have, but definitely a low priority item.

 I did some testing with the latest version of WordPress (currently 6.0.1),
 and `wp-admin/plugin-install.php?tab=plugin-information&plugin=query-
 monitor` still works to pull up the plugin details in the same way as when
 this was opened (no admin context).

 The easiest way to accomplish this without introducing a new UI would be
 to introduce a new "no menu tab" for displaying one or more specific
 plugins.

 [attachment:"18289.7.diff"] is a proof of concept patch that allows a
 comma separated list of plugins to be passed and displayed in the normal
 plugin view.

 Some pros of this approach:
 - Uses the same UI.
 - Allows only specific plugins to be listed (search does not even
 guarantee the intended plugin is listed first).
 - User can click more details on any of them, and also has an install
 button to click.
 - Allows plugin and theme authors to link to a specific listing of
 compatible plugins or add-ons.

 Some cons:
 - The `plugin_information` action returns way more information than
 needed, and is missing some information for display (plugin icons, for
 example, as seen in the POC patch).
 - There's no specific API action to just receive a specific set of
 plugins.
 - Results in one API request per plugin specified. Would be wasteful if
 many (5, 10, 15+ plugins) are listed.

 This could also be adjusted to only support one plugin. It felt reasonable
 to allow multiple, though.

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


More information about the wp-trac mailing list