Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2018 09:37:33 AM (8 years ago)
Author:
djpaul
Message:

Blogs: rename meta table key for compatibilty with #WP37923

The WordPress change introduces a blogmeta table in WordPress 5.0.
It uses $wpdb->blogmeta to access the table name, which is what BuddyPress has been using.

This'll be a breaking change for any manual SQL queries as soon as WP 5.0 is released.
When BuddyPress requires 5.0, we can look at migrating table content over, but that is some ways in the future.

Fixes #7834

Props needle, r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/classes/class-bp-blogs-component.php

    r11934 r12173  
    6464
    6565                $meta_tables = array(
    66                         'blog' => $bp->table_prefix . 'bp_user_blogs_blogmeta',
     66                        'bp_blog' => $bp->table_prefix . 'bp_user_blogs_blogmeta',
    6767                );
    6868
     
    348348                // Global groups.
    349349                wp_cache_add_global_groups( array(
    350                         'blog_meta'
     350                        'bp_blog_meta'
    351351                ) );
    352352
Note: See TracChangeset for help on using the changeset viewer.