Version Description
- Review notification dismissal improvements
Download this release
Release Info
Developer | cartpauj |
Plugin | Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin |
Version | 3.2.4 |
Comparing to | |
See all releases |
Code changes from version 3.2.4a2 to 3.2.4
- app/controllers/PrliReviewNoticeController.php +33 -10
- i18n/pretty-link.pot +22 -22
- pretty-link.php +1 -1
- readme.txt +6 -3
app/controllers/PrliReviewNoticeController.php
CHANGED
@@ -23,7 +23,9 @@ class PrliReviewNoticeController {
|
|
23 |
'status' => 'removed'
|
24 |
) );
|
25 |
} else if ( 'delay' === $_POST['type'] ) {
|
26 |
-
|
|
|
|
|
27 |
wp_send_json_success( array(
|
28 |
'status' => 'delayed'
|
29 |
) );
|
@@ -38,8 +40,24 @@ class PrliReviewNoticeController {
|
|
38 |
return;
|
39 |
}
|
40 |
|
41 |
-
//
|
42 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
return;
|
44 |
}
|
45 |
|
@@ -60,25 +78,30 @@ class PrliReviewNoticeController {
|
|
60 |
<p><?php _e( 'That\'s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?', 'pretty-link' ); ?></p>
|
61 |
<p style="font-weight: bold;">~ Blair Williams<br>Founder & CEO of Pretty Links</p>
|
62 |
<p>
|
63 |
-
<a style="display: inline-block; margin-right: 10px;" href="https://wordpress.org/support/plugin/pretty-link/reviews/?filter=5#new-post" onclick="delayReviewPrompt('remove')" target="_blank"><?php esc_html_e( 'Okay, you deserve it', 'pretty-link' ); ?></a>
|
64 |
-
<a style="display: inline-block; margin-right: 10px;" href="#" onclick="delayReviewPrompt('delay')"><?php esc_html_e( 'Nope, maybe later', 'pretty-link' ); ?></a>
|
65 |
-
<a href="#" onclick="delayReviewPrompt('remove')"><?php esc_html_e( 'I already did', 'pretty-link' ); ?></a>
|
66 |
</p>
|
67 |
</div>
|
68 |
<div id="prli_review_no" style="display: none;">
|
69 |
<p><?php _e( 'We\'re sorry to hear you aren\'t enjoying Pretty Links. We would love a chance to improve. Could you take a minute and let us know what we can do better?', 'pretty-link' ); ?></p>
|
70 |
<p>
|
71 |
-
<a style="display: inline-block; margin-right: 10px;" href="https://prettylinks.com/feedback/?utm_source=plugin_admin&utm_medium=link&utm_campaign=in_plugin&utm_content=request_review" onclick="delayReviewPrompt('remove')" target="_blank"><?php esc_html_e( 'Give Feedback', 'pretty-link' ); ?></a>
|
72 |
-
<a href="#" onclick="delayReviewPrompt('
|
73 |
</p>
|
74 |
</div>
|
75 |
</div>
|
76 |
<script>
|
77 |
|
78 |
-
function delayReviewPrompt(type, triggerClick = true) {
|
|
|
79 |
if ( triggerClick ) {
|
80 |
jQuery('#prli_review_notice').fadeOut();
|
81 |
}
|
|
|
|
|
|
|
|
|
82 |
jQuery.ajax({
|
83 |
url: ajaxurl,
|
84 |
type: 'POST',
|
@@ -102,7 +125,7 @@ class PrliReviewNoticeController {
|
|
102 |
$('#prli_review_' + selection).show();
|
103 |
});
|
104 |
$('body').on('click', '#prli_review_notice .notice-dismiss', function(event) {
|
105 |
-
delayReviewPrompt('delay', false);
|
106 |
});
|
107 |
});
|
108 |
</script>
|
23 |
'status' => 'removed'
|
24 |
) );
|
25 |
} else if ( 'delay' === $_POST['type'] ) {
|
26 |
+
update_option( 'pl_review_prompt_delay', array(
|
27 |
+
'delayed_until' => time() + WEEK_IN_SECONDS
|
28 |
+
) );
|
29 |
wp_send_json_success( array(
|
30 |
'status' => 'delayed'
|
31 |
) );
|
40 |
return;
|
41 |
}
|
42 |
|
43 |
+
// Check for the constant to disable the prompt
|
44 |
+
if ( defined( 'PL_DISABLE_REVIEW_PROMPT' ) && true == PL_DISABLE_REVIEW_PROMPT ) {
|
45 |
+
return;
|
46 |
+
}
|
47 |
+
|
48 |
+
// Notice has been delayed
|
49 |
+
$delayed_option = get_option( 'pl_review_prompt_delay' );
|
50 |
+
if ( ! empty( $delayed_option['delayed_until'] ) && time() < $delayed_option['delayed_until'] ) {
|
51 |
+
return;
|
52 |
+
}
|
53 |
+
|
54 |
+
// Notice has been removed
|
55 |
+
if ( get_option( 'pl_review_prompt_removed' ) ) {
|
56 |
+
return;
|
57 |
+
}
|
58 |
+
|
59 |
+
// Backwards compat
|
60 |
+
if ( get_transient( 'pl_review_prompt_delay' ) ) {
|
61 |
return;
|
62 |
}
|
63 |
|
78 |
<p><?php _e( 'That\'s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?', 'pretty-link' ); ?></p>
|
79 |
<p style="font-weight: bold;">~ Blair Williams<br>Founder & CEO of Pretty Links</p>
|
80 |
<p>
|
81 |
+
<a style="display: inline-block; margin-right: 10px;" href="https://wordpress.org/support/plugin/pretty-link/reviews/?filter=5#new-post" onclick="delayReviewPrompt(event, 'remove', true, true)" target="_blank"><?php esc_html_e( 'Okay, you deserve it', 'pretty-link' ); ?></a>
|
82 |
+
<a style="display: inline-block; margin-right: 10px;" href="#" onclick="delayReviewPrompt(event, 'delay', true, false)"><?php esc_html_e( 'Nope, maybe later', 'pretty-link' ); ?></a>
|
83 |
+
<a href="#" onclick="delayReviewPrompt(event, 'remove', true, false)"><?php esc_html_e( 'I already did', 'pretty-link' ); ?></a>
|
84 |
</p>
|
85 |
</div>
|
86 |
<div id="prli_review_no" style="display: none;">
|
87 |
<p><?php _e( 'We\'re sorry to hear you aren\'t enjoying Pretty Links. We would love a chance to improve. Could you take a minute and let us know what we can do better?', 'pretty-link' ); ?></p>
|
88 |
<p>
|
89 |
+
<a style="display: inline-block; margin-right: 10px;" href="https://prettylinks.com/feedback/?utm_source=plugin_admin&utm_medium=link&utm_campaign=in_plugin&utm_content=request_review" onclick="delayReviewPrompt(event, 'remove', true, true)" target="_blank"><?php esc_html_e( 'Give Feedback', 'pretty-link' ); ?></a>
|
90 |
+
<a href="#" onclick="delayReviewPrompt(event, 'remove', true, false)"><?php esc_html_e( 'No thanks', 'pretty-link' ); ?></a>
|
91 |
</p>
|
92 |
</div>
|
93 |
</div>
|
94 |
<script>
|
95 |
|
96 |
+
function delayReviewPrompt(event, type, triggerClick = true, openLink = false) {
|
97 |
+
event.preventDefault();
|
98 |
if ( triggerClick ) {
|
99 |
jQuery('#prli_review_notice').fadeOut();
|
100 |
}
|
101 |
+
if ( openLink ) {
|
102 |
+
var href = event.target.href;
|
103 |
+
window.open(href, '_blank');
|
104 |
+
}
|
105 |
jQuery.ajax({
|
106 |
url: ajaxurl,
|
107 |
type: 'POST',
|
125 |
$('#prli_review_' + selection).show();
|
126 |
});
|
127 |
$('body').on('click', '#prli_review_notice .notice-dismiss', function(event) {
|
128 |
+
delayReviewPrompt(event, 'delay', false);
|
129 |
});
|
130 |
});
|
131 |
</script>
|
i18n/pretty-link.pot
CHANGED
@@ -2,16 +2,16 @@
|
|
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 |
"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: 2021-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
-
"X-Generator: WP-CLI 2.
|
15 |
"X-Domain: pretty-link\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
@@ -242,7 +242,7 @@ msgstr ""
|
|
242 |
|
243 |
#: app/controllers/PrliLinksController.php:59
|
244 |
#: app/helpers/PrliLinksHelper.php:171
|
245 |
-
#: app/views/links/form_basic.php:
|
246 |
#: app/views/shared/tinymce_form_popup.php:86
|
247 |
#: app/views/widgets/widget.php:15
|
248 |
msgid "Pretty Link"
|
@@ -329,7 +329,7 @@ msgstr ""
|
|
329 |
|
330 |
#: app/controllers/PrliLinksController.php:432
|
331 |
#: app/controllers/PrliLinksController.php:774
|
332 |
-
#: app/controllers/PrliPopupController.php:
|
333 |
msgid "Forbidden"
|
334 |
msgstr ""
|
335 |
|
@@ -507,52 +507,52 @@ msgstr ""
|
|
507 |
msgid "An unknown error occurred."
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: app/controllers/PrliPopupController.php:
|
511 |
msgid "Must specify a popup"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: app/controllers/PrliPopupController.php:
|
515 |
msgid "Invalid popup"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: app/controllers/PrliPopupController.php:
|
519 |
msgid "The popup was successfully delayed"
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: app/controllers/PrliPopupController.php:
|
523 |
msgid "The popup was successfully stopped"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
527 |
#: app/views/admin/popups/rating.php:8
|
528 |
msgid "Are you enjoying using Pretty Links?"
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
532 |
msgid "That's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?"
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
536 |
msgid "Okay, you deserve it"
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
540 |
msgid "Nope, maybe later"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
544 |
msgid "I already did"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
548 |
msgid "We're sorry to hear you aren't enjoying Pretty Links. We would love a chance to improve. Could you take a minute and let us know what we can do better?"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
552 |
msgid "Give Feedback"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: app/controllers/PrliReviewNoticeController.php:
|
556 |
msgid "No thanks"
|
557 |
msgstr ""
|
558 |
|
@@ -1700,20 +1700,20 @@ msgstr ""
|
|
1700 |
msgid "This is the URL that your Pretty Link will redirect to."
|
1701 |
msgstr ""
|
1702 |
|
1703 |
-
#: app/views/links/form_basic.php:
|
1704 |
msgid "Pretty Link*"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
-
#: app/views/links/form_basic.php:
|
1708 |
msgid "This is how your pretty link will appear. You can edit the Pretty Link slug here."
|
1709 |
msgstr ""
|
1710 |
|
1711 |
-
#: app/views/links/form_basic.php:
|
1712 |
-
#: app/views/links/form_basic.php:
|
1713 |
msgid "Notes"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
-
#: app/views/links/form_basic.php:
|
1717 |
msgid "This is a field where you can enter notes about a particular link. This notes field is mainly for your own link management needs. It isn't currently used anywhere on the front end."
|
1718 |
msgstr ""
|
1719 |
|
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.4\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: 2021-10-28T15:47:49+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: pretty-link\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
242 |
|
243 |
#: app/controllers/PrliLinksController.php:59
|
244 |
#: app/helpers/PrliLinksHelper.php:171
|
245 |
+
#: app/views/links/form_basic.php:49
|
246 |
#: app/views/shared/tinymce_form_popup.php:86
|
247 |
#: app/views/widgets/widget.php:15
|
248 |
msgid "Pretty Link"
|
329 |
|
330 |
#: app/controllers/PrliLinksController.php:432
|
331 |
#: app/controllers/PrliLinksController.php:774
|
332 |
+
#: app/controllers/PrliPopupController.php:95
|
333 |
msgid "Forbidden"
|
334 |
msgstr ""
|
335 |
|
507 |
msgid "An unknown error occurred."
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: app/controllers/PrliPopupController.php:99
|
511 |
msgid "Must specify a popup"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: app/controllers/PrliPopupController.php:105
|
515 |
msgid "Invalid popup"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: app/controllers/PrliPopupController.php:110
|
519 |
msgid "The popup was successfully delayed"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: app/controllers/PrliPopupController.php:114
|
523 |
msgid "The popup was successfully stopped"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: app/controllers/PrliReviewNoticeController.php:74
|
527 |
#: app/views/admin/popups/rating.php:8
|
528 |
msgid "Are you enjoying using Pretty Links?"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: app/controllers/PrliReviewNoticeController.php:78
|
532 |
msgid "That's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: app/controllers/PrliReviewNoticeController.php:81
|
536 |
msgid "Okay, you deserve it"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: app/controllers/PrliReviewNoticeController.php:82
|
540 |
msgid "Nope, maybe later"
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: app/controllers/PrliReviewNoticeController.php:83
|
544 |
msgid "I already did"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: app/controllers/PrliReviewNoticeController.php:87
|
548 |
msgid "We're sorry to hear you aren't enjoying Pretty Links. We would love a chance to improve. Could you take a minute and let us know what we can do better?"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: app/controllers/PrliReviewNoticeController.php:89
|
552 |
msgid "Give Feedback"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: app/controllers/PrliReviewNoticeController.php:90
|
556 |
msgid "No thanks"
|
557 |
msgstr ""
|
558 |
|
1700 |
msgid "This is the URL that your Pretty Link will redirect to."
|
1701 |
msgstr ""
|
1702 |
|
1703 |
+
#: app/views/links/form_basic.php:46
|
1704 |
msgid "Pretty Link*"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
+
#: app/views/links/form_basic.php:50
|
1708 |
msgid "This is how your pretty link will appear. You can edit the Pretty Link slug here."
|
1709 |
msgstr ""
|
1710 |
|
1711 |
+
#: app/views/links/form_basic.php:62
|
1712 |
+
#: app/views/links/form_basic.php:65
|
1713 |
msgid "Notes"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
+
#: app/views/links/form_basic.php:66
|
1717 |
msgid "This is a field where you can enter notes about a particular link. This notes field is mainly for your own link management needs. It isn't currently used anywhere on the front end."
|
1718 |
msgstr ""
|
1719 |
|
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.
|
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.4
|
7 |
Author: Pretty Links
|
8 |
Author URI: http://prettylinks.com
|
9 |
Text Domain: pretty-link
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Pretty Links - Link Management, Branding, Tracking & Sharing Plugin ===
|
2 |
Contributors: supercleanse, cartpauj
|
3 |
Donate link: https://prettylinks.com
|
4 |
-
Tags: links, urls, shortlinks, link branding, link tracking, affiliate links, link cloaking,
|
5 |
Requires at least: 5.1
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 3.2.
|
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.3 =
|
70 |
* Removing vestigial files
|
71 |
|
1 |
=== Pretty Links - Link Management, Branding, Tracking & Sharing Plugin ===
|
2 |
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.1
|
7 |
+
Stable tag: 3.2.4
|
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.4 =
|
70 |
+
* Review notification dismissal improvements
|
71 |
+
|
72 |
= 3.2.3 =
|
73 |
* Removing vestigial files
|
74 |
|