mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed WP Capabilities for Gravity Forms plugin;
- fixed ability to view other users profiles;
This commit is contained in:
@@ -280,6 +280,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
|
||||
// include UM classes
|
||||
$this->includes();
|
||||
$this->plugins_loaded();
|
||||
|
||||
// include hook files
|
||||
add_action( 'plugins_loaded', array( &$this, 'init' ), 0 );
|
||||
@@ -300,6 +301,18 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
public function plugins_loaded() {
|
||||
//gravity forms
|
||||
if ( ! function_exists('members_get_capabilities' ) ) {
|
||||
|
||||
function members_get_capabilities() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function old_update_patch() {
|
||||
global $um_woocommerce, $um_bbpress, $um_followers, $um_friends, $um_mailchimp, $um_messaging, $um_mycred, $um_notices, $um_notifications, $um_online, $um_private_content, $um_profile_completeness, $um_recaptcha, $um_reviews, $um_activity, $um_social_login, $um_user_tags, $um_verified;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user