PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 158
Lasso Lite – Affiliate Link Manager & Product Displays v158
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
← All changes | classes/class-update-db.php +16 -0 115158 View file →
@@ -13,8 +13,10 @@
13 13 use LassoLite\Models\Model;
14 14 use LassoLite\Models\Url_Details;
15 15 use LassoLite\Models\Revert;
16 16
17 +use LassoLite\Classes\Setting;
18 +
17 19 /**
18 20 * Update_DB
19 21 */
20 22 class Update_DB {
@@ -72,8 +74,22 @@
72 74
73 75 if ( $version < 113 ) {
74 76 ( new Amazon_Products() )->create_table();
75 77 $this->update_rating_and_review_data_from_aawp();
78 + }
79 +
80 + if ( $version < 129 ) {
81 + Setting::set_setting( 'auto_upgrade_eligible_links', true );
82 + }
83 +
84 + if ( $version < 152 && (int) LASSO_LITE_VERSION >= 152 ) {
85 + ( new Url_Details() )->update_for_v152();
86 + ( new Revert() )->update_for_v152();
87 + }
88 +
89 + // Beacon /js/e rewrite is registered in new code; upgrader runs the old callback.
90 + if ( $version < 154 && (int) LASSO_LITE_VERSION >= 154 ) {
91 + Helper::update_option( 'pending_vanity_rewrite_flush', '1' );
76 92 }
77 93 }
78 94
79 95 /**