Version Description
- Fix description conflict with the WP Product Review plugin
- Avoid menu position conflicts
- Add Target column to links list table
- Disable auto-saving on links
- Fix links having Draft status on creation
- Fix not being able to Create/Edit links until saving options
- Fix Prettybar color issue when saving plugin options
Download this release
Release Info
Developer | cartpauj |
Plugin | Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.5
- app/controllers/PrliAppController.php +2 -0
- app/controllers/PrliLinksController.php +31 -4
- app/models/PrliOptions.php +15 -0
- app/views/links/form_basic.php +1 -1
- app/views/shared/table-nav.php +6 -6
- i18n/pretty-link.pot +58 -54
- js/admin_link_form.js +1 -0
- pretty-link.php +1 -1
- readme.txt +13 -1
app/controllers/PrliAppController.php
CHANGED
@@ -376,6 +376,8 @@ class PrliAppController extends PrliBaseController {
|
|
376 |
|
377 |
wp_enqueue_script( 'prli-link-form', PRLI_JS_URL . '/admin_link_form.js', array(), PRLI_VERSION);
|
378 |
wp_localize_script( 'prli-link-form', 'PrliLinkValidation', $args );
|
|
|
|
|
379 |
}
|
380 |
}
|
381 |
|
376 |
|
377 |
wp_enqueue_script( 'prli-link-form', PRLI_JS_URL . '/admin_link_form.js', array(), PRLI_VERSION);
|
378 |
wp_localize_script( 'prli-link-form', 'PrliLinkValidation', $args );
|
379 |
+
|
380 |
+
wp_dequeue_script('autosave'); // Disable auto-saving
|
381 |
}
|
382 |
}
|
383 |
|
app/controllers/PrliLinksController.php
CHANGED
@@ -32,6 +32,7 @@ class PrliLinksController extends PrliBaseController {
|
|
32 |
add_action('manage_'.PrliLink::$cpt.'_posts_custom_column', array($this,'custom_columns'), 10, 2);
|
33 |
add_filter('manage_edit-'.PrliLink::$cpt.'_columns', array($this,'columns'));
|
34 |
add_filter('manage_edit-'.PrliLink::$cpt.'_sortable_columns', array($this,'sortable_columns'));
|
|
|
35 |
|
36 |
add_filter('post_row_actions', array($this, 'add_row_actions'), 10, 2);
|
37 |
|
@@ -57,7 +58,7 @@ class PrliLinksController extends PrliBaseController {
|
|
57 |
'parent_item_colon' => esc_html__('Parent Pretty Link:', 'pretty-link')
|
58 |
),
|
59 |
'public' => false,
|
60 |
-
'menu_position' => 55,
|
61 |
'show_ui' => true,
|
62 |
'show_in_admin_bar' => true,
|
63 |
'exclude_from_search' => true,
|
@@ -251,6 +252,7 @@ class PrliLinksController extends PrliBaseController {
|
|
251 |
|
252 |
$_POST['name'] = $_POST['post_title'];
|
253 |
$_POST['url'] = isset($_POST['prli_url']) && is_string($_POST['prli_url']) ? $_POST['prli_url'] : '';
|
|
|
254 |
$_POST['link_cpt_id'] = $post->ID;
|
255 |
|
256 |
if($link_id) {
|
@@ -425,7 +427,7 @@ class PrliLinksController extends PrliBaseController {
|
|
425 |
'settings' => esc_html__('Settings', 'pretty-link'),
|
426 |
'title' => esc_html__('Link Title', 'pretty-link'),
|
427 |
//'slug' => esc_html__('Slug', 'pretty-link'),
|
428 |
-
|
429 |
$category_key => $categories_label,
|
430 |
$tag_key => $tags_label,
|
431 |
'keywords' => $keywords_label,
|
@@ -443,7 +445,8 @@ class PrliLinksController extends PrliBaseController {
|
|
443 |
}
|
444 |
|
445 |
$columns['title'] = 'title';
|
446 |
-
|
|
|
447 |
$columns['date'] = 'date';
|
448 |
|
449 |
return $columns;
|
@@ -499,11 +502,30 @@ class PrliLinksController extends PrliBaseController {
|
|
499 |
echo esc_html(stripslashes($link->slug));
|
500 |
}
|
501 |
elseif('target' == $column) {
|
502 |
-
|
|
|
|
|
|
|
|
|
503 |
}
|
504 |
}
|
505 |
}
|
506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
/**
|
508 |
* Append row actions to list page
|
509 |
* @see add_filter('post_row_actions')
|
@@ -738,6 +760,11 @@ class PrliLinksController extends PrliBaseController {
|
|
738 |
li.name {$order}
|
739 |
";
|
740 |
}
|
|
|
|
|
|
|
|
|
|
|
741 |
}
|
742 |
|
743 |
return $orderby;
|
32 |
add_action('manage_'.PrliLink::$cpt.'_posts_custom_column', array($this,'custom_columns'), 10, 2);
|
33 |
add_filter('manage_edit-'.PrliLink::$cpt.'_columns', array($this,'columns'));
|
34 |
add_filter('manage_edit-'.PrliLink::$cpt.'_sortable_columns', array($this,'sortable_columns'));
|
35 |
+
add_filter('default_hidden_columns', array($this, 'default_hidden_columns'), 10, 2);
|
36 |
|
37 |
add_filter('post_row_actions', array($this, 'add_row_actions'), 10, 2);
|
38 |
|
58 |
'parent_item_colon' => esc_html__('Parent Pretty Link:', 'pretty-link')
|
59 |
),
|
60 |
'public' => false,
|
61 |
+
'menu_position' => 55.5532265,
|
62 |
'show_ui' => true,
|
63 |
'show_in_admin_bar' => true,
|
64 |
'exclude_from_search' => true,
|
252 |
|
253 |
$_POST['name'] = $_POST['post_title'];
|
254 |
$_POST['url'] = isset($_POST['prli_url']) && is_string($_POST['prli_url']) ? $_POST['prli_url'] : '';
|
255 |
+
$_POST['description'] = isset($_POST['prli_description']) && is_string($_POST['prli_description']) ? $_POST['prli_description'] : '';
|
256 |
$_POST['link_cpt_id'] = $post->ID;
|
257 |
|
258 |
if($link_id) {
|
427 |
'settings' => esc_html__('Settings', 'pretty-link'),
|
428 |
'title' => esc_html__('Link Title', 'pretty-link'),
|
429 |
//'slug' => esc_html__('Slug', 'pretty-link'),
|
430 |
+
'target' => esc_html__('Target', 'pretty-link'),
|
431 |
$category_key => $categories_label,
|
432 |
$tag_key => $tags_label,
|
433 |
'keywords' => $keywords_label,
|
445 |
}
|
446 |
|
447 |
$columns['title'] = 'title';
|
448 |
+
//$columns['slug'] = 'slug';
|
449 |
+
$columns['target'] = 'target';
|
450 |
$columns['date'] = 'date';
|
451 |
|
452 |
return $columns;
|
502 |
echo esc_html(stripslashes($link->slug));
|
503 |
}
|
504 |
elseif('target' == $column) {
|
505 |
+
printf(
|
506 |
+
'<a href="%s" target="_blank">%s</a>',
|
507 |
+
esc_url($link->url),
|
508 |
+
esc_url($link->url)
|
509 |
+
);
|
510 |
}
|
511 |
}
|
512 |
}
|
513 |
|
514 |
+
/**
|
515 |
+
* Get the columns that are hidden by default for the links table
|
516 |
+
*
|
517 |
+
* @param array $hidden
|
518 |
+
* @param WP_Screen $screen
|
519 |
+
* @return array
|
520 |
+
*/
|
521 |
+
public function default_hidden_columns($hidden, $screen) {
|
522 |
+
if ($screen && $screen->id == 'edit-pretty-link') {
|
523 |
+
$hidden[] = 'target';
|
524 |
+
}
|
525 |
+
|
526 |
+
return $hidden;
|
527 |
+
}
|
528 |
+
|
529 |
/**
|
530 |
* Append row actions to list page
|
531 |
* @see add_filter('post_row_actions')
|
760 |
li.name {$order}
|
761 |
";
|
762 |
}
|
763 |
+
elseif($_GET['orderby']=='target') {
|
764 |
+
$orderby = "
|
765 |
+
li.url {$order}
|
766 |
+
";
|
767 |
+
}
|
768 |
}
|
769 |
|
770 |
return $orderby;
|
app/models/PrliOptions.php
CHANGED
@@ -222,6 +222,9 @@ class PrliOptions
|
|
222 |
else
|
223 |
$this->prettybar_color = '';
|
224 |
}
|
|
|
|
|
|
|
225 |
else if($this->prettybar_color && !preg_match('/^#/',$this->prettybar_color)) {
|
226 |
$this->prettybar_color = '#' . $this->prettybar_color;
|
227 |
}
|
@@ -235,6 +238,9 @@ class PrliOptions
|
|
235 |
else
|
236 |
$this->prettybar_text_color = '000000';
|
237 |
}
|
|
|
|
|
|
|
238 |
else if($this->prettybar_text_color && !preg_match('/^#/',$this->prettybar_text_color)) {
|
239 |
$this->prettybar_text_color = '#' . $this->prettybar_text_color;
|
240 |
}
|
@@ -248,6 +254,9 @@ class PrliOptions
|
|
248 |
else
|
249 |
$this->prettybar_link_color = '0000ee';
|
250 |
}
|
|
|
|
|
|
|
251 |
else if($this->prettybar_link_color && !preg_match('/^#/',$this->prettybar_link_color)) {
|
252 |
$this->prettybar_link_color = '#' . $this->prettybar_link_color;
|
253 |
}
|
@@ -261,6 +270,9 @@ class PrliOptions
|
|
261 |
else
|
262 |
$this->prettybar_hover_color = 'ababab';
|
263 |
}
|
|
|
|
|
|
|
264 |
else if($this->prettybar_hover_color && !preg_match('/^#/',$this->prettybar_hover_color)) {
|
265 |
$this->prettybar_hover_color = '#' . $this->prettybar_hover_color;
|
266 |
}
|
@@ -274,6 +286,9 @@ class PrliOptions
|
|
274 |
else
|
275 |
$this->prettybar_visited_color = '551a8b';
|
276 |
}
|
|
|
|
|
|
|
277 |
else if($this->prettybar_visited_color && !preg_match('/^#/',$this->prettybar_visited_color)) {
|
278 |
$this->prettybar_visited_color = '#' . $this->prettybar_visited_color;
|
279 |
}
|
222 |
else
|
223 |
$this->prettybar_color = '';
|
224 |
}
|
225 |
+
else if($this->prettybar_color == '#') {
|
226 |
+
$this->prettybar_color = '';
|
227 |
+
}
|
228 |
else if($this->prettybar_color && !preg_match('/^#/',$this->prettybar_color)) {
|
229 |
$this->prettybar_color = '#' . $this->prettybar_color;
|
230 |
}
|
238 |
else
|
239 |
$this->prettybar_text_color = '000000';
|
240 |
}
|
241 |
+
else if($this->prettybar_text_color == '#') {
|
242 |
+
$this->prettybar_text_color = '';
|
243 |
+
}
|
244 |
else if($this->prettybar_text_color && !preg_match('/^#/',$this->prettybar_text_color)) {
|
245 |
$this->prettybar_text_color = '#' . $this->prettybar_text_color;
|
246 |
}
|
254 |
else
|
255 |
$this->prettybar_link_color = '0000ee';
|
256 |
}
|
257 |
+
else if($this->prettybar_link_color == '#') {
|
258 |
+
$this->prettybar_link_color = '';
|
259 |
+
}
|
260 |
else if($this->prettybar_link_color && !preg_match('/^#/',$this->prettybar_link_color)) {
|
261 |
$this->prettybar_link_color = '#' . $this->prettybar_link_color;
|
262 |
}
|
270 |
else
|
271 |
$this->prettybar_hover_color = 'ababab';
|
272 |
}
|
273 |
+
else if($this->prettybar_hover_color == '#') {
|
274 |
+
$this->prettybar_hover_color = '';
|
275 |
+
}
|
276 |
else if($this->prettybar_hover_color && !preg_match('/^#/',$this->prettybar_hover_color)) {
|
277 |
$this->prettybar_hover_color = '#' . $this->prettybar_hover_color;
|
278 |
}
|
286 |
else
|
287 |
$this->prettybar_visited_color = '551a8b';
|
288 |
}
|
289 |
+
else if($this->prettybar_visited_color == '#') {
|
290 |
+
$this->prettybar_visited_color = '';
|
291 |
+
}
|
292 |
else if($this->prettybar_visited_color && !preg_match('/^#/',$this->prettybar_visited_color)) {
|
293 |
$this->prettybar_visited_color = '#' . $this->prettybar_visited_color;
|
294 |
}
|
app/views/links/form_basic.php
CHANGED
@@ -63,7 +63,7 @@
|
|
63 |
); ?>
|
64 |
</th>
|
65 |
<td>
|
66 |
-
<textarea class="large-text" name="
|
67 |
</td>
|
68 |
</tr>
|
69 |
</table>
|
63 |
); ?>
|
64 |
</th>
|
65 |
<td>
|
66 |
+
<textarea class="large-text" name="prli_description"><?php echo esc_textarea($values['description']); ?></textarea>
|
67 |
</td>
|
68 |
</tr>
|
69 |
</table>
|
app/views/shared/table-nav.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<?php
|
3 |
|
4 |
$curr_size = isset($_REQUEST['size']) ? (int) $_REQUEST['size'] : 10;
|
5 |
-
$curr_url = sanitize_text_field($_REQUEST['page']) . $page_params;
|
6 |
|
7 |
// Only show the pager bar if there is more than 1 page
|
8 |
if($page_count > 1)
|
@@ -19,7 +19,7 @@
|
|
19 |
if($current_page > 1)
|
20 |
{
|
21 |
?>
|
22 |
-
<a class="prev page-numbers" href="<?php echo esc_url('
|
23 |
<?php
|
24 |
}
|
25 |
|
@@ -33,7 +33,7 @@
|
|
33 |
else
|
34 |
{
|
35 |
?>
|
36 |
-
<a class="page-numbers" href="<?php echo esc_url('
|
37 |
<?php
|
38 |
}
|
39 |
|
@@ -59,7 +59,7 @@
|
|
59 |
else
|
60 |
{
|
61 |
?>
|
62 |
-
<a class="page-numbers" href="<?php echo esc_url('
|
63 |
<?php
|
64 |
}
|
65 |
}
|
@@ -82,7 +82,7 @@
|
|
82 |
else
|
83 |
{
|
84 |
?>
|
85 |
-
<a class="page-numbers" href="<?php echo esc_url('
|
86 |
<?php
|
87 |
}
|
88 |
|
@@ -90,7 +90,7 @@
|
|
90 |
if($current_page < $page_count)
|
91 |
{
|
92 |
?>
|
93 |
-
<a class="next page-numbers" href="<?php echo esc_url('
|
94 |
<?php
|
95 |
}
|
96 |
?>
|
2 |
<?php
|
3 |
|
4 |
$curr_size = isset($_REQUEST['size']) ? (int) $_REQUEST['size'] : 10;
|
5 |
+
$curr_url = admin_url('edit.php?post_type=' . PrliLink::$cpt . '&page=' . sanitize_text_field($_REQUEST['page']) . $page_params);
|
6 |
|
7 |
// Only show the pager bar if there is more than 1 page
|
8 |
if($page_count > 1)
|
19 |
if($current_page > 1)
|
20 |
{
|
21 |
?>
|
22 |
+
<a class="prev page-numbers" href="<?php echo esc_url(add_query_arg('paged', $current_page - 1, $curr_url)); ?>">«</a>
|
23 |
<?php
|
24 |
}
|
25 |
|
33 |
else
|
34 |
{
|
35 |
?>
|
36 |
+
<a class="page-numbers" href="<?php echo esc_url(add_query_arg('paged', 1, $curr_url)); ?>">1</a>
|
37 |
<?php
|
38 |
}
|
39 |
|
59 |
else
|
60 |
{
|
61 |
?>
|
62 |
+
<a class="page-numbers" href="<?php echo esc_url(add_query_arg('paged', $i, $curr_url)); ?>"><?php echo esc_html($i); ?></a>
|
63 |
<?php
|
64 |
}
|
65 |
}
|
82 |
else
|
83 |
{
|
84 |
?>
|
85 |
+
<a class="page-numbers" href="<?php echo esc_url(add_query_arg('paged', $page_count, $curr_url)); ?>"><?php echo esc_html($page_count); ?></a>
|
86 |
<?php
|
87 |
}
|
88 |
|
90 |
if($current_page < $page_count)
|
91 |
{
|
92 |
?>
|
93 |
+
<a class="next page-numbers" href="<?php echo esc_url(add_query_arg('paged', $current_page + 1, $curr_url)); ?>">»</a>
|
94 |
<?php
|
95 |
}
|
96 |
?>
|
i18n/pretty-link.pot
CHANGED
@@ -2,22 +2,22 @@
|
|
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 |
"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-
|
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"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
#: pro/app/views/links/prettybar.php:68
|
19 |
-
#: app/controllers/PrliLinksController.php:
|
20 |
-
#: app/controllers/PrliLinksController.php:
|
21 |
msgid "Pretty Links"
|
22 |
msgstr ""
|
23 |
|
@@ -64,7 +64,7 @@ msgstr ""
|
|
64 |
#: app/models/PrliClick.php:256
|
65 |
#: app/views/groups/list.php:81
|
66 |
#: app/views/clicks/list.php:4
|
67 |
-
#: app/controllers/PrliLinksController.php:
|
68 |
#: app/controllers/PrliAppController.php:115
|
69 |
msgid "Clicks"
|
70 |
msgstr ""
|
@@ -160,7 +160,7 @@ msgid "Digg"
|
|
160 |
msgstr ""
|
161 |
|
162 |
#: pro/app/models/PlpOptions.php:155
|
163 |
-
#: app/controllers/PrliLinksController.php:
|
164 |
msgid "Email"
|
165 |
msgstr ""
|
166 |
|
@@ -338,7 +338,7 @@ msgstr ""
|
|
338 |
#: pro/app/views/links/form.php:38
|
339 |
#: pro/app/views/links/form.php:73
|
340 |
#: app/models/PrliClick.php:256
|
341 |
-
#: app/controllers/PrliLinksController.php:
|
342 |
msgid "Date"
|
343 |
msgstr ""
|
344 |
|
@@ -387,7 +387,7 @@ msgstr ""
|
|
387 |
|
388 |
#: pro/app/views/links/form.php:133
|
389 |
#: app/views/links/form_pro.php:30
|
390 |
-
#: app/controllers/PrliLinksController.php:
|
391 |
msgid "Keywords"
|
392 |
msgstr ""
|
393 |
|
@@ -859,7 +859,7 @@ msgstr ""
|
|
859 |
#: pro/app/views/reports/list.php:20
|
860 |
#: app/views/groups/list.php:24
|
861 |
#: app/views/clicks/list.php:64
|
862 |
-
#: app/controllers/PrliLinksController.php:
|
863 |
msgid "Reset"
|
864 |
msgstr ""
|
865 |
|
@@ -2122,7 +2122,7 @@ msgid "New Link Category Name"
|
|
2122 |
msgstr ""
|
2123 |
|
2124 |
#: pro/app/controllers/PlpLinkCategoriesController.php:25
|
2125 |
-
#: app/controllers/PrliLinksController.php:
|
2126 |
msgid "Categories"
|
2127 |
msgstr ""
|
2128 |
|
@@ -2218,7 +2218,7 @@ msgid "Unauthorized"
|
|
2218 |
msgstr ""
|
2219 |
|
2220 |
#: pro/app/controllers/PlpPublicLinksController.php:37
|
2221 |
-
#: app/controllers/PrliLinksController.php:
|
2222 |
msgid "Security check failed"
|
2223 |
msgstr ""
|
2224 |
|
@@ -2273,7 +2273,7 @@ msgid "No Link Tags found."
|
|
2273 |
msgstr ""
|
2274 |
|
2275 |
#: pro/app/controllers/PlpLinkTagsController.php:29
|
2276 |
-
#: app/controllers/PrliLinksController.php:
|
2277 |
msgid "Tags"
|
2278 |
msgstr ""
|
2279 |
|
@@ -3327,9 +3327,9 @@ msgstr ""
|
|
3327 |
|
3328 |
#: app/helpers/PrliAppHelper.php:20
|
3329 |
#: app/views/links/form.php:30
|
3330 |
-
#: app/controllers/PrliLinksController.php:
|
3331 |
-
#: app/controllers/PrliLinksController.php:
|
3332 |
-
#: app/controllers/PrliLinksController.php:
|
3333 |
msgid "Pro"
|
3334 |
msgstr ""
|
3335 |
|
@@ -3449,7 +3449,7 @@ msgstr ""
|
|
3449 |
#: app/views/links/form_basic.php:48
|
3450 |
#: app/views/shared/tinymce_form_popup.php:78
|
3451 |
#: app/views/widgets/widget.php:15
|
3452 |
-
#: app/controllers/PrliLinksController.php:
|
3453 |
msgid "Pretty Link"
|
3454 |
msgstr ""
|
3455 |
|
@@ -4884,8 +4884,8 @@ msgid "An unknown error occurred."
|
|
4884 |
msgstr ""
|
4885 |
|
4886 |
#: app/controllers/PrliPopupController.php:93
|
4887 |
-
#: app/controllers/PrliLinksController.php:
|
4888 |
-
#: app/controllers/PrliLinksController.php:
|
4889 |
msgid "Forbidden"
|
4890 |
msgstr ""
|
4891 |
|
@@ -4914,110 +4914,114 @@ msgstr ""
|
|
4914 |
msgid "Pretty Link ID must be set for successful update."
|
4915 |
msgstr ""
|
4916 |
|
4917 |
-
#: app/controllers/PrliLinksController.php:
|
4918 |
msgid "Add New Pretty Link"
|
4919 |
msgstr ""
|
4920 |
|
4921 |
-
#: app/controllers/PrliLinksController.php:
|
4922 |
msgid "Edit Pretty Link"
|
4923 |
msgstr ""
|
4924 |
|
4925 |
-
#: app/controllers/PrliLinksController.php:
|
4926 |
#: js/editor/components/link-editor/index.js:324
|
4927 |
#: js/editor.js:12
|
4928 |
msgid "New Pretty Link"
|
4929 |
msgstr ""
|
4930 |
|
4931 |
-
#: app/controllers/PrliLinksController.php:
|
4932 |
msgid "View Pretty Link"
|
4933 |
msgstr ""
|
4934 |
|
4935 |
-
#: app/controllers/PrliLinksController.php:
|
4936 |
msgid "Search Pretty Links"
|
4937 |
msgstr ""
|
4938 |
|
4939 |
-
#: app/controllers/PrliLinksController.php:
|
4940 |
msgid "No Pretty Links found"
|
4941 |
msgstr ""
|
4942 |
|
4943 |
-
#: app/controllers/PrliLinksController.php:
|
4944 |
msgid "No Pretty Links found in Trash"
|
4945 |
msgstr ""
|
4946 |
|
4947 |
-
#: app/controllers/PrliLinksController.php:
|
4948 |
msgid "Parent Pretty Link:"
|
4949 |
msgstr ""
|
4950 |
|
4951 |
-
#: app/controllers/PrliLinksController.php:
|
4952 |
msgid "Pretty Link Settings"
|
4953 |
msgstr ""
|
4954 |
|
4955 |
-
#: app/controllers/PrliLinksController.php:
|
4956 |
msgid "Pretty Link Cleanup Visitor Locks"
|
4957 |
msgstr ""
|
4958 |
|
4959 |
-
#: app/controllers/PrliLinksController.php:
|
4960 |
msgid "Success!"
|
4961 |
msgstr ""
|
4962 |
|
4963 |
-
#: app/controllers/PrliLinksController.php:
|
4964 |
msgid "Fix the following errors:"
|
4965 |
msgstr ""
|
4966 |
|
4967 |
-
#: app/controllers/PrliLinksController.php:
|
4968 |
msgid "Upgrade to a Pretty Links premium plan to get Link Categories"
|
4969 |
msgstr ""
|
4970 |
|
4971 |
-
#: app/controllers/PrliLinksController.php:
|
4972 |
msgid "Upgrade to a Pretty Links premium plan to get Link Tags"
|
4973 |
msgstr ""
|
4974 |
|
4975 |
-
#: app/controllers/PrliLinksController.php:
|
4976 |
msgid "Upgrade to a Pretty Links premium plan to get Keyword Replacements"
|
4977 |
msgstr ""
|
4978 |
|
4979 |
-
#: app/controllers/PrliLinksController.php:
|
4980 |
msgid "Settings"
|
4981 |
msgstr ""
|
4982 |
|
4983 |
-
#: app/controllers/PrliLinksController.php:
|
4984 |
msgid "Link Title"
|
4985 |
msgstr ""
|
4986 |
|
4987 |
-
#: app/controllers/PrliLinksController.php:
|
|
|
|
|
|
|
|
|
4988 |
msgid "Tweet"
|
4989 |
msgstr ""
|
4990 |
|
4991 |
-
#: app/controllers/PrliLinksController.php:
|
4992 |
msgid "Target »"
|
4993 |
msgstr ""
|
4994 |
|
4995 |
-
#: app/controllers/PrliLinksController.php:
|
4996 |
msgid "Pretty Link »"
|
4997 |
msgstr ""
|
4998 |
|
4999 |
-
#: app/controllers/PrliLinksController.php:
|
5000 |
-
#: app/controllers/PrliLinksController.php:
|
5001 |
msgid "View Split Test Report"
|
5002 |
msgstr ""
|
5003 |
|
5004 |
-
#: app/controllers/PrliLinksController.php:
|
5005 |
msgid "Your Pretty Link was Successfully Reset"
|
5006 |
msgstr ""
|
5007 |
|
5008 |
-
#: app/controllers/PrliLinksController.php:
|
5009 |
msgid "Bad request"
|
5010 |
msgstr ""
|
5011 |
|
5012 |
-
#: app/controllers/PrliLinksController.php:
|
5013 |
msgid "Insufficient permissions"
|
5014 |
msgstr ""
|
5015 |
|
5016 |
-
#: app/controllers/PrliLinksController.php:
|
5017 |
msgid "An error occurred creating the link"
|
5018 |
msgstr ""
|
5019 |
|
5020 |
-
#: app/controllers/PrliLinksController.php:
|
5021 |
msgid "All Groups (Legacy)"
|
5022 |
msgstr ""
|
5023 |
|
@@ -5098,40 +5102,40 @@ msgstr ""
|
|
5098 |
msgid "Buy"
|
5099 |
msgstr ""
|
5100 |
|
5101 |
-
#: app/controllers/PrliAppController.php:
|
5102 |
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."
|
5103 |
msgstr ""
|
5104 |
|
5105 |
#. translators: %1$s: br tag, %2$s: open link tag, %3$s: close link tag
|
5106 |
-
#: app/controllers/PrliAppController.php:
|
5107 |
msgid "You're almost done!%1$s%2$sFinish your Re-Install of Pretty Links Pro%3$s"
|
5108 |
msgstr ""
|
5109 |
|
5110 |
-
#: app/controllers/PrliAppController.php:
|
5111 |
msgid "Pretty Links Pro Successfully Uninstalled."
|
5112 |
msgstr ""
|
5113 |
|
5114 |
-
#: app/controllers/PrliAppController.php:
|
5115 |
msgid "Invalid server response"
|
5116 |
msgstr ""
|
5117 |
|
5118 |
-
#: app/controllers/PrliAppController.php:
|
5119 |
msgid "Ajax error"
|
5120 |
msgstr ""
|
5121 |
|
5122 |
-
#: app/controllers/PrliAppController.php:
|
5123 |
msgid "Pretty Link Quick Add"
|
5124 |
msgstr ""
|
5125 |
|
5126 |
-
#: app/controllers/PrliAppController.php:
|
5127 |
msgid "Your Pretty Links Pro installation isn't quite complete yet. %1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
|
5128 |
msgstr ""
|
5129 |
|
5130 |
-
#: app/controllers/PrliAppController.php:
|
5131 |
msgid "Your Pretty Links Pro installation isn't quite complete yet.<br/>%1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
|
5132 |
msgstr ""
|
5133 |
|
5134 |
#. translators: $1$s - Pretty Links plugin name; $2$s - WP.org review link; $3$s - WP.org review link.
|
5135 |
-
#: app/controllers/PrliAppController.php:
|
5136 |
msgid "Enjoying %1$s? Please rate <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">★★★★★</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!"
|
5137 |
msgstr ""
|
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.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: 2019-07-22T15:38: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"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
#: pro/app/views/links/prettybar.php:68
|
19 |
+
#: app/controllers/PrliLinksController.php:49
|
20 |
+
#: app/controllers/PrliLinksController.php:436
|
21 |
msgid "Pretty Links"
|
22 |
msgstr ""
|
23 |
|
64 |
#: app/models/PrliClick.php:256
|
65 |
#: app/views/groups/list.php:81
|
66 |
#: app/views/clicks/list.php:4
|
67 |
+
#: app/controllers/PrliLinksController.php:434
|
68 |
#: app/controllers/PrliAppController.php:115
|
69 |
msgid "Clicks"
|
70 |
msgstr ""
|
160 |
msgstr ""
|
161 |
|
162 |
#: pro/app/models/PlpOptions.php:155
|
163 |
+
#: app/controllers/PrliLinksController.php:551
|
164 |
msgid "Email"
|
165 |
msgstr ""
|
166 |
|
338 |
#: pro/app/views/links/form.php:38
|
339 |
#: pro/app/views/links/form.php:73
|
340 |
#: app/models/PrliClick.php:256
|
341 |
+
#: app/controllers/PrliLinksController.php:435
|
342 |
msgid "Date"
|
343 |
msgstr ""
|
344 |
|
387 |
|
388 |
#: pro/app/views/links/form.php:133
|
389 |
#: app/views/links/form_pro.php:30
|
390 |
+
#: app/controllers/PrliLinksController.php:397
|
391 |
msgid "Keywords"
|
392 |
msgstr ""
|
393 |
|
859 |
#: pro/app/views/reports/list.php:20
|
860 |
#: app/views/groups/list.php:24
|
861 |
#: app/views/clicks/list.php:64
|
862 |
+
#: app/controllers/PrliLinksController.php:547
|
863 |
msgid "Reset"
|
864 |
msgstr ""
|
865 |
|
2122 |
msgstr ""
|
2123 |
|
2124 |
#: pro/app/controllers/PlpLinkCategoriesController.php:25
|
2125 |
+
#: app/controllers/PrliLinksController.php:395
|
2126 |
msgid "Categories"
|
2127 |
msgstr ""
|
2128 |
|
2218 |
msgstr ""
|
2219 |
|
2220 |
#: pro/app/controllers/PlpPublicLinksController.php:37
|
2221 |
+
#: app/controllers/PrliLinksController.php:617
|
2222 |
msgid "Security check failed"
|
2223 |
msgstr ""
|
2224 |
|
2273 |
msgstr ""
|
2274 |
|
2275 |
#: pro/app/controllers/PlpLinkTagsController.php:29
|
2276 |
+
#: app/controllers/PrliLinksController.php:396
|
2277 |
msgid "Tags"
|
2278 |
msgstr ""
|
2279 |
|
3327 |
|
3328 |
#: app/helpers/PrliAppHelper.php:20
|
3329 |
#: app/views/links/form.php:30
|
3330 |
+
#: app/controllers/PrliLinksController.php:408
|
3331 |
+
#: app/controllers/PrliLinksController.php:414
|
3332 |
+
#: app/controllers/PrliLinksController.php:420
|
3333 |
msgid "Pro"
|
3334 |
msgstr ""
|
3335 |
|
3449 |
#: app/views/links/form_basic.php:48
|
3450 |
#: app/views/shared/tinymce_form_popup.php:78
|
3451 |
#: app/views/widgets/widget.php:15
|
3452 |
+
#: app/controllers/PrliLinksController.php:50
|
3453 |
msgid "Pretty Link"
|
3454 |
msgstr ""
|
3455 |
|
4884 |
msgstr ""
|
4885 |
|
4886 |
#: app/controllers/PrliPopupController.php:93
|
4887 |
+
#: app/controllers/PrliLinksController.php:362
|
4888 |
+
#: app/controllers/PrliLinksController.php:595
|
4889 |
msgid "Forbidden"
|
4890 |
msgstr ""
|
4891 |
|
4914 |
msgid "Pretty Link ID must be set for successful update."
|
4915 |
msgstr ""
|
4916 |
|
4917 |
+
#: app/controllers/PrliLinksController.php:51
|
4918 |
msgid "Add New Pretty Link"
|
4919 |
msgstr ""
|
4920 |
|
4921 |
+
#: app/controllers/PrliLinksController.php:52
|
4922 |
msgid "Edit Pretty Link"
|
4923 |
msgstr ""
|
4924 |
|
4925 |
+
#: app/controllers/PrliLinksController.php:53
|
4926 |
#: js/editor/components/link-editor/index.js:324
|
4927 |
#: js/editor.js:12
|
4928 |
msgid "New Pretty Link"
|
4929 |
msgstr ""
|
4930 |
|
4931 |
+
#: app/controllers/PrliLinksController.php:54
|
4932 |
msgid "View Pretty Link"
|
4933 |
msgstr ""
|
4934 |
|
4935 |
+
#: app/controllers/PrliLinksController.php:55
|
4936 |
msgid "Search Pretty Links"
|
4937 |
msgstr ""
|
4938 |
|
4939 |
+
#: app/controllers/PrliLinksController.php:56
|
4940 |
msgid "No Pretty Links found"
|
4941 |
msgstr ""
|
4942 |
|
4943 |
+
#: app/controllers/PrliLinksController.php:57
|
4944 |
msgid "No Pretty Links found in Trash"
|
4945 |
msgstr ""
|
4946 |
|
4947 |
+
#: app/controllers/PrliLinksController.php:58
|
4948 |
msgid "Parent Pretty Link:"
|
4949 |
msgstr ""
|
4950 |
|
4951 |
+
#: app/controllers/PrliLinksController.php:119
|
4952 |
msgid "Pretty Link Settings"
|
4953 |
msgstr ""
|
4954 |
|
4955 |
+
#: app/controllers/PrliLinksController.php:350
|
4956 |
msgid "Pretty Link Cleanup Visitor Locks"
|
4957 |
msgstr ""
|
4958 |
|
4959 |
+
#: app/controllers/PrliLinksController.php:371
|
4960 |
msgid "Success!"
|
4961 |
msgstr ""
|
4962 |
|
4963 |
+
#: app/controllers/PrliLinksController.php:373
|
4964 |
msgid "Fix the following errors:"
|
4965 |
msgstr ""
|
4966 |
|
4967 |
+
#: app/controllers/PrliLinksController.php:409
|
4968 |
msgid "Upgrade to a Pretty Links premium plan to get Link Categories"
|
4969 |
msgstr ""
|
4970 |
|
4971 |
+
#: app/controllers/PrliLinksController.php:415
|
4972 |
msgid "Upgrade to a Pretty Links premium plan to get Link Tags"
|
4973 |
msgstr ""
|
4974 |
|
4975 |
+
#: app/controllers/PrliLinksController.php:421
|
4976 |
msgid "Upgrade to a Pretty Links premium plan to get Keyword Replacements"
|
4977 |
msgstr ""
|
4978 |
|
4979 |
+
#: app/controllers/PrliLinksController.php:427
|
4980 |
msgid "Settings"
|
4981 |
msgstr ""
|
4982 |
|
4983 |
+
#: app/controllers/PrliLinksController.php:428
|
4984 |
msgid "Link Title"
|
4985 |
msgstr ""
|
4986 |
|
4987 |
+
#: app/controllers/PrliLinksController.php:430
|
4988 |
+
msgid "Target"
|
4989 |
+
msgstr ""
|
4990 |
+
|
4991 |
+
#: app/controllers/PrliLinksController.php:550
|
4992 |
msgid "Tweet"
|
4993 |
msgstr ""
|
4994 |
|
4995 |
+
#: app/controllers/PrliLinksController.php:552
|
4996 |
msgid "Target »"
|
4997 |
msgstr ""
|
4998 |
|
4999 |
+
#: app/controllers/PrliLinksController.php:553
|
5000 |
msgid "Pretty Link »"
|
5001 |
msgstr ""
|
5002 |
|
5003 |
+
#: app/controllers/PrliLinksController.php:575
|
5004 |
+
#: app/controllers/PrliLinksController.php:576
|
5005 |
msgid "View Split Test Report"
|
5006 |
msgstr ""
|
5007 |
|
5008 |
+
#: app/controllers/PrliLinksController.php:601
|
5009 |
msgid "Your Pretty Link was Successfully Reset"
|
5010 |
msgstr ""
|
5011 |
|
5012 |
+
#: app/controllers/PrliLinksController.php:609
|
5013 |
msgid "Bad request"
|
5014 |
msgstr ""
|
5015 |
|
5016 |
+
#: app/controllers/PrliLinksController.php:613
|
5017 |
msgid "Insufficient permissions"
|
5018 |
msgstr ""
|
5019 |
|
5020 |
+
#: app/controllers/PrliLinksController.php:642
|
5021 |
msgid "An error occurred creating the link"
|
5022 |
msgstr ""
|
5023 |
|
5024 |
+
#: app/controllers/PrliLinksController.php:674
|
5025 |
msgid "All Groups (Legacy)"
|
5026 |
msgstr ""
|
5027 |
|
5102 |
msgid "Buy"
|
5103 |
msgstr ""
|
5104 |
|
5105 |
+
#: app/controllers/PrliAppController.php:396
|
5106 |
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."
|
5107 |
msgstr ""
|
5108 |
|
5109 |
#. translators: %1$s: br tag, %2$s: open link tag, %3$s: close link tag
|
5110 |
+
#: app/controllers/PrliAppController.php:501
|
5111 |
msgid "You're almost done!%1$s%2$sFinish your Re-Install of Pretty Links Pro%3$s"
|
5112 |
msgstr ""
|
5113 |
|
5114 |
+
#: app/controllers/PrliAppController.php:516
|
5115 |
msgid "Pretty Links Pro Successfully Uninstalled."
|
5116 |
msgstr ""
|
5117 |
|
5118 |
+
#: app/controllers/PrliAppController.php:565
|
5119 |
msgid "Invalid server response"
|
5120 |
msgstr ""
|
5121 |
|
5122 |
+
#: app/controllers/PrliAppController.php:566
|
5123 |
msgid "Ajax error"
|
5124 |
msgstr ""
|
5125 |
|
5126 |
+
#: app/controllers/PrliAppController.php:583
|
5127 |
msgid "Pretty Link Quick Add"
|
5128 |
msgstr ""
|
5129 |
|
5130 |
+
#: app/controllers/PrliAppController.php:622
|
5131 |
msgid "Your Pretty Links Pro installation isn't quite complete yet. %1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
|
5132 |
msgstr ""
|
5133 |
|
5134 |
+
#: app/controllers/PrliAppController.php:643
|
5135 |
msgid "Your Pretty Links Pro installation isn't quite complete yet.<br/>%1$sAutomatically Upgrade to Enable Pretty Links Pro%2$s"
|
5136 |
msgstr ""
|
5137 |
|
5138 |
#. translators: $1$s - Pretty Links plugin name; $2$s - WP.org review link; $3$s - WP.org review link.
|
5139 |
+
#: app/controllers/PrliAppController.php:691
|
5140 |
msgid "Enjoying %1$s? Please rate <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">★★★★★</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!"
|
5141 |
msgstr ""
|
js/admin_link_form.js
CHANGED
@@ -47,6 +47,7 @@
|
|
47 |
if(data.valid) {
|
48 |
$('#pretty_link_errors').hide();
|
49 |
$(form).triggerHandler('submit.edit-post');
|
|
|
50 |
form.submit();
|
51 |
}
|
52 |
else {
|
47 |
if(data.valid) {
|
48 |
$('#pretty_link_errors').hide();
|
49 |
$(form).triggerHandler('submit.edit-post');
|
50 |
+
$(form).append('<input type="hidden" name="publish" value="Publish">');
|
51 |
form.submit();
|
52 |
}
|
53 |
else {
|
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.
|
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.5
|
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.
|
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,18 @@ 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.3 =
|
68 |
* Fix Avada Fusion Builder conflict
|
69 |
* Fix redirect caching on update/welcome 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.5
|
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.5 =
|
68 |
+
* Fix description conflict with the WP Product Review plugin
|
69 |
+
* Avoid menu position conflicts
|
70 |
+
* Add Target column to links list table
|
71 |
+
* Disable auto-saving on links
|
72 |
+
* Fix links having Draft status on creation
|
73 |
+
* Fix not being able to Create/Edit links until saving options
|
74 |
+
* Fix Prettybar color issue when saving plugin options
|
75 |
+
|
76 |
+
= 3.0.4 =
|
77 |
+
* Fix clicks pagination
|
78 |
+
|
79 |
= 3.0.3 =
|
80 |
* Fix Avada Fusion Builder conflict
|
81 |
* Fix redirect caching on update/welcome page
|