WordPress.org

Make WordPress Core

Ticket #16555: 16555.diff

File 16555.diff, 779 bytes (added by nacin, 3 years ago)

Hacky way to do this.

  • wp-includes/theme.php

     
    17531753        else 
    17541754                $_wp_theme_features[$feature] = array_slice( func_get_args(), 1 ); 
    17551755 
    1756         if ( $feature == 'post-formats' && is_array( $_wp_theme_features[$feature][0] ) ) 
    1757                 $_wp_theme_features[$feature][0] = array_intersect( $_wp_theme_features[$feature][0], array_keys( get_post_format_slugs() ) ); 
     1756        if ( $feature == 'post-formats' && is_array( $_wp_theme_features[$feature][0] ) ) { 
     1757                $slugs = get_post_format_slugs(); 
     1758                unset( $slugs['standard'] ); 
     1759                $_wp_theme_features[$feature][0] = array_intersect( $_wp_theme_features[$feature][0], array_keys( $slugs ) ); 
     1760        } 
    17581761} 
    17591762 
    17601763/**