Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/13/2012 01:07:56 PM (12 years ago)
Author:
boonebgorges
Message:

Adds support for WP 3.4 theme functions. Fixes #4098. Props chrisclayton

File:
1 edited

Legend:

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

    r5833 r5979  
    377377
    378378    // Get current theme info
    379     $ct = current_theme_info();
     379    // Backward-compatibility with WP < 3.4 will be removed in a future release
     380    if ( bp_get_major_wp_version() >= 3.4 ) {
     381        $ct = wp_get_theme();
     382    } else {
     383        $ct = get_current_theme();
     384    }
    380385
    381386    // The best way to remove this notice is to add a "buddypress" tag to
Note: See TracChangeset for help on using the changeset viewer.