• It may be rare but if a theme adds support for thumbnails and $arg is a string, it fails (the value is saved but the code is expecting a boolean or an array) and prevents custom post types from adding thumbnail support in subsequent calls.

    add_theme_support( 'post-thumbnails', 'post' );

    Can Theme Check be updated to verify $arg, if present, is not a string?

    Or is the better solution for add_theme_support to cast it to an array?

The topic ‘check type of $arg’ is closed to new replies.