Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2018 09:37:33 AM (7 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/bp-blogs-cache.php

    r10417 r12173  
    2929        'object_type'   => buddypress()->blogs->id,
    3030        'object_column' => 'blog_id',
    31         'cache_group'   => 'blog_meta',
     31        'cache_group'   => 'bp_blog_meta',
    3232        'meta_table'    => buddypress()->blogs->table_name_blogmeta,
    3333    );
Note: See TracChangeset for help on using the changeset viewer.