Skip to:
Content

BuddyPress.org

Ticket #4592: 4592.diff

File 4592.diff, 2.3 KB (added by jkudish, 13 years ago)

deprecate the functions

  • bp-core/bp-core-template.php

     
    167167                return apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
    168168        }
    169169
    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 
    181170function bp_format_time( $time, $just_date = false, $localize_time = true ) {
    182171        if ( !isset( $time ) || !is_numeric( $time ) )
    183172                return false;
     
    228217        }
    229218}
    230219
    231 function bp_get_plugin_sidebar() {
    232         locate_template( array( 'plugin-sidebar.php' ), true );
    233 }
    234220
    235221function bp_styles() {
    236222        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
     11if ( !defined( 'ABSPATH' ) ) exit;
     12
     13
     14function xprofile_get_profile() {
     15        _deprecated_function( __FUNCTION__, '1.7' );
     16        locate_template( array( 'profile/profile-loop.php'), true );
     17}
     18
     19function bp_get_profile_header() {
     20        _deprecated_function( __FUNCTION__, '1.7' );
     21        locate_template( array( '/profile/profile-header.php' ), true );
     22}
     23
     24function 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
     32function 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

     
    147147        }
    148148}
    149149
    150 function xprofile_get_profile() {
    151         locate_template( array( 'profile/profile-loop.php'), true );
    152 }
    153 
    154150function bp_has_profile( $args = '' ) {
    155151        global $profile_template;
    156152