Skip to:
Content

BuddyPress.org

Ticket #4098: deprecated-fixes.patch

File deprecated-fixes.patch, 1.3 KB (added by chrisclayton, 13 years ago)
  • bp-core-functions.php

     
    238238         * Are you using a BP-compatible theme?
    239239         */
    240240
    241         // Get current theme info
    242         $ct = current_theme_info();
     241        // Get current theme info via wp_get_theme()
     242        $ct = wp_get_theme(); //current_theme_info();
    243243
    244244        // The best way to remove this notice is to add a "buddypress" tag to
    245245        // your active theme's CSS header.
  • bp-core-update.php

     
    517517        function step_theme() {
    518518
    519519                $installed_plugins = get_plugins();
    520                 $installed_themes  = get_themes();
     520                $installed_themes  = wp_get_themes();
    521521                $bp_themes         = array();
    522522
    523523                $template_pack_installed = false;
     
    539539                }
    540540
    541541                // Get theme screenshot
    542                 $current_theme = get_current_theme();
     542                $current_theme = wp_get_theme();
    543543                $screenshot    = '';
    544                 $themes        = get_themes();
     544                $themes        = wp_get_theme();
    545545
    546546                if ( !empty( $themes[$current_theme]['Screenshot'] ) ) {
    547547                        $screenshot = trailingslashit( get_stylesheet_directory_uri() ) . $themes[$current_theme]['Screenshot'];