Changeset 6089
- Timestamp:
- 06/13/2012 09:36:57 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-functions.php
r6084 r6089 240 240 241 241 // 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(); 248 243 249 244 // Make sure tags is an array to suppress notices -
trunk/bp-core/admin/bp-core-update.php
r6078 r6089 518 518 519 519 $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(); 528 521 $bp_themes = array(); 529 522 … … 547 540 548 541 // 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(); 556 543 $screenshot = ''; 557 544 -
trunk/bp-themes/bp-default/functions.php
r6018 r6089 87 87 88 88 // 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 ); 98 93 99 94 // Add custom header support if allowed … … 111 106 112 107 // 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 ); 123 113 } 124 114
Note: See TracChangeset
for help on using the changeset viewer.