Changeset 5979 for branches/1.5/bp-themes/bp-default/functions.php
- Timestamp:
- 04/13/2012 01:07:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-themes/bp-default/functions.php
r5629 r5979 83 83 84 84 // This theme allows users to set a custom background 85 add_custom_background( 'bp_dtheme_custom_background_style' ); 85 // Backward-compatibility with WP < 3.4 will be removed in a future release 86 if ( bp_get_major_wp_version() >= 3.4 ) { 87 $custom_background_args = array( 88 'wp-head-callback' => 'bp_dtheme_custom_background_style' 89 ); 90 add_theme_support( 'custom-background', $custom_background_args ); 91 } else { 92 add_custom_background( 'bp_dtheme_custom_background_style' ); 93 } 86 94 87 95 // Add custom header support if allowed … … 99 107 100 108 // Add a way for the custom header to be styled in the admin panel that controls custom headers. 101 add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' ); 109 // Backward-compatibility with WP < 3.4 will be removed in a future release 110 if ( bp_get_major_wp_version() >= 3.4 ) { 111 $custom_header_args = array( 112 'wp-head-callback' => 'bp_dtheme_header_style', 113 'admin-head-callback' => 'bp_dtheme_admin_header_style' 114 ); 115 add_theme_support( 'custom-header', $custom_header_args ); 116 } else { 117 add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' ); 118 } 102 119 } 103 120 … … 181 198 */ 182 199 function bp_dtheme_enqueue_styles() { 183 200 184 201 // Bump this when changes are made to bust cache 185 202 $version = '20120110';
Note: See TracChangeset
for help on using the changeset viewer.