Make WordPress Core

Changeset 27879


Ignore:
Timestamp:
03/31/2014 10:20:01 PM (11 years ago)
Author:
DrewAPicture
Message:

Clarify inline documentation for the 'html5' case and PHPDoc return in add_theme_support().

Props jond3r.
Fixes #27278.

File:
1 edited

Legend:

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

    r27710 r27879  
    13851385 *
    13861386 * @since 2.9.0
    1387  * @param string $feature the feature being added
     1387 *
     1388 * @param string $feature The feature being added.
     1389 * @return void|bool False on failure, void otherwise.
    13881390 */
    13891391function add_theme_support( $feature ) {
     
    14041406            // You can't just pass 'html5', you need to pass an array of types.
    14051407            if ( empty( $args[0] ) ) {
     1408                // Build an array of types for back-compat.
    14061409                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
    14071410            } elseif ( ! is_array( $args[0] ) ) {
Note: See TracChangeset for help on using the changeset viewer.