WordPress.org

Make WordPress Core

Ticket #16073: 16073.patch

File 16073.patch, 592 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-includes/theme.php

     
    17541754                $_wp_theme_features[$feature] = true;
    17551755        else
    17561756                $_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
     1757
     1758        if ( 'post-formats' == $feature && is_array( $_wp_theme_features[$feature][0] ) ) {
     1759                foreach ( array_keys( array_diff( $_wp_theme_features[$feature][0], get_post_format_slugs() ) ) as $key )
     1760                        unset( $_wp_theme_features[$feature][0][$key] );
     1761        }
    17571762}
    17581763
    17591764/**