WordPress.org

Make WordPress Core

Ticket #11611: 11611.2.diff

File 11611.2.diff, 601 bytes (added by ryan, 6 years ago)

Per duck_'s comment

  • wp-includes/theme.php

     
    19381938
    19391939        $args = array_slice( func_get_args(), 1 );
    19401940
    1941         // @todo Allow pluggable arg checking
    19421941        switch ( $feature ) {
    19431942                case 'post-thumbnails':
    19441943                        // post-thumbnails can be registered for only certain content/post types by passing
     
    19581957                        break;
    19591958        }
    19601959
    1961         return true;
     1960        return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
    19621961}
    19631962
    19641963/**