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

WordPress Trac noreply at wordpress.org
Wed Aug 31 14:35:24 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  |     Focuses:  docs
-----------------------------------+-----------------------------
Changes (by ocean90):

 * keywords:  has-patch => has-patch 2nd-opinion
 * status:  closed => reopened
 * focuses:   => docs
 * resolution:  fixed =>


Comment:

 May I ask which problem [38356] solves? I'm not really a fan of magic
 methods because they are … ''magic''. How does this impact performance?

 Through the `@method` annotation we seem to lose the `@since` tag.
 @DrewAPicture does DevHub support `@method` annotations or would we lose
 the methods/docs of these methods without further adjustments?

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


More information about the wp-trac mailing list