[wp-trac] [WordPress Trac] #25450: remove_role() - invalid return statement
WordPress Trac
noreply at wordpress.org
Mon Sep 30 19:35:20 UTC 2013
#25450: remove_role() - invalid return statement
--------------------------+------------------------------
Reporter: tivnet | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 2.0
Severity: trivial | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by nacin):
I would rather omit @return null and @return void. To me, this indicates a
deliberate decision, versus the function just not returning anything ''at
the moment''. Over time we have added return values to functions that
didn't have them previously. For example, true/false on success.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25450#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list