[wp-trac] [WordPress Trac] #47710: Hook "do_mu_upgrade" docblock in wrong line
WordPress Trac
noreply at wordpress.org
Tue Jul 16 11:05:49 UTC 2019
#47710: Hook "do_mu_upgrade" docblock in wrong line
-------------------------+-----------------------------
Reporter: ChriCo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------------
Currently the hook {{{do_mu_upgrade}}} in wp-admin/admin.php L70 has a
dockblock which is inside the {{{if}}}-statement and therefor not that
easy to parse out for automatic documentation. Also this statement could
be improved by adding some early return to the first {{{if}}} - which is
already there as {{{exit}}}.
----
**Patch contains:**
1. Replaced {{elseif}} by {{if}}
2. Moved {{apply_filters}} above the {{if}} to have documentation at the
correct position
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47710>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list