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

Version Description

  • Fix broken Add New link page - theme conflicts
Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

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.0.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: 2019-07-23T14:42:09-06:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.2.0\n"
15
  "X-Domain: pretty-link\n"
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.0.7\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: 2019-07-27T12:33:01-06:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.2.0\n"
15
  "X-Domain: pretty-link\n"
js/admin_link_form.js CHANGED
@@ -77,7 +77,7 @@
77
  }
78
  });
79
 
80
- if ($.fn.tooltipster && window.ClipboardJS) {
81
  var $el = $('.prli-edit-link-clipboard'),
82
  copy_text = PrliLinkValidation.copy_text,
83
  copied_text = PrliLinkValidation.copied_text,
@@ -86,9 +86,11 @@
86
  text: function () {
87
  return PrliLinkValidation.blogurl + PrliLinkValidation.permalink_pre_slug_uri + $('#prli_slug').val();
88
  }
89
- }),
90
- instance = $el
91
- .tooltipster({
 
 
92
  theme: 'tooltipster-borderless',
93
  content: copy_text,
94
  trigger: 'custom',
@@ -100,24 +102,30 @@
100
  mouseenter: true,
101
  touchstart: true
102
  }
103
- })
104
- .tooltipster('instance');
105
-
106
- clipboard
107
- .on('success', function(e) {
108
- instance
109
- .content(copied_text)
110
- .one('after', function(){
111
- instance.content(copy_text);
112
- });
113
- })
114
- .on('error', function(e) {
115
- instance
116
- .content(copy_error_text)
117
- .one('after', function(){
118
- instance.content(copy_text);
119
  });
120
- });
 
 
 
 
 
 
121
  }
122
  });
123
  })(jQuery);
77
  }
78
  });
79
 
80
+ if (window.ClipboardJS) {
81
  var $el = $('.prli-edit-link-clipboard'),
82
  copy_text = PrliLinkValidation.copy_text,
83
  copied_text = PrliLinkValidation.copied_text,
86
  text: function () {
87
  return PrliLinkValidation.blogurl + PrliLinkValidation.permalink_pre_slug_uri + $('#prli_slug').val();
88
  }
89
+ });
90
+
91
+ if ($.fn.tooltipster) {
92
+ try {
93
+ var instance = $el.tooltipster({
94
  theme: 'tooltipster-borderless',
95
  content: copy_text,
96
  trigger: 'custom',
102
  mouseenter: true,
103
  touchstart: true
104
  }
105
+ }).tooltipster('instance');
106
+
107
+ clipboard
108
+ .on('success', function(e) {
109
+ instance
110
+ .content(copied_text)
111
+ .one('after', function(){
112
+ instance.content(copy_text);
113
+ });
114
+ })
115
+ .on('error', function(e) {
116
+ instance
117
+ .content(copy_error_text)
118
+ .one('after', function(){
119
+ instance.content(copy_text);
120
+ });
121
  });
122
+ } catch (e) {
123
+ // With tooltipster <=3.3.0 an error will be caught here, just display a static tooltip
124
+ $el.tooltipster('destroy').tooltipster({
125
+ content: copy_text
126
+ });
127
+ }
128
+ }
129
  }
130
  });
131
  })(jQuery);
js/admin_link_list.js CHANGED
@@ -5,38 +5,46 @@ jQuery(document).ready(function($) {
5
  copy_text = 'Copy to Clipboard',
6
  copied_text = 'Copied!',
7
  copy_error_text = 'Oops, Copy Failed!',
8
- clipboard = new ClipboardJS(el),
9
- instance = $el
10
- .tooltipster({
11
- theme: 'tooltipster-borderless',
12
- content: copy_text,
13
- trigger: 'custom',
14
- triggerClose: {
15
- mouseleave: true,
16
- touchleave: true
17
- },
18
- triggerOpen: {
19
- mouseenter: true,
20
- touchstart: true
21
- }
22
- })
23
- .tooltipster('instance');
 
24
 
25
- clipboard
26
- .on('success', function(e) {
27
- instance
28
- .content(copied_text)
29
- .one('after', function(){
30
- instance.content(copy_text);
31
- });
32
- })
33
- .on('error', function(e) {
34
- instance
35
- .content(copy_error_text)
36
- .one('after', function(){
37
- instance.content(copy_text);
38
- });
 
 
 
 
 
39
  });
 
 
40
  });
41
 
42
  //var clipboardURL = new ClipboardJS('.icon-clipboardjs');
5
  copy_text = 'Copy to Clipboard',
6
  copied_text = 'Copied!',
7
  copy_error_text = 'Oops, Copy Failed!',
8
+ clipboard = new ClipboardJS(el);
9
+
10
+ if ($.fn.tooltipster) {
11
+ try {
12
+ var instance = $el.tooltipster({
13
+ theme: 'tooltipster-borderless',
14
+ content: copy_text,
15
+ trigger: 'custom',
16
+ triggerClose: {
17
+ mouseleave: true,
18
+ touchleave: true
19
+ },
20
+ triggerOpen: {
21
+ mouseenter: true,
22
+ touchstart: true
23
+ }
24
+ }).tooltipster('instance');
25
 
26
+ clipboard
27
+ .on('success', function(e) {
28
+ instance
29
+ .content(copied_text)
30
+ .one('after', function(){
31
+ instance.content(copy_text);
32
+ });
33
+ })
34
+ .on('error', function(e) {
35
+ instance
36
+ .content(copy_error_text)
37
+ .one('after', function(){
38
+ instance.content(copy_text);
39
+ });
40
+ });
41
+ } catch (e) {
42
+ // With tooltipster <=3.3.0 an error will be caught here, just display a static tooltip
43
+ $el.tooltipster('destroy').tooltipster({
44
+ content: copy_text
45
  });
46
+ }
47
+ }
48
  });
49
 
50
  //var clipboardURL = new ClipboardJS('.icon-clipboardjs');
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 on the Internet from your WordPress website!
6
- Version: 3.0.6
7
  Author: Blair Williams
8
  Author URI: http://blairwilliams.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 on the Internet from your WordPress website!
6
+ Version: 3.0.7
7
  Author: Blair Williams
8
  Author URI: http://blairwilliams.com
9
  Text Domain: pretty-link
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://prettylinks.com
4
  Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, redirection, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, 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: 5.2.2
7
- Stable tag: 3.0.6
8
 
9
  Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
10
 
@@ -64,6 +64,9 @@ http://blairwilliams.com/w7a
64
  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.
65
 
66
  == Changelog ==
 
 
 
67
  = 3.0.6 =
68
  * Disable "enter" key on the Target URL field
69
  * Add copy to clipboard to the add/edit link page
4
  Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, redirection, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, 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: 5.2.2
7
+ Stable tag: 3.0.7
8
 
9
  Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
10
 
64
  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.
65
 
66
  == Changelog ==
67
+ = 3.0.7 =
68
+ * Fix broken Add New link page - theme conflicts
69
+
70
  = 3.0.6 =
71
  * Disable "enter" key on the Target URL field
72
  * Add copy to clipboard to the add/edit link page