13 | | My latest patch (36666.4.diff) updates `add_theme_support` to set `$args` to the value of `get_post_types_by_support( 'thumbnail'` )` if either `$args` or `$_wp_theme_features[ 'post-thumbnails' ]` is set to `true`. From then on, any post type that registers and adds theme support for post thumbnails will have its post type pushed to the array, as before. In addition, post thumbnail support can be removed in functions.php, as long as the function is called during the same action (or later) in which a post type's support was added. So, in the case of WooCommerce, post thumbnail support for products can be removed in `after_setup_theme` (but not before), and in the case of other custom post types, `remove_theme_support` must be called in `init` for it to work. Otherwise, it just fails silently. |
| 13 | My latest patch (36666.4.diff) updates `add_theme_support` to set `$args` to the value of `get_post_types_by_support( 'thumbnail')` if either `$args` or `$_wp_theme_features[ 'post-thumbnails' ]` is set to `true`. From then on, any post type that registers and adds theme support for post thumbnails will have its post type pushed to the array, as before. In addition, post thumbnail support can be removed in functions.php, as long as the function is called during the same action (or later) in which a post type's support was added. So, in the case of WooCommerce, post thumbnail support for products can be removed in `after_setup_theme` (but not before), and in the case of other custom post types, `remove_theme_support` must be called in `init` for it to work. Otherwise, it just fails silently. |