/bp-core/deprecated/2.1.php

  1. <?php 
  2. /** 
  3. * Deprecated functions 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage Core 
  7. * @deprecated 2.1.0 
  8. */ 
  9.  
  10. // Exit if accessed directly 
  11. defined( 'ABSPATH' ) || exit; 
  12.  
  13. /** 
  14. * Register (not enqueue) scripts that used to be used by BuddyPress. 
  15. * 
  16. * @since 2.1.0 
  17. */ 
  18. function bp_core_register_deprecated_scripts() { 
  19. // Scripts undeprecated as of 2.5.0. 
  20.  
  21. /** 
  22. * Register (not enqueue) styles that used to be used by BuddyPress. 
  23. * 
  24. * @since 2.1.0 
  25. */ 
  26. function bp_core_register_deprecated_styles() { 
  27. // Scripts undeprecated as of 2.5.0. 
  28.  
  29. /** BuddyBar *****************************************************************/ 
  30.  
  31. /** 
  32. * Add a Sites menu to the BuddyBar. 
  33. * 
  34. * @since 1.0.0 
  35. * @deprecated 2.1.0 
  36. * 
  37. * @return bool|null Returns false on failure. Otherwise echoes the menu item. 
  38. */ 
  39. function bp_adminbar_blogs_menu() { 
  40.  
  41. if ( ! is_user_logged_in() || ! bp_is_active( 'blogs' ) ) { 
  42. return false; 
  43.  
  44. if ( ! is_multisite() ) { 
  45. return false; 
  46.  
  47. $blogs = wp_cache_get( 'bp_blogs_of_user_' . bp_loggedin_user_id() . '_inc_hidden', 'bp' ); 
  48. if ( empty( $blogs ) ) { 
  49. $blogs = bp_blogs_get_blogs_for_user( bp_loggedin_user_id(), true ); 
  50. wp_cache_set( 'bp_blogs_of_user_' . bp_loggedin_user_id() . '_inc_hidden', $blogs, 'bp' ); 
  51.  
  52. $counter = 0; 
  53. if ( is_array( $blogs['blogs'] ) && (int) $blogs['count'] ) { 
  54.  
  55. echo '<li id="bp-adminbar-blogs-menu"><a href="' . trailingslashit( bp_loggedin_user_domain() . bp_get_blogs_slug() ) . '">'; 
  56.  
  57. _e( 'My Sites', 'buddypress' ); 
  58.  
  59. echo '</a>'; 
  60. echo '<ul>'; 
  61.  
  62. foreach ( (array) $blogs['blogs'] as $blog ) { 
  63. $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; 
  64. $site_url = esc_attr( $blog->siteurl ); 
  65.  
  66. echo '<li' . $alt . '>'; 
  67. echo '<a href="' . $site_url . '">' . esc_html( $blog->name ) . '</a>'; 
  68. echo '<ul>'; 
  69. echo '<li class="alt"><a href="' . $site_url . 'wp-admin/">' . __( 'Dashboard', 'buddypress' ) . '</a></li>'; 
  70. echo '<li><a href="' . $site_url . 'wp-admin/post-new.php">' . __( 'New Post', 'buddypress' ) . '</a></li>'; 
  71. echo '<li class="alt"><a href="' . $site_url . 'wp-admin/edit.php">' . __( 'Manage Posts', 'buddypress' ) . '</a></li>'; 
  72. echo '<li><a href="' . $site_url . 'wp-admin/edit-comments.php">' . __( 'Manage Comments', 'buddypress' ) . '</a></li>'; 
  73. echo '</ul>'; 
  74.  
  75. do_action( 'bp_adminbar_blog_items', $blog ); 
  76.  
  77. echo '</li>'; 
  78. $counter++; 
  79.  
  80. $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; 
  81.  
  82. if ( bp_blog_signup_enabled() ) { 
  83. echo '<li' . $alt . '>'; 
  84. echo '<a href="' . trailingslashit( bp_get_blogs_directory_permalink() . 'create' ) . '">' . __( 'Create a Site!', 'buddypress' ) . '</a>'; 
  85. echo '</li>'; 
  86.  
  87. echo '</ul>'; 
  88. echo '</li>'; 
  89.  
  90. /** 
  91. * If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over 
  92. * to the WP Toolbar. 
  93. * 
  94. * @since 1.6.0 
  95. * @deprecated 2.1.0 
  96. */ 
  97. function bp_admin_setting_callback_force_buddybar() { 
  98. ?> 
  99.  
  100. <input id="_bp_force_buddybar" name="_bp_force_buddybar" type="checkbox" value="1" <?php checked( ! bp_force_buddybar( true ) ); ?> /> 
  101. <label for="_bp_force_buddybar"><?php _e( 'Switch to WordPress Toolbar', 'buddypress' ); ?></label> 
  102.  
  103. <?php 
  104.  
  105.  
  106. /** 
  107. * Sanitization for _bp_force_buddybar 
  108. * 
  109. * If upgraded to 1.6 and you chose to keep the BuddyBar, a checkbox asks if you want to switch to 
  110. * the WP Toolbar. The option we store is 1 if the BuddyBar is forced on, so we use this function 
  111. * to flip the boolean before saving the intval. 
  112. * 
  113. * @since 1.6.0 
  114. * @deprecated 2.1.0 
  115. * @access Private 
  116. */ 
  117. function bp_admin_sanitize_callback_force_buddybar( $value = false ) { 
  118. return $value ? 0 : 1; 
  119.  
  120. /** 
  121. * Wrapper function for rendering the BuddyBar. 
  122. * 
  123. * @return bool|null Returns false if the BuddyBar is disabled. 
  124. * @deprecated 2.1.0 
  125. */ 
  126. function bp_core_admin_bar() { 
  127. $bp = buddypress(); 
  128.  
  129. if ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) { 
  130. return false; 
  131.  
  132. if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) { 
  133. return false; 
  134.  
  135. $bp->doing_admin_bar = true; 
  136.  
  137. echo '<div id="wp-admin-bar"><div class="padder">'; 
  138.  
  139. // **** Do bp-adminbar-logo Actions ******** 
  140. do_action( 'bp_adminbar_logo' ); 
  141.  
  142. echo '<ul class="main-nav">'; 
  143.  
  144. // **** Do bp-adminbar-menus Actions ******** 
  145. do_action( 'bp_adminbar_menus' ); 
  146.  
  147. echo '</ul>'; 
  148. echo "</div></div><!-- #wp-admin-bar -->\n\n"; 
  149.  
  150. $bp->doing_admin_bar = false; 
  151.  
  152. /** 
  153. * Output the BuddyBar logo. 
  154. * 
  155. * @deprecated 2.1.0 
  156. */ 
  157. function bp_adminbar_logo() { 
  158. echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>'; 
  159.  
  160. /** 
  161. * Output the "Log In" and "Sign Up" names to the BuddyBar. 
  162. * 
  163. * Visible only to visitors who are not logged in. 
  164. * 
  165. * @deprecated 2.1.0 
  166. * 
  167. * @return bool|null Returns false if the current user is logged in. 
  168. */ 
  169. function bp_adminbar_login_menu() { 
  170.  
  171. if ( is_user_logged_in() ) { 
  172. return false; 
  173.  
  174. echo '<li class="bp-login no-arrow"><a href="' . wp_login_url() . '">' . __( 'Log In', 'buddypress' ) . '</a></li>'; 
  175.  
  176. // Show "Sign Up" link if user registrations are allowed 
  177. if ( bp_get_signup_allowed() ) { 
  178. echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page() . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>'; 
  179.  
  180. /** 
  181. * Output the My Account BuddyBar menu. 
  182. * 
  183. * @deprecated 2.1.0 
  184. * 
  185. * @return bool|null Returns false on failure. 
  186. */ 
  187. function bp_adminbar_account_menu() { 
  188. $bp = buddypress(); 
  189.  
  190. if ( empty( $bp->bp_nav ) || ! is_user_logged_in() ) { 
  191. return false; 
  192.  
  193. echo '<li id="bp-adminbar-account-menu"><a href="' . bp_loggedin_user_domain() . '">'; 
  194. echo __( 'My Account', 'buddypress' ) . '</a>'; 
  195. echo '<ul>'; 
  196.  
  197. // Loop through each navigation item 
  198. $counter = 0; 
  199. foreach( (array) $bp->bp_nav as $nav_item ) { 
  200. $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; 
  201.  
  202. if ( -1 == $nav_item['position'] ) { 
  203. continue; 
  204.  
  205. echo '<li' . $alt . '>'; 
  206. echo '<a id="bp-admin-' . $nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a>'; 
  207.  
  208. if ( isset( $bp->bp_options_nav[$nav_item['slug']] ) && is_array( $bp->bp_options_nav[$nav_item['slug']] ) ) { 
  209. echo '<ul>'; 
  210. $sub_counter = 0; 
  211.  
  212. foreach( (array) $bp->bp_options_nav[$nav_item['slug']] as $subnav_item ) { 
  213. $link = $subnav_item['link']; 
  214. $name = $subnav_item['name']; 
  215.  
  216. if ( bp_displayed_user_domain() ) { 
  217. $link = str_replace( bp_displayed_user_domain(), bp_loggedin_user_domain(), $subnav_item['link'] ); 
  218.  
  219. if ( isset( $bp->displayed_user->userdata->user_login ) ) { 
  220. $name = str_replace( $bp->displayed_user->userdata->user_login, $bp->loggedin_user->userdata->user_login, $subnav_item['name'] ); 
  221.  
  222. $alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : ''; 
  223. echo '<li' . $alt . '><a id="bp-admin-' . $subnav_item['css_id'] . '" href="' . $link . '">' . $name . '</a></li>'; 
  224. $sub_counter++; 
  225. echo '</ul>'; 
  226.  
  227. echo '</li>'; 
  228.  
  229. $counter++; 
  230.  
  231. $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; 
  232.  
  233. echo '<li' . $alt . '><a id="bp-admin-logout" class="logout" href="' . wp_logout_url( home_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>'; 
  234. echo '</ul>'; 
  235. echo '</li>'; 
  236.  
  237. function bp_adminbar_thisblog_menu() { 
  238. if ( current_user_can( 'edit_posts' ) ) { 
  239. echo '<li id="bp-adminbar-thisblog-menu"><a href="' . admin_url() . '">'; 
  240. _e( 'Dashboard', 'buddypress' ); 
  241. echo '</a>'; 
  242. echo '<ul>'; 
  243.  
  244. echo '<li class="alt"><a href="' . admin_url() . 'post-new.php">' . __( 'New Post', 'buddypress' ) . '</a></li>'; 
  245. echo '<li><a href="' . admin_url() . 'edit.php">' . __( 'Manage Posts', 'buddypress' ) . '</a></li>'; 
  246. echo '<li class="alt"><a href="' . admin_url() . 'edit-comments.php">' . __( 'Manage Comments', 'buddypress' ) . '</a></li>'; 
  247.  
  248. do_action( 'bp_adminbar_thisblog_items' ); 
  249.  
  250. echo '</ul>'; 
  251. echo '</li>'; 
  252.  
  253. /** 
  254. * Output the Random BuddyBar menu. 
  255. * 
  256. * Not visible for logged-in users. 
  257. * 
  258. * @deprecated 2.1.0 
  259. */ 
  260. function bp_adminbar_random_menu() { 
  261. ?> 
  262.  
  263. <li class="align-right" id="bp-adminbar-visitrandom-menu"> 
  264. <a href="#"><?php _e( 'Visit', 'buddypress' ) ?></a> 
  265. <ul class="random-list"> 
  266. <li><a href="<?php bp_members_directory_permalink(); ?>?random-member" rel="nofollow"><?php _e( 'Random Member', 'buddypress' ) ?></a></li> 
  267.  
  268. <?php if ( bp_is_active( 'groups' ) ) : ?> 
  269.  
  270. <li class="alt"><a href="<?php bp_groups_directory_permalink(); ?>?random-group" rel="nofollow"><?php _e( 'Random Group', 'buddypress' ) ?></a></li> 
  271.  
  272. <?php endif; ?> 
  273.  
  274. <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> 
  275.  
  276. <li><a href="<?php bp_blogs_directory_permalink(); ?>?random-blog" rel="nofollow"><?php _e( 'Random Site', 'buddypress' ) ?></a></li> 
  277.  
  278. <?php endif; ?> 
  279.  
  280. <?php do_action( 'bp_adminbar_random_menu' ) ?> 
  281.  
  282. </ul> 
  283. </li> 
  284.  
  285. <?php 
  286.  
  287. /** 
  288. * Enqueue the BuddyBar CSS. 
  289. * 
  290. * @deprecated 2.1.0 
  291. */ 
  292. function bp_core_load_buddybar_css() { 
  293.  
  294. if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) { 
  295. return; 
  296.  
  297. $min = bp_core_get_minified_asset_suffix(); 
  298.  
  299. if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility 
  300. $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css'; 
  301. } else { 
  302. $stylesheet = buddypress()->plugin_url . "bp-core/css/buddybar{$min}.css"; 
  303.  
  304. wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() ); 
  305.  
  306. wp_style_add_data( 'bp-admin-bar', 'rtl', true ); 
  307. if ( $min ) { 
  308. wp_style_add_data( 'bp-admin-bar', 'suffix', $min ); 
  309. add_action( 'bp_init', 'bp_core_load_buddybar_css' ); 
  310.  
  311. /** 
  312. * Add menu items to the BuddyBar. 
  313. * 
  314. * @since 1.0.0 
  315. * 
  316. * @deprecated 2.1.0 
  317. */ 
  318. function bp_groups_adminbar_admin_menu() { 
  319. $bp = buddypress(); 
  320.  
  321. if ( empty( $bp->groups->current_group ) ) { 
  322. return false; 
  323.  
  324. // Only group admins and site admins can see this menu 
  325. if ( !current_user_can( 'edit_users' ) && !bp_current_user_can( 'bp_moderate' ) && !bp_is_item_admin() ) { 
  326. return false; 
  327. } ?> 
  328.  
  329. <li id="bp-adminbar-adminoptions-menu"> 
  330. <a href="<?php bp_groups_action_link( 'admin' ); ?>"><?php _e( 'Admin Options', 'buddypress' ); ?></a> 
  331.  
  332. <ul> 
  333. <li><a href="<?php bp_groups_action_link( 'admin/edit-details' ); ?>"><?php _e( 'Edit Details', 'buddypress' ); ?></a></li> 
  334.  
  335. <li><a href="<?php bp_groups_action_link( 'admin/group-settings' ); ?>"><?php _e( 'Group Settings', 'buddypress' ); ?></a></li> 
  336.  
  337. <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) && $bp->avatar->show_avatars ) : ?> 
  338.  
  339. <li><a href="<?php bp_groups_action_link( 'admin/group-avatar' ); ?>"><?php _e( 'Group Profile Photo', 'buddypress' ); ?></a></li> 
  340.  
  341. <?php endif; ?> 
  342.  
  343. <?php if ( bp_is_active( 'friends' ) ) : ?> 
  344.  
  345. <li><a href="<?php bp_groups_action_link( 'send-invites' ); ?>"><?php _e( 'Manage Invitations', 'buddypress' ); ?></a></li> 
  346.  
  347. <?php endif; ?> 
  348.  
  349. <li><a href="<?php bp_groups_action_link( 'admin/manage-members' ); ?>"><?php _e( 'Manage Members', 'buddypress' ); ?></a></li> 
  350.  
  351. <?php if ( $bp->groups->current_group->status == 'private' ) : ?> 
  352.  
  353. <li><a href="<?php bp_groups_action_link( 'admin/membership-requests' ); ?>"><?php _e( 'Membership Requests', 'buddypress' ); ?></a></li> 
  354.  
  355. <?php endif; ?> 
  356.  
  357. <li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/delete-group/', 'groups_delete_group' ); ?>&delete-group-button=1&delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li> 
  358.  
  359. <?php do_action( 'bp_groups_adminbar_admin_menu' ) ?> 
  360.  
  361. </ul> 
  362. </li> 
  363.  
  364. <?php 
  365. add_action( 'bp_adminbar_menus', 'bp_groups_adminbar_admin_menu', 20 ); 
  366.  
  367. /** 
  368. * Add the Notifications menu to the BuddyBar. 
  369. * 
  370. * @deprecated 2.1.0 
  371. */ 
  372. function bp_adminbar_notifications_menu() { 
  373.  
  374. // Bail if notifications is not active 
  375. if ( ! bp_is_active( 'notifications' ) ) { 
  376. return false; 
  377.  
  378. bp_notifications_buddybar_menu(); 
  379. add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 ); 
  380.  
  381. /** 
  382. * Add the Blog Authors menu to the BuddyBar (visible when not logged in). 
  383. * 
  384. * @deprecated 2.1.0 
  385. */ 
  386. function bp_adminbar_authors_menu() { 
  387. global $wpdb; 
  388.  
  389. // Only for multisite 
  390. if ( ! is_multisite() ) { 
  391. return false; 
  392.  
  393. // Hide on root blog 
  394. if ( bp_is_root_blog( $wpdb->blogid ) || ! bp_is_active( 'blogs' ) ) { 
  395. return false; 
  396.  
  397. $blog_prefix = $wpdb->get_blog_prefix( $wpdb->blogid ); 
  398. $authors = $wpdb->get_results( "SELECT user_id, user_login, user_nicename, display_name, user_email, meta_value as caps FROM $wpdb->users u, $wpdb->usermeta um WHERE u.ID = um.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY um.user_id" ); 
  399.  
  400. if ( !empty( $authors ) ) { 
  401. // This is a blog, render a menu with links to all authors 
  402. echo '<li id="bp-adminbar-authors-menu"><a href="/">'; 
  403. _e('Blog Authors', 'buddypress'); 
  404. echo '</a>'; 
  405.  
  406. echo '<ul class="author-list">'; 
  407. foreach( (array) $authors as $author ) { 
  408. $caps = maybe_unserialize( $author->caps ); 
  409. if ( isset( $caps['subscriber'] ) || isset( $caps['contributor'] ) ) { 
  410. continue; 
  411.  
  412. echo '<li>'; 
  413. echo '<a href="' . bp_core_get_user_domain( $author->user_id, $author->user_nicename, $author->user_login ) . '">'; 
  414. echo bp_core_fetch_avatar( array( 
  415. 'item_id' => $author->user_id,  
  416. 'email' => $author->user_email,  
  417. 'width' => 15,  
  418. 'height' => 15,  
  419. 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $author->display_name ) 
  420. ) ); 
  421. echo ' ' . $author->display_name . '</a>'; 
  422. echo '<div class="admin-bar-clear"></div>'; 
  423. echo '</li>'; 
  424. echo '</ul>'; 
  425. echo '</li>'; 
  426. add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 ); 
  427.  
  428. /** 
  429. * Add a member admin menu to the BuddyBar. 
  430. * 
  431. * Adds an Toolbar menu to any profile page providing site moderator actions 
  432. * that allow capable users to clean up a users account. 
  433. * 
  434. * @deprecated 2.1.0 
  435. */ 
  436. function bp_members_adminbar_admin_menu() { 
  437.  
  438. // Only show if viewing a user 
  439. if ( ! bp_displayed_user_id() ) { 
  440. return false; 
  441.  
  442. // Don't show this menu to non site admins or if you're viewing your own profile 
  443. if ( !current_user_can( 'edit_users' ) || bp_is_my_profile() ) { 
  444. return false; 
  445. } ?> 
  446.  
  447. <li id="bp-adminbar-adminoptions-menu"> 
  448.  
  449. <a href=""><?php _e( 'Admin Options', 'buddypress' ) ?></a> 
  450.  
  451. <ul> 
  452. <?php if ( bp_is_active( 'xprofile' ) ) : ?> 
  453.  
  454. <li><a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>"><?php printf( __( "Edit %s's Profile", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ) ?></a></li> 
  455.  
  456. <?php endif ?> 
  457.  
  458. <li><a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"><?php printf( __( "Edit %s's Profile Photo", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ) ?></a></li> 
  459.  
  460. <li><a href="<?php bp_members_component_link( 'settings', 'capabilities' ); ?>"><?php _e( 'User Capabilities', 'buddypress' ); ?></a></li> 
  461.  
  462. <li><a href="<?php bp_members_component_link( 'settings', 'delete-account' ); ?>"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); ?></a></li> 
  463.  
  464. <?php do_action( 'bp_members_adminbar_admin_menu' ) ?> 
  465.  
  466. </ul> 
  467. </li> 
  468.  
  469. <?php 
  470. add_action( 'bp_adminbar_menus', 'bp_members_adminbar_admin_menu', 20 ); 
  471.  
  472. /** 
  473. * Create the Notifications menu for the BuddyBar. 
  474. * 
  475. * @since 1.9.0 
  476. * @deprecated 2.1.0 
  477. */ 
  478. function bp_notifications_buddybar_menu() { 
  479.  
  480. if ( ! is_user_logged_in() ) { 
  481. return false; 
  482.  
  483. echo '<li id="bp-adminbar-notifications-menu"><a href="' . esc_url( bp_loggedin_user_domain() ) . '">'; 
  484. _e( 'Notifications', 'buddypress' ); 
  485.  
  486. $notification_count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); 
  487. $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id() ); 
  488.  
  489. if ( ! empty( $notification_count ) ) : ?> 
  490. <span><?php echo bp_core_number_format( $notification_count ); ?></span> 
  491. <?php 
  492. endif; 
  493.  
  494. echo '</a>'; 
  495. echo '<ul>'; 
  496.  
  497. if ( ! empty( $notifications ) ) { 
  498. $counter = 0; 
  499. for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) { 
  500. $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?> 
  501.  
  502. <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li> 
  503.  
  504. <?php $counter++; 
  505. } else { ?> 
  506.  
  507. <li><a href="<?php echo esc_url( bp_loggedin_user_domain() ); ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li> 
  508.  
  509. <?php 
  510.  
  511. echo '</ul>'; 
  512. echo '</li>'; 
  513. add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 ); 
  514.  
  515. /** 
  516. * Output the base URL for subdomain installations of WordPress Multisite. 
  517. * 
  518. * @since 1.6.0 
  519. * 
  520. * @deprecated 2.1.0 
  521. */ 
  522. function bp_blogs_subdomain_base() { 
  523. _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_subdomain_base()' ); 
  524. echo bp_signup_get_subdomain_base(); 
  525.  
  526. /** 
  527. * Return the base URL for subdomain installations of WordPress Multisite. 
  528. * 
  529. * @since 1.6.0 
  530. * 
  531. * @return string The base URL - eg, 'example.com' for site_url() example.com or www.example.com. 
  532. * 
  533. * @deprecated 2.1.0 
  534. */ 
  535. function bp_blogs_get_subdomain_base() { 
  536. _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_get_subdomain_base()' ); 
  537. return bp_signup_get_subdomain_base(); 
  538.  
  539. /** 
  540. * Allegedly output an avatar upload form, but it hasn't done that since 2009. 
  541. * 
  542. * @since 1.0.0 
  543. * @deprecated 2.1.0 
  544. */ 
  545. function bp_avatar_upload_form() { 
  546. _deprecated_function(__FUNCTION__, '2.1', 'No longer used' ); 
.