[wp-trac] [WordPress Trac] #31792: register_uninstall_hook() causes large amounts of unnecessary option updates
WordPress Trac
noreply at wordpress.org
Mon Apr 29 09:13:45 UTC 2019
#31792: register_uninstall_hook() causes large amounts of unnecessary option
updates
-------------------------------------------------+-------------------------
Reporter: jeichorn | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.3
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing bulk- | Focuses:
reopened | performance
-------------------------------------------------+-------------------------
Comment (by tha_sun):
There was an unnecessary second call to `plugin_basename()`, which has
been optimized in attached patch.
Also corrected the coding style. I originally followed the style of the
file, but I assume that Core wants all new code to follow WordPress's
actual standards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31792#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list