Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1764 closed defect (bug) (invalid)

add_theme_support() docs do not mention second parameter $arguments

Reported by: kevinwhoffman's profile kevinwhoffman Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords: needs-docs


add_theme_support() has two parameters, $feature and $arguments as documented in the Codex:

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

The Code Reference only lists one parameter, $feature:

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' ) ); ?>

Change History (2)

#1 @samuelsidler
8 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The code reference pulls directly from source. Can you file a core ticket on this? If you're up for it, any added documentation can be attached as a patch to wp-includes/theme.php.

Note: See TracTickets for help on using tickets.