[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-core/deprecated/ -> 1.6.php (summary)

Deprecated Functions

File Size: 278 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 19 functions


Functions that are not part of a class:

bp_admin_bar_remove_wp_menus()   X-Ref

bp_admin_bar_root_site()   X-Ref

bp_admin_bar_my_sites_menu()   X-Ref

bp_admin_bar_comments_menu( $wp_admin_bar = '' )   X-Ref

bp_admin_bar_appearance_menu()   X-Ref

bp_admin_bar_updates_menu()   X-Ref

bp_members_admin_bar_my_account_logout()   X-Ref

bp_core_is_user_deleted( $user_id = 0 )   X-Ref

bp_core_is_user_spammer( $user_id = 0 )   X-Ref

bp_blogs_manage_comment( $comment_id, $comment_status )   X-Ref

bp_core_add_admin_menu()   X-Ref

bp_core_add_ajax_hook()   X-Ref

bp_friends_header_tabs()   X-Ref
Displays Friends header tabs

bp_friends_filter_title()   X-Ref
Filters the title for the Friends component

groups_check_group_exists( $group_slug )   X-Ref

bp_core_add_admin_menu_styles()   X-Ref
Loads admin panel styles and scripts.

updates_register_activity_actions()   X-Ref

bp_core_email_from_address_filter()   X-Ref
Sets the "From" address in emails sent

return: string email address

bp_die_legacy_ajax_callbacks()   X-Ref
Backward compatibility for AJAX callbacks that do not die() on their own

In BuddyPress 1.6, BP was altered so that it uses admin-ajax.php (instead of wp-load.php) for
AJAX requests. admin-ajax.php dies with an output of '0' (to signify an error), so that if an
AJAX callback does not kill PHP execution, a '0' character will be erroneously appended to the
output. All bp-default AJAX callbacks (/bp-themes/bp-default/_inc/ajax.php) have been updated
for BP 1.6 so that they die() properly; any theme that dynamically includes this file will
inherit the fixes. However, any theme that contains a copy of BP's pre-1.5 ajax.php file will
continue to witness the 'trailing "0"' problem.

This function provides a backward compatible workaround for these themes, by hooking to the
BP wp_ajax_ actions that were problematic prior to BP 1.6, and killing PHP execution with die().

Note that this hack only runs if the function bp_dtheme_register_actions() is not found (this
function was introduced in BP 1.6 for related backward compatibility reasons).

Generated: Thu Apr 22 01:01:41 2021 Cross-referenced by PHPXref 0.7.1