Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_theme_support( 'html5' ) was called incorrectly #72

Open
salcode opened this issue Aug 30, 2024 · 0 comments
Open

add_theme_support( 'html5' ) was called incorrectly #72

salcode opened this issue Aug 30, 2024 · 0 comments

Comments

@salcode
Copy link
Owner

salcode commented Aug 30, 2024

image

Notice: Function add_theme_support( 'html5' ) was called incorrectly. You need to pass an array of types. Please see Debugging in WordPress for more information. (This message was added in version 3.6.1.) in /Users/sal/localwp/salferrarellotest/app/public/wp-includes/functions.php on line 6085

salcode added a commit that referenced this issue Aug 30, 2024
As of WordPress core 3.6.1 $args are required when adding "html5" theme
support.

For backwards compatibility these args default to
'comment-list', 'comment-form', and 'search-form'

We are explicitly adding these default $args to prevent the notice we're seeing

Notice: Function add_theme_support( 'html5' ) was called incorrectly. You need to pass an array of types. Please see Debugging in WordPress for more information. (This message was added in version 3.6.1.) in /Users/sal/localwp/salferrarellotest/app/public/wp-includes/functions.php on line 6085

See https://github.com/WordPress/wordpress-develop/blob/3b1e57752d5dd737477873b6797e3f8209aec078/src/wp-includes/theme.php#L2619-L2620

Resolves #72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant