Skip to:
Content

BuddyPress.org

Changeset 6415


Ignore:
Timestamp:
10/15/2012 08:16:59 PM (13 years ago)
Author:
boonebgorges
Message:

Deprecates some functions no longer used in 1.7:

  • xprofile_get_profile()
  • bp_get_profile_header()
  • bp_exists()
  • bp_get_plugin_sidebar()

Also adds the logic to bp-loader for actually loading 1.7 deprecated functions

See #4592

Props r-a-y, jkudish

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r6342 r6415  
    167167        return apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
    168168    }
    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 }
    180169
    181170function bp_format_time( $time, $just_date = false, $localize_time = true ) {
     
    229218}
    230219
    231 function bp_get_plugin_sidebar() {
    232     locate_template( array( 'plugin-sidebar.php' ), true );
    233 }
    234220
    235221function bp_styles() {
  • trunk/bp-loader.php

    r6370 r6415  
    454454                require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
    455455                require( $this->plugin_dir . 'bp-core/deprecated/1.6.php' );
     456                require( $this->plugin_dir . 'bp-core/deprecated/1.7.php' );
    456457            }
    457458        }
  • trunk/bp-xprofile/bp-xprofile-template.php

    r6342 r6415  
    146146        }
    147147    }
    148 }
    149 
    150 function xprofile_get_profile() {
    151     locate_template( array( 'profile/profile-loop.php'), true );
    152148}
    153149
Note: See TracChangeset for help on using the changeset viewer.