- changed dependencies before release;

This commit is contained in:
nikitasinelnikov
2019-10-07 00:48:51 +03:00
parent fac4be7677
commit 09eb56f1b5
4 changed files with 35 additions and 33 deletions
+13
View File
@@ -432,5 +432,18 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
}
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'];
}
}
}
+17 -15
View File
@@ -37,27 +37,29 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
'followers' => '2.1.6',
'forumwp' => '2.0.1',
'friends' => '2.1.4',
/*need to review*/
'groups' => '2.0',
'instagram' => '2.0.5',
'mailchimp' => '2.2.0',
'messaging' => '2.2.5',
'mycred' => '2.1.6',
'notices' => '2.0.1',
'notifications' => '2.0.1',
'online' => '2.0',
'private-content' => '2.0',
'profile-completeness' => '2.0.1',
'recaptcha' => '2.0.2',
'reviews' => '2.0.3',
'social-activity' => '2.0.6',
'notices' => '2.0.5',
'notifications' => '2.1.3',
'online' => '2.1.1',
'private-content' => '2.0.5',
'profile-completeness' => '2.1.2',
'recaptcha' => '2.1.2',
'reviews' => '2.1.5',
'social-activity' => '2.2.0',
/*need Champ's feedback */
'social-login' => '2.0.1',
'terms-conditions' => '2.0',
'unsplash' => '2.0',
'user-bookmarks' => '2.0',
'user-photos' => '2.0.1',
'user-tags' => '2.0',
'verified-users' => '2.0.1',
'woocommerce' => '2.0.1',
'terms-conditions' => '2.1.1',
'unsplash' => '2.0.2',
'user-bookmarks' => '2.0.2',
'user-photos' => '2.0.4',
'user-tags' => '2.1.0',
'verified-users' => '2.0.5',
'woocommerce' => '2.1.9',
/*????*/
'restrict-content' => '2.0',
+2 -2
View File
@@ -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'] );
if ( true !== $compare_version_result ) {
UM()->notices()->add_notice( "{$slug}_dependencies", array(
UM()->admin()->notices()->add_notice( "{$slug}_dependencies", array(
'class' => 'error',
'message' => '<p>' . $compare_version_result . '</p>',
), 1 );
}
} elseif ( ! $run && ! empty( $message ) ) {
UM()->notices()->add_notice( "{$slug}_dependencies", array(
UM()->admin()->notices()->add_notice( "{$slug}_dependencies", array(
'class' => 'error',
'message' => $message,
), 1 );
+3 -16
View File
@@ -16,7 +16,7 @@ if ( ! class_exists( 'UM' ) ) {
* @method UM_Mailchimp Mailchimp()
* @method UM_Messaging_API Messaging_API()
* @method UM_myCRED myCRED()
* @method UM_Notices_API Notices_API()
* @method UM_Notices Notices()
* @method UM_Notifications_API Notifications_API()
* @method UM_Online Online()
* @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_gdpr();
$this->columns();
$this->notices();
$this->admin()->notices();
$this->admin_navmenu();
$this->theme_updater();
$this->access();
@@ -529,7 +529,7 @@ if ( ! class_exists( 'UM' ) ) {
$this->columns();
$this->admin_enqueue();
$this->metabox();
$this->notices();
$this->admin()->notices();
$this->users();
$this->dragdrop();
$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
*