WordPress.org

Make WordPress Core

Ticket #12739: theme.php.diff

File theme.php.diff, 584 bytes (added by nathanrice, 12 years ago)
  • theme.php

     
    15391539}
    15401540
    15411541/**
     1542 * Allows a theme to de-register its support of a certain feature
     1543 *
     1544 * Must be called in the themes functions.php file to work.
     1545 *
     1546 * @since 3.0.0
     1547 * @param string $feature the feature being added
     1548 */
     1549function remove_theme_support( $feature ) {
     1550        global $_wp_theme_features;
     1551
     1552        unset($_wp_theme_features[$feature]);
     1553}
     1554
     1555/**
    15421556 * Checks a theme's support for a given feature
    15431557 *
    15441558 * @since 2.9.0