[wp-trac] [WordPress Trac] #37067: add_theme_support() docs do not mention second parameter $arguments

WordPress Trac noreply at wordpress.org
Thu Jun 9 20:28:19 UTC 2016


#37067: add_theme_support() docs do not mention second parameter $arguments
---------------------------+----------------------------------------
 Reporter:  kevinwhoffman  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:  docs           |
---------------------------+----------------------------------------
 add_theme_support() has two parameters, $feature and $arguments as
 documented in the Codex:

 https://codex.wordpress.org/Function_Reference/add_theme_support

 {{{
 <?php add_theme_support( $feature, $arguments ); ?>
 }}}

 The Code Reference only lists one parameter, $feature:

 https://developer.wordpress.org/reference/functions/add_theme_support/

 The Code Reference should be updated to document the $arguments parameter
 for use cases like the following:


 {{{
 <?php add_theme_support( 'post-thumbnails', array( 'post_type' ) ); ?>
 }}}

 Moved from #meta1764

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37067>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list