Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin - Version 3.2.6

Version Description

  • Fix upgrade to Pro bug
Download this release

Release Info

Developer cartpauj
Plugin Icon 128x128 Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin
Version 3.2.6
Comparing to
See all releases

Code changes from version 3.2.5 to 3.2.6

app/controllers/PrliAppController.php CHANGED
@@ -340,10 +340,16 @@ class PrliAppController extends PrliBaseController {
340
  array(), PRLI_VERSION );
341
 
342
  if ($this->should_enqueue_block_editor_scripts()) {
 
 
 
 
 
 
343
  wp_enqueue_script(
344
  'pretty-link-richtext-format',
345
  PRLI_JS_URL . '/editor.js',
346
- ['wp-editor', 'wp-i18n', 'wp-element', 'wp-compose', 'wp-components'],
347
  PRLI_VERSION,
348
  true
349
  );
340
  array(), PRLI_VERSION );
341
 
342
  if ($this->should_enqueue_block_editor_scripts()) {
343
+ $prereqs = ['wp-i18n', 'wp-element', 'wp-compose', 'wp-components'];
344
+
345
+ if ($current_screen->id != 'widgets') {
346
+ $prereqs[] = 'wp-editor';
347
+ }
348
+
349
  wp_enqueue_script(
350
  'pretty-link-richtext-format',
351
  PRLI_JS_URL . '/editor.js',
352
+ $prereqs,
353
  PRLI_VERSION,
354
  true
355
  );
app/controllers/PrliUpdateController.php CHANGED
@@ -369,6 +369,7 @@ class PrliUpdateController {
369
  $act = $this->send_mothership_request("/license_keys/activate/{$license_key}", $args, 'post');
370
 
371
  $this->set_mothership_license($license_key);
 
372
 
373
  $option_key = "prli_license_check_{$license_key}";
374
  delete_site_transient($option_key);
369
  $act = $this->send_mothership_request("/license_keys/activate/{$license_key}", $args, 'post');
370
 
371
  $this->set_mothership_license($license_key);
372
+ update_option('prli_activated', true); //If we have made it here we are activated
373
 
374
  $option_key = "prli_license_check_{$license_key}";
375
  delete_site_transient($option_key);
i18n/pretty-link.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Pretty Links plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Pretty Links 3.2.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-08-26T19:59:42+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: pretty-link\n"
@@ -40,7 +40,7 @@ msgstr ""
40
 
41
  #: app/controllers/PrliAppController.php:134
42
  #: app/controllers/PrliLinksController.php:166
43
- #: app/controllers/PrliUpdateController.php:730
44
  msgid "Link Categories"
45
  msgstr ""
46
 
@@ -52,7 +52,7 @@ msgstr ""
52
 
53
  #: app/controllers/PrliAppController.php:142
54
  #: app/controllers/PrliLinksController.php:167
55
- #: app/controllers/PrliUpdateController.php:736
56
  msgid "Link Tags"
57
  msgstr ""
58
 
@@ -63,7 +63,7 @@ msgid "Tags"
63
  msgstr ""
64
 
65
  #: app/controllers/PrliAppController.php:150
66
- #: app/controllers/PrliUpdateController.php:742
67
  #: pro/app/views/reports/list.php:4
68
  #: pro/app/views/reports/reports.php:7
69
  msgid "Link Reports"
@@ -77,7 +77,7 @@ msgstr ""
77
 
78
  #: app/controllers/PrliAppController.php:158
79
  #: app/controllers/PrliAppController.php:159
80
- #: app/controllers/PrliUpdateController.php:748
81
  #: pro/app/controllers/PlpImportExportController.php:15
82
  msgid "Import / Export"
83
  msgstr ""
@@ -154,60 +154,60 @@ msgstr ""
154
  msgid "Upgrade to Pro"
155
  msgstr ""
156
 
157
- #: app/controllers/PrliAppController.php:429
158
  #: app/views/groups/edit.php:72
159
  #: app/views/options/form.php:1082
160
  #: pro/app/views/reports/edit.php:66
161
  msgid "Update"
162
  msgstr ""
163
 
164
- #: app/controllers/PrliAppController.php:431
165
  msgid "Copy to Clipboard"
166
  msgstr ""
167
 
168
- #: app/controllers/PrliAppController.php:432
169
  msgid "Copied!"
170
  msgstr ""
171
 
172
- #: app/controllers/PrliAppController.php:433
173
  msgid "Oops, Copy Failed!"
174
  msgstr ""
175
 
176
- #: app/controllers/PrliAppController.php:457
177
  msgid "Are you sure you want to reset your Pretty Link? This will delete all of the statistical data about this Pretty Link in your database."
178
  msgstr ""
179
 
180
  #. translators: %1$s: br tag, %2$s: open link tag, %3$s: close link tag
181
- #: app/controllers/PrliAppController.php:562
182
  msgid "You're almost done!%1$s%2$sFinish your Re-Install of Pretty Links Pro%3$s"
183
  msgstr ""
184
 
185
- #: app/controllers/PrliAppController.php:577
186
  msgid "Pretty Links Pro Successfully Uninstalled."
187
  msgstr ""
188
 
189
- #: app/controllers/PrliAppController.php:626
190
  msgid "Invalid server response"
191
  msgstr ""
192
 
193
- #: app/controllers/PrliAppController.php:627
194
  msgid "Ajax error"
195
  msgstr ""
196
 
197
- #: app/controllers/PrliAppController.php:644
198
  msgid "Pretty Link Quick Add"
199
  msgstr ""
200
 
201
- #: app/controllers/PrliAppController.php:683
202
  msgid "Your Pretty Links Pro installation isn't quite complete yet. %1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
203
  msgstr ""
204
 
205
- #: app/controllers/PrliAppController.php:704
206
  msgid "Your Pretty Links Pro installation isn't quite complete yet.<br/>%1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
207
  msgstr ""
208
 
209
  #. translators: $1$s - Pretty Links plugin name; $2$s - WP.org review link; $3$s - WP.org review link.
210
- #: app/controllers/PrliAppController.php:752
211
  msgid "Enjoying %1$s? Please rate <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on <a href=\"%3$s\" target=\"_blank\" rel=\"noopener\">WordPress.org</a> to help us spread the word. Thanks from the Pretty Links team!"
212
  msgstr ""
213
 
@@ -616,63 +616,63 @@ msgstr ""
616
  msgid "License data not found"
617
  msgstr ""
618
 
619
- #: app/controllers/PrliUpdateController.php:399
620
  msgid "License key deactivated"
621
  msgstr ""
622
 
623
- #: app/controllers/PrliUpdateController.php:543
624
  msgid "Check for Update"
625
  msgstr ""
626
 
627
- #: app/controllers/PrliUpdateController.php:612
628
  msgid "You had an HTTP error connecting to Caseproof's Mothership API"
629
  msgstr ""
630
 
631
- #: app/controllers/PrliUpdateController.php:624
632
  msgid "Your License Key was invalid"
633
  msgstr ""
634
 
635
- #: app/controllers/PrliUpdateController.php:641
636
  #: app/views/admin/update/active_license.php:19
637
  #: app/views/admin/update/edge_updates.php:4
638
  #: app/views/widgets/widget.php:22
639
  msgid "Loading..."
640
  msgstr ""
641
 
642
- #: app/controllers/PrliUpdateController.php:642
643
  msgid "An error occurred during activation: %s"
644
  msgstr ""
645
 
646
- #: app/controllers/PrliUpdateController.php:643
647
  msgid "Invalid response."
648
  msgstr ""
649
 
650
- #: app/controllers/PrliUpdateController.php:644
651
  msgid "Ajax error."
652
  msgstr ""
653
 
654
- #: app/controllers/PrliUpdateController.php:645
655
  msgid "Are you sure? Pretty Links will not be functional on %s if this License Key is deactivated."
656
  msgstr ""
657
 
658
- #: app/controllers/PrliUpdateController.php:647
659
  msgid "An error occurred during deactivation: %s"
660
  msgstr ""
661
 
662
- #: app/controllers/PrliUpdateController.php:649
663
  msgid "An error occurred while installing the correct edition."
664
  msgstr ""
665
 
666
- #: app/controllers/PrliUpdateController.php:663
667
  msgid "You do not have access."
668
  msgstr ""
669
 
670
- #: app/controllers/PrliUpdateController.php:667
671
  msgid "Edge updates couldn't be updated."
672
  msgstr ""
673
 
674
  #. translators: %1$s: open link tag, %2$s: close link tag
675
- #: app/controllers/PrliUpdateController.php:757
676
  msgid "To restore automatic updates, %1$sinstall the correct edition%2$s of Pretty Links."
677
  msgstr ""
678
 
2
  # This file is distributed under the same license as the Pretty Links plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Pretty Links 3.2.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-18T16:21:28+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: pretty-link\n"
40
 
41
  #: app/controllers/PrliAppController.php:134
42
  #: app/controllers/PrliLinksController.php:166
43
+ #: app/controllers/PrliUpdateController.php:731
44
  msgid "Link Categories"
45
  msgstr ""
46
 
52
 
53
  #: app/controllers/PrliAppController.php:142
54
  #: app/controllers/PrliLinksController.php:167
55
+ #: app/controllers/PrliUpdateController.php:737
56
  msgid "Link Tags"
57
  msgstr ""
58
 
63
  msgstr ""
64
 
65
  #: app/controllers/PrliAppController.php:150
66
+ #: app/controllers/PrliUpdateController.php:743
67
  #: pro/app/views/reports/list.php:4
68
  #: pro/app/views/reports/reports.php:7
69
  msgid "Link Reports"
77
 
78
  #: app/controllers/PrliAppController.php:158
79
  #: app/controllers/PrliAppController.php:159
80
+ #: app/controllers/PrliUpdateController.php:749
81
  #: pro/app/controllers/PlpImportExportController.php:15
82
  msgid "Import / Export"
83
  msgstr ""
154
  msgid "Upgrade to Pro"
155
  msgstr ""
156
 
157
+ #: app/controllers/PrliAppController.php:435
158
  #: app/views/groups/edit.php:72
159
  #: app/views/options/form.php:1082
160
  #: pro/app/views/reports/edit.php:66
161
  msgid "Update"
162
  msgstr ""
163
 
164
+ #: app/controllers/PrliAppController.php:437
165
  msgid "Copy to Clipboard"
166
  msgstr ""
167
 
168
+ #: app/controllers/PrliAppController.php:438
169
  msgid "Copied!"
170
  msgstr ""
171
 
172
+ #: app/controllers/PrliAppController.php:439
173
  msgid "Oops, Copy Failed!"
174
  msgstr ""
175
 
176
+ #: app/controllers/PrliAppController.php:463
177
  msgid "Are you sure you want to reset your Pretty Link? This will delete all of the statistical data about this Pretty Link in your database."
178
  msgstr ""
179
 
180
  #. translators: %1$s: br tag, %2$s: open link tag, %3$s: close link tag
181
+ #: app/controllers/PrliAppController.php:568
182
  msgid "You're almost done!%1$s%2$sFinish your Re-Install of Pretty Links Pro%3$s"
183
  msgstr ""
184
 
185
+ #: app/controllers/PrliAppController.php:583
186
  msgid "Pretty Links Pro Successfully Uninstalled."
187
  msgstr ""
188
 
189
+ #: app/controllers/PrliAppController.php:632
190
  msgid "Invalid server response"
191
  msgstr ""
192
 
193
+ #: app/controllers/PrliAppController.php:633
194
  msgid "Ajax error"
195
  msgstr ""
196
 
197
+ #: app/controllers/PrliAppController.php:650
198
  msgid "Pretty Link Quick Add"
199
  msgstr ""
200
 
201
+ #: app/controllers/PrliAppController.php:689
202
  msgid "Your Pretty Links Pro installation isn't quite complete yet. %1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
203
  msgstr ""
204
 
205
+ #: app/controllers/PrliAppController.php:710
206
  msgid "Your Pretty Links Pro installation isn't quite complete yet.<br/>%1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
207
  msgstr ""
208
 
209
  #. translators: $1$s - Pretty Links plugin name; $2$s - WP.org review link; $3$s - WP.org review link.
210
+ #: app/controllers/PrliAppController.php:758
211
  msgid "Enjoying %1$s? Please rate <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on <a href=\"%3$s\" target=\"_blank\" rel=\"noopener\">WordPress.org</a> to help us spread the word. Thanks from the Pretty Links team!"
212
  msgstr ""
213
 
616
  msgid "License data not found"
617
  msgstr ""
618
 
619
+ #: app/controllers/PrliUpdateController.php:400
620
  msgid "License key deactivated"
621
  msgstr ""
622
 
623
+ #: app/controllers/PrliUpdateController.php:544
624
  msgid "Check for Update"
625
  msgstr ""
626
 
627
+ #: app/controllers/PrliUpdateController.php:613
628
  msgid "You had an HTTP error connecting to Caseproof's Mothership API"
629
  msgstr ""
630
 
631
+ #: app/controllers/PrliUpdateController.php:625
632
  msgid "Your License Key was invalid"
633
  msgstr ""
634
 
635
+ #: app/controllers/PrliUpdateController.php:642
636
  #: app/views/admin/update/active_license.php:19
637
  #: app/views/admin/update/edge_updates.php:4
638
  #: app/views/widgets/widget.php:22
639
  msgid "Loading..."
640
  msgstr ""
641
 
642
+ #: app/controllers/PrliUpdateController.php:643
643
  msgid "An error occurred during activation: %s"
644
  msgstr ""
645
 
646
+ #: app/controllers/PrliUpdateController.php:644
647
  msgid "Invalid response."
648
  msgstr ""
649
 
650
+ #: app/controllers/PrliUpdateController.php:645
651
  msgid "Ajax error."
652
  msgstr ""
653
 
654
+ #: app/controllers/PrliUpdateController.php:646
655
  msgid "Are you sure? Pretty Links will not be functional on %s if this License Key is deactivated."
656
  msgstr ""
657
 
658
+ #: app/controllers/PrliUpdateController.php:648
659
  msgid "An error occurred during deactivation: %s"
660
  msgstr ""
661
 
662
+ #: app/controllers/PrliUpdateController.php:650
663
  msgid "An error occurred while installing the correct edition."
664
  msgstr ""
665
 
666
+ #: app/controllers/PrliUpdateController.php:664
667
  msgid "You do not have access."
668
  msgstr ""
669
 
670
+ #: app/controllers/PrliUpdateController.php:668
671
  msgid "Edge updates couldn't be updated."
672
  msgstr ""
673
 
674
  #. translators: %1$s: open link tag, %2$s: close link tag
675
+ #: app/controllers/PrliUpdateController.php:758
676
  msgid "To restore automatic updates, %1$sinstall the correct edition%2$s of Pretty Links."
677
  msgstr ""
678
 
pretty-link.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Pretty Links
4
  Plugin URI: https://prettylinks.com/pl/plugin-uri
5
  Description: Shrink, track and share any URL using your website and brand!
6
- Version: 3.2.5
7
  Author: Pretty Links
8
  Author URI: http://prettylinks.com
9
  Text Domain: pretty-link
3
  Plugin Name: Pretty Links
4
  Plugin URI: https://prettylinks.com/pl/plugin-uri
5
  Description: Shrink, track and share any URL using your website and brand!
6
+ Version: 3.2.6
7
  Author: Pretty Links
8
  Author URI: http://prettylinks.com
9
  Text Domain: pretty-link
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: supercleanse, cartpauj
3
  Donate link: https://prettylinks.com
4
  Tags: marketing-automation, shortlink, affiliate-marketing, affiliates, cloaker, social-media, marketing, rewrite, links, urls, shortlinks, link branding, link tracking, affiliate links, link cloaking, redirect, forward, shorturl, shorten, shortening, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 5.1
6
- Tested up to: 6.0.1
7
- Stable tag: 3.2.5
8
 
9
  The best WordPress link management, branding, tracking & sharing plugin. Link shortener helps you easily make pretty & trackable shortlinks.
10
 
@@ -66,6 +66,9 @@ http://blairwilliams.com/w7a
66
  3. Make sure you have changed your permalink Common Settings in Settings -> Permalinks away from "Default" to something else. I prefer using custom and then "/%year%/%month%/%postname%/" for the simplest possible URL slugs with the best performance.
67
 
68
  == Changelog ==
 
 
 
69
  = 3.2.5 =
70
  * Fix fatal error if update transient is false
71
  * Notifications Inbox
3
  Donate link: https://prettylinks.com
4
  Tags: marketing-automation, shortlink, affiliate-marketing, affiliates, cloaker, social-media, marketing, rewrite, links, urls, shortlinks, link branding, link tracking, affiliate links, link cloaking, redirect, forward, shorturl, shorten, shortening, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 5.1
6
+ Tested up to: 6.1
7
+ Stable tag: 3.2.6
8
 
9
  The best WordPress link management, branding, tracking & sharing plugin. Link shortener helps you easily make pretty & trackable shortlinks.
10
 
66
  3. Make sure you have changed your permalink Common Settings in Settings -> Permalinks away from "Default" to something else. I prefer using custom and then "/%year%/%month%/%postname%/" for the simplest possible URL slugs with the best performance.
67
 
68
  == Changelog ==
69
+ = 3.2.6 =
70
+ * Fix upgrade to Pro bug
71
+
72
  = 3.2.5 =
73
  * Fix fatal error if update transient is false
74
  * Notifications Inbox