False positive on add_theme_supports
-
I use add_theme_supports within a foreach loop like the following:
`
foreach( $theme_supports as $support => $arguments ){
if ( ! empty( $arguments ) )
add_theme_support( $support, $arguments );
else
add_theme_support( $support );
}
`
But Theme Check throws a warning:
REQUIRED: Could not find add_theme_support( ‘someting-here’ ). See: add_theme_support
.
It doesn’t seem to pick-up anything from the array.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘False positive on add_theme_supports’ is closed to new replies.