[wp-trac] [WordPress Trac] #37830: WP_Query can collapse several methods using __call()
WordPress Trac
noreply at wordpress.org
Thu Aug 25 19:39:35 UTC 2016
#37830: WP_Query can collapse several methods using __call()
----------------------------+-----------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Query | Version:
Severity: normal | Keywords: has-patch
Focuses: |
----------------------------+-----------------------
There are a variety of `is_*` methods that also exist as properties. The
functions simply cast to `bool`. These can all be collapsed using
`__call()` and `@method` annotations.
Patch attached.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37830>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list