Make WordPress Core


Ignore:
Timestamp:
10/29/2020 12:07:01 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Themes: Clarify the _doing_it_wrong() message for post formats in add_theme_support().

Follow-up to [49344], [49354], [49365].

See #51390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r49354 r49367  
    25262526                $args[0] = array_intersect( $args[0], array_keys( $post_formats ) );
    25272527            } else {
    2528                 _doing_it_wrong( "add_theme_support( 'post-formats' )", __( 'You need to pass an array of types.' ), '5.6.0' );
     2528                _doing_it_wrong( "add_theme_support( 'post-formats' )", __( 'You need to pass an array of post formats.' ), '5.6.0' );
    25292529                return false;
    25302530            }
Note: See TracChangeset for help on using the changeset viewer.