Make WordPress Core

Ticket #51390: 51390.1.patch

File 51390.1.patch, 525 bytes (added by Mista-Flo, 5 years ago)

Patch without unit tests

  • 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 ) { 
    25172517                                unset( $post_formats['standard'] );
    25182518
    25192519                                $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;
    25202523                        }
    25212524                        break;
    25222525