[wp-trac] [WordPress Trac] #21527: post_type_supports(), no arguments case

WordPress Trac noreply at wordpress.org
Thu Apr 4 05:00:03 UTC 2013


#21527: post_type_supports(), no arguments case
------------------------------+-----------------------------
 Reporter:  bilalcoder        |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.6
Component:  Post Types        |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+-----------------------------

Comment (by nacin):

 Replying to [comment:8 obenland]:
 > I know returning early is a popular coding convention in core, but why
 not just say:
 >
 > {{{
 > #!php
 > <?php
 >
 > if ( isset( $_wp_post_type_features[$post_type] ) )
 >     unset( $_wp_post_type_features[$post_type][$feature] );
 > }}}

 Even the isset() here is unnecessary. :-)

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


More information about the wp-trac mailing list