Making WordPress.org


Ignore:
Timestamp:
06/01/2020 05:58:14 AM (5 years ago)
Author:
dd32
Message:

BuddyPress.org: Remove a function forcing the Database to utf8.

This was previously required as WordPress.org HyperDB did not set the character set correctly for the BuddyPress database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/buddypress-dot-org.php

    r447 r9949  
    1818if ( 'profiles.wordpress.org' != $_SERVER['HTTP_HOST'] )
    1919    add_filter( 'show_admin_bar', '__return_true' );
    20 
    21 /**
    22  * This function forces the encoding to utf8
    23  */
    24 function bporg_force_encoding() {
    25     global $wpdb;
    26 
    27     // Set dbhs to an empty array - unsetting it causes headaches
    28     $wpdb->dbhs    = array();
    29     $wpdb->charset = 'utf8';
    30 }
    31 bporg_force_encoding();
    3220
    3321function bporg_maintenance() {
Note: See TracChangeset for help on using the changeset viewer.