[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Deprecated functions.
   4   *
   5   * @deprecated 2.7.0
   6   */
   7  
   8  // Exit if accessed directly.
   9  defined( 'ABSPATH' ) || exit;
  10  
  11  /**
  12   * Get the DB schema to use for BuddyPress components.
  13   *
  14   * @since 1.1.0
  15   * @deprecated 2.7.0
  16   *
  17   * @return string The default database character-set, if set.
  18   */
  19  function bp_core_set_charset() {
  20      global $wpdb;
  21  
  22      _deprecated_function( __FUNCTION__, '2.7', 'wpdb::get_charset_collate()' );
  23  
  24      require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
  25      return !empty( $wpdb->charset ) ? "DEFAULT CHARACTER SET {$wpdb->charset}" : '';
  26  }


Generated: Sun Aug 1 01:01:41 2021 Cross-referenced by PHPXref 0.7.1