[wp-trac] [WordPress Trac] #37495: Regression in WP 4.6 RC 1 - can no longer replace plugin upload form (removed action)
WordPress Trac
noreply at wordpress.org
Thu Jul 28 10:09:01 UTC 2016
#37495: Regression in WP 4.6 RC 1 - can no longer replace plugin upload form
(removed action)
---------------------------+-----------------------------
Reporter: DavidAnderson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
In WP versions up to and including 4.5, the "upload plugin" form is output
by WP calling the action 'install_plugins_upload'.
As such, it's possible to replace that form (as I do in this plugin with
over 3,000 active users: https://wordpress.org/plugins/upload-larger-
plugins/ ) with an alternative with a remove_action() on the default
action, and add_action of your alternative.
That's gone in WP 4.6 RC 1; as part of the re-arrangement of the plugin
upload experience (from a tab into a slide-down), the action call (which
has been presented since WP 2.7) has been removed (apparently
unintentionally), replaced with a direct call to the internal WP function.
The attached patch adds it back. Since the action call is to a very short
function that only outputs the HTML fragment, it has no other impact.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37495>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list