[wp-trac] [WordPress Trac] #27278: More sanity to add_theme_support( 'html5' )

WordPress Trac noreply at wordpress.org
Sun Mar 16 10:01:18 UTC 2014


#27278: More sanity to add_theme_support( 'html5' )
-------------------------+------------------------------
 Reporter:  jond3r       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by SergeyBiryukov):

 I don't really see the benefit of adding a @return value here.

 This function doesn't have a consistent return value (nor do I think it
 should), so why would anyone check it? The `_doing_it_wrong()` message is
 pretty clear.

 Let's just add a comment from [attachment:27278.6.diff].

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


More information about the wp-trac mailing list