[wp-trac] [WordPress Trac] #35429: Allow new plugins to be uploaded without having to go to a new page first.
WordPress Trac
noreply at wordpress.org
Mon Feb 15 08:54:07 UTC 2016
#35429: Allow new plugins to be uploaded without having to go to a new page first.
-------------------------------------+-------------------------------------
Reporter: Ipstenu | Owner: michaelarestad
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.5
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch has- | Focuses: ui, accessibility,
screenshots | javascript
-------------------------------------+-------------------------------------
Comment (by michaelarestad):
My latest version, [attachment:35429.6.diff], tweaked the class names a
bit to be less specific to plugins or themes. I also modified themes
(maybe a bit overreaching for this ticket) to reuse the same toggle
styles.
* Instead of `.upload-browse-button`, it is now `.upload-view-toggle`
* Instead of `.show-upload-plugin`, it is now `.show-upload-view`
* JS for both themes and plugins is now almost identical.
Thoughts:
* Might be worth sharing the JS for the toggle. There's no difference.
* I share @ericlewis's question: "Is it useful to leave the add_action()
commented out in admin-filters.php?" I can remove it if y'all think it's
not needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35429#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list