Skip to:
Content

BuddyPress.org

Changeset 6061


Ignore:
Timestamp:
06/06/2012 08:40:20 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Check for functionality, not for WordPress version. Also use correct current_theme_info() function to get theme tags. (1.5 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-functions.php

    r5979 r6061  
    378378    // Get current theme info
    379379    // Backward-compatibility with WP < 3.4 will be removed in a future release
    380     if ( bp_get_major_wp_version() >= 3.4 ) {
     380    if ( function_exists( 'wp_get_theme' ) ) {
    381381        $ct = wp_get_theme();
    382382    } else {
    383         $ct = get_current_theme();
     383        $ct = current_theme_info();
    384384    }
    385385
Note: See TracChangeset for help on using the changeset viewer.