[wp-trac] [WordPress Trac] #44686: Invalid return statement when request status is checked
WordPress Trac
noreply at wordpress.org
Wed Aug 1 10:52:25 UTC 2018
#44686: Invalid return statement when request status is checked
--------------------------+------------------------------
Reporter: moikano | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.9.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Changes (by subrataemfluence):
* keywords: => needs-patch
Comment:
Hi moikano! Welcome to Trac and thank you for raising the ticket.
You have pointed out correctly. Since the return type of the function is
either bool or WP_Error, anything returned from this function should not
be a string!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44686#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list