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

WordPress Trac noreply at wordpress.org
Fri Mar 15 18:04:38 UTC 2013


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

Comment (by 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] );
 }}}

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


More information about the wp-trac mailing list