[wp-trac] [WordPress Trac] #44252: Missing return statement in function uninstall_plugin
WordPress Trac
noreply at wordpress.org
Wed Jan 16 05:30:29 UTC 2019
#44252: Missing return statement in function uninstall_plugin
-----------------------------------------+-------------------------------
Reporter: subrataemfluence | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: trunk
Severity: normal | Resolution: invalid
Keywords: has-patch 2nd-opinion close | Focuses: coding-standards
-----------------------------------------+-------------------------------
Changes (by afragen):
* keywords: has-patch 2nd-opinion => has-patch 2nd-opinion close
* status: new => closed
* resolution: => invalid
Comment:
According to the docBlock the function returns true if the `uninstall.php`
file is found and used.
Only in the first conditional does this happen. There is no mention of
returning false only that other options using the supplied hooks are
available for use.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44252#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list