PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.0.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.0.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Core/Migrator.php +2 -10 3.6.32.0.2 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2
3 3 namespace Templately\Core;
4 4
5 -use Templately\API\Profile;
6 5 use Templately\Utils\Base;
7 6 use Templately\Utils\Options;
8 7
9 8 class Migrator extends Base {
@@ -24,9 +23,9 @@
24 23
25 24 /**
26 25 * Migration for v1.3.6 to v2.0.1
27 26 */
28 - if( \version_compare(TEMPLATELY_VERSION, '2.0.1', '=') && \version_compare($_old_version, '1.3.6', '=') ) {
27 + if( \version_compare(TEMPLATELY_VERSION, '2.0.1', '=') && \version_compare($_old_version, '1.3.6', '=') ) {
29 28 $user_choice = $this->options->get_option('_templately_user_login_choice');
30 29 $user_id = false;
31 30 if( ! empty( $user_choice ) && isset($user_choice['choice']) ) {
32 31 $user_id = intval($user_choice['id']);
@@ -58,16 +57,9 @@
58 57
59 58 $this->options->set('user', $user_profile, $user_id );
60 59 $this->options->set('favourites', $_favourites, $user_id );
61 60 }
62 - }
63 -
64 - /**
65 - * Migration for v2.2.10 to v2.2.11
66 - */
67 - if( TEMPLATELY_VERSION !== $_old_version && \version_compare($_old_version, '2.2.10', '<=') ) {
68 - Profile::get_instance()->sync();
69 - }
61 + }
70 62
71 63 $this->options->update_option( '_templately_migrate', TEMPLATELY_VERSION );
72 64 }
73 65