Opened 8 years ago
Closed 8 years ago
#45844 closed defect (bug) (invalid)
add_theme_support function doesn't add some features it says in comments
| Reported by: | superpoincare | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 5.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The lines https://github.com/WordPress/WordPress/blob/master/wp-includes/theme.php#L2321-L2330
say that in 5.0.0 some features were adding to the function add_theme_feature:
"... 'editor-styles', and 'wp-block-styles' features were added."
However the function below doesn't add them.
Change History (4)
#2
@
8 years ago
- Keywords reporter-feedback added
- Version 5.0.2 → 5.0
Hi @superpoincare,
Thanks for the ticket! Can you post code that shows this is not working as expected? The last line of the function adds theme support for the specified feature. The switch() statement only handles more complex features that have additional arguments passed.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There was no code change needed to add those new features, so only a comment was added to document the names.