Making WordPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 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
Cc:

Description

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

Change History (2)

#1 @samuelsidler
9 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.