Making WordPress.org

Ticket #2527: meta-2527.patch

File meta-2527.patch, 948 bytes (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php

     
    4040         * Instantiates a new Plugin object.
    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;
    4544
     45                self::$plugins_table_prefix = $wpdb->base_prefix . WPORG_PLUGIN_DIRECTORY_BLOGID . '_';
     46                self::$themes_table_prefix  = $wpdb->base_prefix . WPORG_THEME_DIRECTORY_BLOGID . '_';
     47
    4648                add_action( 'bbp_loaded', array( $this, 'bbp_loaded' ) );
    4749        }
    4850