Ticket #51390: 51390.1.patch
File 51390.1.patch, 525 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/theme.php
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 5fa7a23146..b707990dcf 100644
a b function add_theme_support( $feature, ...$args ) { 2517 2517 unset( $post_formats['standard'] ); 2518 2518 2519 2519 $args[0] = array_intersect( $args[0], array_keys( $post_formats ) ); 2520 } else { 2521 _doing_it_wrong( "add_theme_support( 'post-formats' )", __( 'You need to pass an array of types.' ), '5.6.0' ); 2522 return false; 2520 2523 } 2521 2524 break; 2522 2525