Make WordPress Core


Ignore:
Timestamp:
11/04/2010 07:41:07 AM (14 years ago)
Author:
markjaquith
Message:

add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746

File:
1 edited

Legend:

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

    r16115 r16174  
    16671667
    16681668/**
     1669 * Gets the theme support arguments passed when registering that support
     1670 *
     1671 * @since 3.1
     1672 * @param string $feature the feature to check
     1673 * @return array The array of extra arguments
     1674 */
     1675function get_theme_support( $feature ) {
     1676    global $_wp_theme_features;
     1677    if ( !isset( $_wp_theme_features[$feature] ) )
     1678        return false;
     1679    else
     1680        return $_wp_theme_features[$feature];
     1681}
     1682
     1683/**
    16691684 * Allows a theme to de-register its support of a certain feature
    16701685 *
Note: See TracChangeset for help on using the changeset viewer.