Connections-Business-Directory / Connections

Directory Plugin for WordPress
https://connections-pro.com
GNU General Public License v2.0
26 stars 18 forks source link

s2member #392

Closed shazahm1 closed 9 years ago

shazahm1 commented 10 years ago

It seems every time s2member releases an update it removes all the custom roles added by Connections.

re: https://wordpress.org/plugins/s2member/ http://connections-pro.com/support/topic/role-settings-disappear/#post-304801

shazahm1 commented 9 years ago

It's been confirmed that this also affect other plugins with custom roles and capabilities.

https://wordpress.org/support/topic/resetting-roles-every-time

shazahm1 commented 9 years ago

Seems like this will be the solution:

/*Prevent s2member re-assigning custom capabilities on re-activation*/
add_filter('ws_plugin__s2member_lock_roles_caps', '__return_true');
shazahm1 commented 9 years ago

Lets add this to the plugin compatibility file in 8.1.5.

shazahm1 commented 9 years ago

Fix in commit 50ba10e2322f06c97e024d4614b8b43a2b825ea4 .