#1764 closed defect (bug) (invalid)
add_theme_support() docs do not mention second parameter $arguments
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
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
.