[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/deprecated/ -> 2.1.php (source)

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


Generated: Wed Jul 24 01:01:43 2019 Cross-referenced by PHPXref 0.7.1