Ticket #26716: 26716.diff
File 26716.diff, 897 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/theme.php
1724 1724 * Checks a theme's support for a given feature before loading the functions which implement it. 1725 1725 * 1726 1726 * @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. 1729 1731 */ 1730 1732 function require_if_theme_supports( $feature, $include) { 1731 if ( current_theme_supports( $feature ) ) 1733 if ( current_theme_supports( $feature ) ) { 1732 1734 require ( $include ); 1735 return true; 1736 } 1737 return false; 1733 1738 } 1734 1739 1735 1740 /**