[wp-trac] [WordPress Trac] #21943: register_post_type() expect array but should object as well

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 20 18:52:22 UTC 2012


#21943: register_post_type() expect array but should object as well
-------------------------+------------------------------
 Reporter:  thomask      |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Post Types   |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------
Changes (by scribu):

 * keywords:   => close
 * milestone:   => Awaiting Review


Comment:

 Replying to [comment:3 thomask]:
 > register_post_type does not passing anything by reference.

 No, it doesn't, but objects are always passed by reference in PHP5

 http://php.net/manual/en/language.oop5.references.php

 > I wanted to change some arguments of buid-in post_types.

 Then we should add a hook for allowing that.

 When opening a ticket, state the problem, not the solution.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21943#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list