Skip to:
Content

BuddyPress.org

Changeset 6089


Ignore:
Timestamp:
06/13/2012 09:36:57 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Remove pre-WordPress 3.4 compatibility checks from trunk.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-functions.php

    r6084 r6089  
    240240
    241241        // Get current theme info
    242         // Backward-compatibility with WP < 3.4 will be removed in a future release
    243         if ( bp_get_major_wp_version() >= 3.4 ) {
    244                 $ct = wp_get_theme();
    245         } else {
    246                 $ct = current_theme_info();
    247         }
     242        $ct = current_theme_info();
    248243
    249244        // Make sure tags is an array to suppress notices
  • trunk/bp-core/admin/bp-core-update.php

    r6078 r6089  
    518518
    519519                $installed_plugins = get_plugins();
    520 
    521                 // Backward-compatibility with WP < 3.4 will be removed in a future release
    522                 if ( bp_get_major_wp_version() >= 3.4 ) {
    523                         $installed_themes = wp_get_themes();
    524                 } else {
    525                         $installed_themes = get_themes();
    526                 }
    527 
     520                $installed_themes  = get_themes();
    528521                $bp_themes         = array();
    529522
     
    547540
    548541                // Get theme screenshot
    549                 // Backward-compatibility with WP < 3.4 will be removed in a future release
    550                 if ( bp_get_major_wp_version() >= 3.4 ) {
    551                         $current_theme = wp_get_theme();
    552                 } else {
    553                         $current_theme = get_current_theme();
    554                 }
    555 
     542                $current_theme = wp_get_theme();
    556543                $screenshot    = '';
    557544
  • trunk/bp-themes/bp-default/functions.php

    r6018 r6089  
    8787
    8888        // This theme allows users to set a custom background
    89         // Backward-compatibility with WP < 3.4 will be removed in a future release
    90         if ( bp_get_major_wp_version() >= 3.4 ) {
    91                 $custom_background_args = array(
    92                         'wp-head-callback' => 'bp_dtheme_custom_background_style'
    93                 );
    94                 add_theme_support( 'custom-background', $custom_background_args );
    95         } else {
    96                 add_custom_background( 'bp_dtheme_custom_background_style' );
    97         }
     89        $custom_background_args = array(
     90                'wp-head-callback' => 'bp_dtheme_custom_background_style'
     91        );
     92        add_theme_support( 'custom-background', $custom_background_args );
    9893
    9994        // Add custom header support if allowed
     
    111106
    112107                // Add a way for the custom header to be styled in the admin panel that controls custom headers.
    113                 // Backward-compatibility with WP < 3.4 will be removed in a future release
    114                 if ( bp_get_major_wp_version() >= 3.4 ) {
    115                         $custom_header_args = array(
    116                                 'wp-head-callback' => 'bp_dtheme_header_style',
    117                                 'admin-head-callback' => 'bp_dtheme_admin_header_style'
    118                         );
    119                         add_theme_support( 'custom-header', $custom_header_args );
    120                 } else {
    121                         add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' );
    122                 }
     108                $custom_header_args = array(
     109                        'wp-head-callback' => 'bp_dtheme_header_style',
     110                        'admin-head-callback' => 'bp_dtheme_admin_header_style'
     111                );
     112                add_theme_support( 'custom-header', $custom_header_args );
    123113        }
    124114
Note: See TracChangeset for help on using the changeset viewer.