WordPress.org

Making WordPress.org

Changeset 4989


Ignore:
Timestamp:
02/22/2017 08:52:06 PM (4 years ago)
Author:
ocean90
Message:

Support Forums, User Badges: Replace hardcoded database prefix with $wpdb->base_prefix.

Props SergeyBiryukov.
Fixes #2527.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php

    r4945 r4989  
    4141     */
    4242    private function __construct() {
    43         self::$plugins_table_prefix = 'wporg_' . WPORG_PLUGIN_DIRECTORY_BLOGID . '_';
    44         self::$themes_table_prefix  = 'wporg_' . WPORG_THEME_DIRECTORY_BLOGID . '_';
     43        global $wpdb;
     44
     45        self::$plugins_table_prefix = $wpdb->base_prefix . WPORG_PLUGIN_DIRECTORY_BLOGID . '_';
     46        self::$themes_table_prefix  = $wpdb->base_prefix . WPORG_THEME_DIRECTORY_BLOGID . '_';
    4547
    4648        add_action( 'bbp_loaded', array( $this, 'bbp_loaded' ) );
Note: See TracChangeset for help on using the changeset viewer.