Make WordPress Core

Ticket #26716: 26716.diff

File 26716.diff, 897 bytes (added by DrewAPicture, 11 years ago)

fixed docs

  • src/wp-includes/theme.php

     
    17241724 * Checks a theme's support for a given feature before loading the functions which implement it.
    17251725 *
    17261726 * @since 2.9.0
    1727  * @param string $feature the feature being checked
    1728  * @param string $include the file containing the functions that implement the feature
     1727 *
     1728 * @param string $feature The feature being checked.
     1729 * @param string $include Path to the file..
     1730 * @return bool True if the current theme supports the supplied feature, false otherwise.
    17291731 */
    17301732function require_if_theme_supports( $feature, $include) {
    1731         if ( current_theme_supports( $feature ) )
     1733        if ( current_theme_supports( $feature ) ) {
    17321734                require ( $include );
     1735                return true;
     1736        }
     1737        return false;
    17331738}
    17341739
    17351740/**