[wp-trac] [WordPress Trac] #20439: Introduce __return_one function
WordPress Trac
noreply at wordpress.org
Wed Jul 8 07:23:50 UTC 2020
#20439: Introduce __return_one function
-----------------------------+-----------------------
Reporter: bananastalktome | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------
Changes (by pcfreak30):
* status: closed => reopened
* version: => trunk
* resolution: maybelater =>
Comment:
I am aware this is old but I have lost track of the number of times I had
to create a dummy function for this purpose when the calling code does a
typecheck (true !== 1).
So I vote for this to be added as its simple and will get a lot of use I
feel. as for {{{__return_zero}}}, I have used this plenty of times as
well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20439#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list