Ticket #4592: 4592.diff
File 4592.diff, 2.3 KB (added by , 13 years ago) |
---|
-
bp-core/bp-core-template.php
167 167 return apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) ); 168 168 } 169 169 170 function bp_get_profile_header() {171 locate_template( array( '/profile/profile-header.php' ), true );172 }173 174 function bp_exists( $component_name ) {175 if ( function_exists( $component_name . '_install' ) )176 return true;177 178 return false;179 }180 181 170 function bp_format_time( $time, $just_date = false, $localize_time = true ) { 182 171 if ( !isset( $time ) || !is_numeric( $time ) ) 183 172 return false; … … 228 217 } 229 218 } 230 219 231 function bp_get_plugin_sidebar() {232 locate_template( array( 'plugin-sidebar.php' ), true );233 }234 220 235 221 function bp_styles() { 236 222 do_action( 'bp_styles' ); -
bp-core/deprecated/1.7.php
1 <?php 2 /** 3 * Deprecated Functions 4 * 5 * @package BuddyPress 6 * @subpackage Core 7 * @deprecated Since 1.5 8 */ 9 10 // Exit if accessed directly 11 if ( !defined( 'ABSPATH' ) ) exit; 12 13 14 function xprofile_get_profile() { 15 _deprecated_function( __FUNCTION__, '1.7' ); 16 locate_template( array( 'profile/profile-loop.php'), true ); 17 } 18 19 function bp_get_profile_header() { 20 _deprecated_function( __FUNCTION__, '1.7' ); 21 locate_template( array( '/profile/profile-header.php' ), true ); 22 } 23 24 function bp_exists( $component_name ) { 25 _deprecated_function( __FUNCTION__, '1.7' ); 26 if ( function_exists( $component_name . '_install' ) ) 27 return true; 28 29 return false; 30 } 31 32 function bp_get_plugin_sidebar() { 33 _deprecated_function( __FUNCTION__, '1.7' ); 34 locate_template( array( 'plugin-sidebar.php' ), true ); 35 } -
bp-xprofile/bp-xprofile-template.php
147 147 } 148 148 } 149 149 150 function xprofile_get_profile() {151 locate_template( array( 'profile/profile-loop.php'), true );152 }153 154 150 function bp_has_profile( $args = '' ) { 155 151 global $profile_template; 156 152