mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- changed dependencies before release;
This commit is contained in:
@@ -432,5 +432,18 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
|||||||
}
|
}
|
||||||
return $parent_file;
|
return $parent_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 2.0
|
||||||
|
*
|
||||||
|
* @return core\Admin_Notices()
|
||||||
|
*/
|
||||||
|
function notices() {
|
||||||
|
if ( empty( UM()->classes['admin_notices'] ) ) {
|
||||||
|
UM()->classes['admin_notices'] = new core\Admin_Notices();
|
||||||
|
}
|
||||||
|
return UM()->classes['admin_notices'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,27 +37,29 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
|||||||
'followers' => '2.1.6',
|
'followers' => '2.1.6',
|
||||||
'forumwp' => '2.0.1',
|
'forumwp' => '2.0.1',
|
||||||
'friends' => '2.1.4',
|
'friends' => '2.1.4',
|
||||||
|
/*need to review*/
|
||||||
'groups' => '2.0',
|
'groups' => '2.0',
|
||||||
'instagram' => '2.0.5',
|
'instagram' => '2.0.5',
|
||||||
'mailchimp' => '2.2.0',
|
'mailchimp' => '2.2.0',
|
||||||
'messaging' => '2.2.5',
|
'messaging' => '2.2.5',
|
||||||
'mycred' => '2.1.6',
|
'mycred' => '2.1.6',
|
||||||
'notices' => '2.0.1',
|
'notices' => '2.0.5',
|
||||||
'notifications' => '2.0.1',
|
'notifications' => '2.1.3',
|
||||||
'online' => '2.0',
|
'online' => '2.1.1',
|
||||||
'private-content' => '2.0',
|
'private-content' => '2.0.5',
|
||||||
'profile-completeness' => '2.0.1',
|
'profile-completeness' => '2.1.2',
|
||||||
'recaptcha' => '2.0.2',
|
'recaptcha' => '2.1.2',
|
||||||
'reviews' => '2.0.3',
|
'reviews' => '2.1.5',
|
||||||
'social-activity' => '2.0.6',
|
'social-activity' => '2.2.0',
|
||||||
|
/*need Champ's feedback */
|
||||||
'social-login' => '2.0.1',
|
'social-login' => '2.0.1',
|
||||||
'terms-conditions' => '2.0',
|
'terms-conditions' => '2.1.1',
|
||||||
'unsplash' => '2.0',
|
'unsplash' => '2.0.2',
|
||||||
'user-bookmarks' => '2.0',
|
'user-bookmarks' => '2.0.2',
|
||||||
'user-photos' => '2.0.1',
|
'user-photos' => '2.0.4',
|
||||||
'user-tags' => '2.0',
|
'user-tags' => '2.1.0',
|
||||||
'verified-users' => '2.0.1',
|
'verified-users' => '2.0.5',
|
||||||
'woocommerce' => '2.0.1',
|
'woocommerce' => '2.1.9',
|
||||||
|
|
||||||
/*????*/
|
/*????*/
|
||||||
'restrict-content' => '2.0',
|
'restrict-content' => '2.0',
|
||||||
|
|||||||
@@ -57,13 +57,13 @@ if ( ! class_exists( 'um\Extensions' ) ) {
|
|||||||
$compare_version_result = UM()->dependencies()->compare_versions( $extension['min_core_version'], $extension['version'], $slug, $extension['title'] );
|
$compare_version_result = UM()->dependencies()->compare_versions( $extension['min_core_version'], $extension['version'], $slug, $extension['title'] );
|
||||||
|
|
||||||
if ( true !== $compare_version_result ) {
|
if ( true !== $compare_version_result ) {
|
||||||
UM()->notices()->add_notice( "{$slug}_dependencies", array(
|
UM()->admin()->notices()->add_notice( "{$slug}_dependencies", array(
|
||||||
'class' => 'error',
|
'class' => 'error',
|
||||||
'message' => '<p>' . $compare_version_result . '</p>',
|
'message' => '<p>' . $compare_version_result . '</p>',
|
||||||
), 1 );
|
), 1 );
|
||||||
}
|
}
|
||||||
} elseif ( ! $run && ! empty( $message ) ) {
|
} elseif ( ! $run && ! empty( $message ) ) {
|
||||||
UM()->notices()->add_notice( "{$slug}_dependencies", array(
|
UM()->admin()->notices()->add_notice( "{$slug}_dependencies", array(
|
||||||
'class' => 'error',
|
'class' => 'error',
|
||||||
'message' => $message,
|
'message' => $message,
|
||||||
), 1 );
|
), 1 );
|
||||||
|
|||||||
+3
-16
@@ -16,7 +16,7 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
* @method UM_Mailchimp Mailchimp()
|
* @method UM_Mailchimp Mailchimp()
|
||||||
* @method UM_Messaging_API Messaging_API()
|
* @method UM_Messaging_API Messaging_API()
|
||||||
* @method UM_myCRED myCRED()
|
* @method UM_myCRED myCRED()
|
||||||
* @method UM_Notices_API Notices_API()
|
* @method UM_Notices Notices()
|
||||||
* @method UM_Notifications_API Notifications_API()
|
* @method UM_Notifications_API Notifications_API()
|
||||||
* @method UM_Online Online()
|
* @method UM_Online Online()
|
||||||
* @method UM_Profile_Completeness_API Profile_Completeness_API()
|
* @method UM_Profile_Completeness_API Profile_Completeness_API()
|
||||||
@@ -517,7 +517,7 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
$this->admin_upgrade()->init_packages_ajax_handlers();
|
$this->admin_upgrade()->init_packages_ajax_handlers();
|
||||||
$this->admin_gdpr();
|
$this->admin_gdpr();
|
||||||
$this->columns();
|
$this->columns();
|
||||||
$this->notices();
|
$this->admin()->notices();
|
||||||
$this->admin_navmenu();
|
$this->admin_navmenu();
|
||||||
$this->theme_updater();
|
$this->theme_updater();
|
||||||
$this->access();
|
$this->access();
|
||||||
@@ -529,7 +529,7 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
$this->columns();
|
$this->columns();
|
||||||
$this->admin_enqueue();
|
$this->admin_enqueue();
|
||||||
$this->metabox();
|
$this->metabox();
|
||||||
$this->notices();
|
$this->admin()->notices();
|
||||||
$this->users();
|
$this->users();
|
||||||
$this->dragdrop();
|
$this->dragdrop();
|
||||||
$this->plugin_updater();
|
$this->plugin_updater();
|
||||||
@@ -855,19 +855,6 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 2.0
|
|
||||||
*
|
|
||||||
* @return um\admin\core\Admin_Notices()
|
|
||||||
*/
|
|
||||||
function notices() {
|
|
||||||
if ( empty( $this->classes['admin_notices'] ) ) {
|
|
||||||
$this->classes['admin_notices'] = new um\admin\core\Admin_Notices();
|
|
||||||
}
|
|
||||||
return $this->classes['admin_notices'];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user