Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 10:53:49 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Second pass at huge component refactor.

Move component files out of root directory and append '-loader' to the file names. Split those files up into smaller pieces.

Abstract 'settings' component out of 'core' and into its own component for future extension, including new template files in bp-default.

Append '-sa' to bbPress bridge file for 'Stand Alone' compatibility, to make room for bbPress plugin compatibility layer.

Various bug fixes through-out all components. Various code clean-up and documentation through-out all components.

Still more refactoring to do.

File:
1 edited

Legend:

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

    r3748 r3757  
    66 * @package BuddyPress
    77 * @subpackage Core
    8  *
     8 * @deprecated Since 1.3
    99 */
     10
     11/** Sign up *******************************************************************/
     12
     13function bp_core_screen_signup() {
     14        _deprecated_function( 'bp_core_screen_signup', '1.3', 'bp_users_screen_signup' );
     15        bp_users_screen_signup();
     16}
     17
     18function bp_core_screen_activation() {
     19        _deprecated_function( 'bp_core_screen_activation', '1.3', 'bp_users_screen_activation' );
     20        bp_users_screen_activation();
     21}
     22
     23function bp_core_flush_illegal_names() {
     24        _deprecated_function( 'bp_core_flush_illegal_names', '1.3', 'bp_users_flush_illegal_names' );
     25        bp_users_flush_illegal_names();
     26}
     27
     28function bp_core_illegal_names( $value = '', $oldvalue = '' ) {
     29        _deprecated_function( 'bp_core_illegal_names', '1.3', 'bp_users_illegal_names' );
     30        bp_users_illegal_names( $value, $oldvalue );
     31}
     32
     33function bp_core_validate_user_signup( $user_name, $user_email ) {
     34        _deprecated_function( 'bp_core_validate_user_signup', '1.3', 'bp_users_validate_user_signup' );
     35        bp_users_validate_user_signup( $user_name, $user_email );
     36}
     37
     38function bp_core_validate_blog_signup( $blog_url, $blog_title ) {
     39        _deprecated_function( 'bp_core_validate_blog_signup', '1.3', 'bp_users_validate_blog_signup' );
     40        bp_users_validate_blog_signup( $blog_url, $blog_title );
     41}
     42
     43function bp_core_signup_user( $user_login, $user_password, $user_email, $usermeta ) {
     44        _deprecated_function( 'bp_core_signup_user', '1.3', 'bp_users_signup_user' );
     45        bp_users_signup_user( $user_login, $user_password, $user_email, $usermeta );
     46}
     47
     48function bp_core_signup_blog( $blog_domain, $blog_path, $blog_title, $user_name, $user_email, $usermeta ) {
     49        _deprecated_function( 'bp_core_signup_blog', '1.3', 'bp_users_signup_blog' );
     50        bp_users_signup_blog( $blog_domain, $blog_path, $blog_title, $user_name, $user_email, $usermeta );
     51}
     52
     53function bp_core_activate_signup( $key ) {
     54        _deprecated_function( 'bp_core_activate_signup', '1.3', 'bp_users_activate_signup' );
     55        bp_users_activate_signup( $key );
     56}
     57
     58function bp_core_new_user_activity( $user ) {
     59        _deprecated_function( 'bp_core_new_user_activity', '1.3', 'bp_users_new_user_activity' );
     60        bp_users_new_user_activity( $user );
     61}
     62
     63function bp_core_map_user_registration( $user_id ) {
     64        _deprecated_function( 'bp_core_map_user_registration', '1.3', 'bp_users_map_user_registration' );
     65        bp_users_map_user_registration( $user_id );
     66}
     67
     68function bp_core_signup_avatar_upload_dir() {
     69        _deprecated_function( 'bp_core_signup_avatar_upload_dir', '1.3', 'bp_users_signup_avatar_upload_dir' );
     70        bp_users_signup_avatar_upload_dir();
     71}
     72
     73function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) {
     74        _deprecated_function( 'bp_core_signup_send_validation_email', '1.3', 'bp_users_signup_send_validation_email' );
     75        bp_users_signup_send_validation_email( $user_id, $user_email, $key );
     76}
     77
     78function bp_core_signup_disable_inactive( $auth_obj, $username ) {
     79        _deprecated_function( 'bp_core_signup_disable_inactive', '1.3', 'bp_users_signup_disable_inactive' );
     80        bp_users_signup_disable_inactive( $auth_obj, $username );
     81}
     82
     83function bp_core_wpsignup_redirect() {
     84        _deprecated_function( 'bp_core_wpsignup_redirect', '1.3', 'bp_users_wpsignup_redirect' );
     85        bp_users_wpsignup_redirect();
     86}
     87
     88/** Settings ******************************************************************/
     89
     90function bp_core_add_settings_nav() {
     91        _deprecated_function( 'bp_core_add_settings_nav', '1.3', 'bp_settings_add_settings_nav' );
     92        bp_settings_add_settings_nav();
     93}
     94
     95function bp_core_can_edit_settings() {
     96        _deprecated_function( 'bp_core_can_edit_settings', '1.3', 'bp_users_can_edit_settings' );
     97        bp_users_can_edit_settings();
     98}
     99
     100function bp_core_screen_general_settings() {
     101        _deprecated_function( 'bp_core_screen_general_settings', '1.3', 'bp_settings_screen_general_settings' );
     102        bp_settings_screen_general_settings();
     103}
     104
     105function bp_core_screen_general_settings_title() {
     106        _deprecated_function( 'bp_core_screen_general_settings_title', '1.3', 'bp_settings_screen_general_settings' );
     107}
     108
     109function bp_core_screen_general_settings_content() {
     110        _deprecated_function( 'bp_core_screen_general_settings_content', '1.3', 'bp_settings_screen_general_settings' );
     111}
     112
     113function bp_core_screen_notification_settings() {
     114        _deprecated_function( 'bp_core_screen_notification_settings', '1.3', 'bp_settings_screen_notification_settings' );
     115        bp_settings_screen_notification_settings();
     116}
     117
     118function bp_core_screen_notification_settings_title() {
     119        _deprecated_function( 'bp_core_screen_notification_settings_title', '1.3', 'bp_settings_screen_notification_settings' );
     120}
     121
     122function bp_core_screen_notification_settings_content() {
     123        _deprecated_function( 'bp_core_screen_notification_settings_content', '1.3', 'bp_settings_screen_notification_settings' );
     124}
     125
     126function bp_core_screen_delete_account() {
     127        _deprecated_function( 'bp_core_screen_delete_account', '1.3', 'bp_settings_screen_delete_account' );
     128        bp_settings_screen_delete_account();
     129}
     130
     131function bp_core_screen_delete_account_title() {
     132        _deprecated_function( 'bp_core_screen_delete_account_title', '1.3', 'bp_settings_screen_delete_account' );
     133}
     134
     135function bp_core_screen_delete_account_content() {
     136        _deprecated_function( 'bp_core_screen_delete_account_content', '1.3', 'bp_settings_screen_delete_account' );
     137}
     138
     139/** Notifications *************************************************************/
     140
     141function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false ) {
     142        _deprecated_function( 'bp_core_add_notification', '1.3', 'bp_users_add_notification' );
     143        bp_users_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id, $date_notified );
     144}
     145
     146function bp_core_delete_notification( $id ) {
     147        _deprecated_function( 'bp_core_delete_notification', '1.3', 'bp_users_delete_notification' );
     148        bp_users_delete_notification( $id );
     149}
     150
     151function bp_core_get_notification( $id ) {
     152        _deprecated_function( 'bp_core_get_notification', '1.3', 'bp_users_get_notification' );
     153        bp_users_get_notification( $id );
     154}
     155
     156function bp_core_get_notifications_for_user( $user_id ) {
     157        _deprecated_function( 'bp_core_get_notifications_for_user', '1.3', 'bp_users_get_notifications_for_user' );
     158        bp_users_get_notifications_for_user( $user_id );
     159}
     160
     161function bp_core_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
     162        _deprecated_function( 'bp_core_delete_notifications_by_type', '1.3', 'bp_users_delete_notifications_by_type' );
     163        bp_users_delete_notifications_by_type( $user_id, $component_name, $component_action );
     164}
     165
     166function bp_core_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
     167        _deprecated_function( 'bp_core_delete_notifications_for_user_by_item_id', '1.3', 'bp_users_delete_notifications_by_item_id' );
     168        bp_users_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id );
     169}
     170
     171function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
     172        _deprecated_function( 'bp_core_delete_all_notifications_by_type', '1.3', 'bp_users_delete_all_notifications_by_type' );
     173        bp_users_delete_all_notifications_by_type( $item_id, $component_name, $component_action, $secondary_item_id );
     174}
     175
     176function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
     177        _deprecated_function( 'bp_core_delete_notifications_from_user', '1.3', 'bp_users_delete_notifications_from_user' );
     178        bp_users_delete_notifications_from_user( $user_id, $component_name, $component_action );
     179}
     180
     181function bp_core_check_notification_access( $user_id, $notification_id ) {
     182        _deprecated_function( 'bp_core_check_notification_access', '1.3', 'bp_users_check_notification_access' );
     183        bp_users_check_notification_access( $user_id, $notification_id );
     184}
     185
     186/** Core **********************************************************************/
    10187
    11188/**
     
    58235}
    59236
     237/** Theme *********************************************************************/
     238
    60239/**
    61  * Contains functions which were moved out of BP-Default's functions.php in BuddyPress 1.3.
     240 * Contains functions which were moved out of BP-Default's functions.php
     241 * in BuddyPress 1.3.
    62242 *
    63243 * @since 1.3
     
    66246        if ( !function_exists( 'bp_dtheme_wp_pages_filter' ) ) :
    67247        /**
    68          * In BuddyPress 1.2.x, this function filtered the dropdown on the Settings > Reading screen for selecting
    69          * the page to show on front to include "Activity Stream."
    70          * As of 1.3.x, it is no longer required.
     248         * In BuddyPress 1.2.x, this function filtered the dropdown on the
     249         * Settings > Reading screen for selecting the page to show on front to
     250         * include "Activity Stream." As of 1.3.x, it is no longer required.
    71251         *
    72252         * @deprecated 1.3
Note: See TracChangeset for help on using the changeset viewer.