[wp-trac] [WordPress Trac] #17536: stray closing tags printed by wp_plugin_update_row if current_user_can('update_plugins' ) and !is_network_admin() and is_multisite()
WordPress Trac
wp-trac at lists.automattic.com
Sun May 22 21:09:57 UTC 2011
#17536: stray closing tags printed by wp_plugin_update_row if
current_user_can('update_plugins' ) and !is_network_admin() and
is_multisite()
-----------------------------+-----------------------------
Reporter: mitchoyoshitaka | Owner: mitchoyoshitaka
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: minor | Keywords: has-patch
-----------------------------+-----------------------------
Seems a little contrived, but if current_user_can('update_plugins' ) and
!is_network_admin() and is_multisite(), wp_plugin_update_row may be
triggered for a plugin.
wp_plugin_update_row will then skip the block which prints <tr><td><div>
and the upgrade message, but '''will still print the closing
</div></td></tr>''' after calling the in_plugin_update_message-$file hook.
Note this hook was intended (#9553) to be fired only when there actually
is an upgrade notice being printed, so it can be safely moved into the
conditional.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17536>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list