MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
95 stars 51 forks source link

In WordPress Core, the `wp_capabilities` field uses the wpdb prefix, but we do not #500

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

Describe the bug In WordPress Core, the wp_capabilities field uses the wpdb prefix, but we do not. There's code in Core that runs, for example, like $this->cap_key = $wpdb->get_blog_prefix( $this->site_id ) . 'capabilities';.

To Reproduce Steps to reproduce the behavior:

  1. Install WordPress with a custom prefix.
  2. Try to map the capabilities field

Expected behavior It should work the same as wp_capabilities, but it doesn't.