[ 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  
  44  /**
  45   * If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over
  46   * to the WP Toolbar.
  47   *
  48   * @since 1.6.0
  49   * @deprecated 2.1.0
  50   */
  51  function bp_admin_setting_callback_force_buddybar() {
  52  }
  53  
  54  
  55  /**
  56   * Sanitization for _bp_force_buddybar
  57   *
  58   * If upgraded to 1.6 and you chose to keep the BuddyBar, a checkbox asks if you want to switch to
  59   * the WP Toolbar. The option we store is 1 if the BuddyBar is forced on, so we use this function
  60   * to flip the boolean before saving the intval.
  61   *
  62   * @since 1.6.0
  63   * @deprecated 2.1.0
  64   * @access Private
  65   */
  66  function bp_admin_sanitize_callback_force_buddybar( $value = false ) {
  67      return $value ? 0 : 1;
  68  }
  69  
  70  /**
  71   * Wrapper function for rendering the BuddyBar.
  72   *
  73   * @return false|null Returns false if the BuddyBar is disabled.
  74   * @deprecated 2.1.0
  75   */
  76  function bp_core_admin_bar() {
  77  }
  78  
  79  /**
  80   * Output the BuddyBar logo.
  81   *
  82   * @deprecated 2.1.0
  83   */
  84  function bp_adminbar_logo() {
  85  }
  86  
  87  /**
  88   * Output the "Log In" and "Sign Up" names to the BuddyBar.
  89   *
  90   * Visible only to visitors who are not logged in.
  91   *
  92   * @deprecated 2.1.0
  93   *
  94   * @return false|null Returns false if the current user is logged in.
  95   */
  96  function bp_adminbar_login_menu() {
  97  }
  98  
  99  /**
 100   * Output the My Account BuddyBar menu.
 101   *
 102   * @deprecated 2.1.0
 103   *
 104   * @return false|null Returns false on failure.
 105   */
 106  function bp_adminbar_account_menu() {
 107  }
 108  
 109  function bp_adminbar_thisblog_menu() {
 110  }
 111  
 112  /**
 113   * Output the Random BuddyBar menu.
 114   *
 115   * Not visible for logged-in users.
 116   *
 117   * @deprecated 2.1.0
 118   */
 119  function bp_adminbar_random_menu() {
 120  }
 121  
 122  /**
 123   * Enqueue the BuddyBar CSS.
 124   *
 125   * @deprecated 2.1.0
 126   */
 127  function bp_core_load_buddybar_css() {
 128  }
 129  
 130  /**
 131   * Add menu items to the BuddyBar.
 132   *
 133   * @since 1.0.0
 134   *
 135   * @deprecated 2.1.0
 136   */
 137  function bp_groups_adminbar_admin_menu() {
 138  }
 139  
 140  /**
 141   * Add the Notifications menu to the BuddyBar.
 142   *
 143   * @deprecated 2.1.0
 144   */
 145  function bp_adminbar_notifications_menu() {
 146  }
 147  
 148  /**
 149   * Add the Blog Authors menu to the BuddyBar (visible when not logged in).
 150   *
 151   * @deprecated 2.1.0
 152   */
 153  function bp_adminbar_authors_menu() {
 154  }
 155  
 156  /**
 157   * Add a member admin menu to the BuddyBar.
 158   *
 159   * Adds an Toolbar menu to any profile page providing site moderator actions
 160   * that allow capable users to clean up a users account.
 161   *
 162   * @deprecated 2.1.0
 163   */
 164  function bp_members_adminbar_admin_menu() {
 165  }
 166  
 167  /**
 168   * Create the Notifications menu for the BuddyBar.
 169   *
 170   * @since 1.9.0
 171   * @deprecated 2.1.0
 172   */
 173  function bp_notifications_buddybar_menu() {
 174  }
 175  
 176  /**
 177   * Output the base URL for subdomain installations of WordPress Multisite.
 178   *
 179   * @since 1.6.0
 180   *
 181   * @deprecated 2.1.0
 182   */
 183  function bp_blogs_subdomain_base() {
 184      _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_subdomain_base()' );
 185      echo bp_signup_get_subdomain_base();
 186  }
 187  
 188  /**
 189   * Return the base URL for subdomain installations of WordPress Multisite.
 190   *
 191   * @since 1.6.0
 192   *
 193   * @return string The base URL - eg, 'example.com' for site_url() example.com or www.example.com.
 194   *
 195   * @deprecated 2.1.0
 196   */
 197  function bp_blogs_get_subdomain_base() {
 198      _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_get_subdomain_base()' );
 199      return bp_signup_get_subdomain_base();
 200  }
 201  
 202  /**
 203   * Allegedly output an avatar upload form, but it hasn't done that since 2009.
 204   *
 205   * @since 1.0.0
 206   * @deprecated 2.1.0
 207   */
 208  function bp_avatar_upload_form() {
 209      _deprecated_function(__FUNCTION__, '2.1', 'No longer used' );
 210  }
 211  


Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1