WordPress.org

Making WordPress.org

Changeset 9949


Ignore:
Timestamp:
06/01/2020 05:58:14 AM (2 months 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.