[wp-trac] [WordPress Trac] #37830: WP_Query can collapse several methods using __call()

WordPress Trac noreply at wordpress.org
Wed Aug 31 15:52:47 UTC 2016


#37830: WP_Query can collapse several methods using __call()
------------------------------------------+-----------------------------
 Reporter:  wonderboymusic                |       Owner:  wonderboymusic
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  4.7
Component:  Query                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch 2nd-opinion revert  |     Focuses:  docs
------------------------------------------+-----------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch 2nd-opinion => has-patch 2nd-opinion revert


Comment:

 @ocean90 is correct that we lose data on when these methods were
 introduced. And I think more importantly we lose a lot of context that is
 useful to developers unfamiliar with the `is_*()` methods.

 DevHub doesn't currently support `@method` tags, that is to say, the
 ''parser'' of course understands the tags but we don't expose the data in
 any form on DevHub. I think the preference here would be to keep the
 methods as non-magic to retain the extra context and versioning
 information.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37830#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list