Changeset 27217 for trunk/src/wp-includes/theme.php
- Timestamp:
- 02/20/2014 10:10:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r26868 r27217 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 1729 */ 1730 function require_if_theme_supports( $feature, $include) { 1731 if ( current_theme_supports( $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. 1731 */ 1732 function require_if_theme_supports( $feature, $include ) { 1733 if ( current_theme_supports( $feature ) ) { 1732 1734 require ( $include ); 1735 return true; 1736 } 1737 return false; 1733 1738 } 1734 1739
Note: See TracChangeset
for help on using the changeset viewer.