WordPress.org

Make WordPress Core

Changeset 19682


Ignore:
Timestamp:
01/05/2012 06:29:40 PM (6 years ago)
Author:
ryan
Message:

Allow pluggable arg checking in current_theme_supports. Props dd32. fixes #11611

File:
1 edited

Legend:

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

    r19673 r19682  
    19391939    $args = array_slice( func_get_args(), 1 );
    19401940
    1941     // @todo Allow pluggable arg checking
    19421941    switch ( $feature ) {
    19431942        case 'post-thumbnails':
     
    19591958    }
    19601959
    1961     return true;
     1960    return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
    19621961}
    19631962
Note: See TracChangeset for help on using the changeset viewer.