Permalink Manager Lite - Version 2.2.7.6

Version Description

  • Code optimization for Bulk URI Editor
  • Support for WooCommerce breadcrumbs
  • A hotfix for WPForo plugin
  • New filter "permalink_manager_chunk_size" that allows to control the chunk size in bulk tools ("Regenerate/reset", "Find & Replace")
  • New filter "permalink_manager_sanitize_regex" that allows to adjust the function that sanitizes the custom permalinks
  • Autoload for backup arrays is now disabled
  • New option available - "Convert accented letters"
Download this release

Release Info

Developer mbis
Plugin Icon 128x128 Permalink Manager Lite
Version 2.2.7.6
Comparing to
See all releases

Code changes from version 2.2.7.5 to 2.2.7.6

README.txt CHANGED
@@ -3,17 +3,17 @@ Contributors: mbis
3
  Donate link: https://www.paypal.me/Bismit
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
- Tags: permalinks, custom permalinks, translate permalinks, woocommerce permalinks
7
  Requires at least: 4.4.0
8
  Requires PHP: 5.4
9
  Tested up to: 5.3.1
10
- Stable tag: 2.2.7.5
11
 
12
  Permalink Manager Pro allows to easily change full URL addresses of posts, pages, custom post types, terms and WooCommerce links. You can also set different permalink formats per language or bulk change the URLs.
13
 
14
  == Description ==
15
 
16
- Permalink Manager is a most advanced and highly rated Wordpress permalink plugin that helps Wordpress users to control the URL addresses of all posts, pages, custom post type elements (taxonomies are supported in Pro version). To avoid 404 or duplicated content errors after the new custom permalink is defined, the visitors trying to access the old permalink will be automatically redirected to the new custom URL.
17
 
18
  The plugin supports all custom post types & custom taxonomies and popular 3rd party plugins including WooCommerce, Yoast SEO, WPML, and Polylang. To improve SEO performance even more, the plugin settings provide a possibility to disable the canonical redirect (used natively by Wordpress) and control the trailing slashes settings.
19
 
@@ -66,7 +66,7 @@ You can also install this plugin manually:
66
  After the plugin is installed you can access its dashboard from this page: `Tools -> Permalink Manager`.
67
 
68
  = Single URI editor =
69
- To display the URI editor metabox click on gray "Permalink Editor" displayed below the post/page title.
70
 
71
  == Frequently Asked Questions ==
72
 
@@ -103,6 +103,15 @@ It is because Permalink Manager overwrites one of the core Wordpress functionali
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
 
 
 
106
  = 2.2.7.5 =
107
  * CSS Hotfix. Now the redirects box is displayed correctly in the URI editor
108
 
3
  Donate link: https://www.paypal.me/Bismit
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
+ Tags: permalinks, custom permalinks, url editor, permalinks, woocommerce permalinks
7
  Requires at least: 4.4.0
8
  Requires PHP: 5.4
9
  Tested up to: 5.3.1
10
+ Stable tag: 2.2.7.6
11
 
12
  Permalink Manager Pro allows to easily change full URL addresses of posts, pages, custom post types, terms and WooCommerce links. You can also set different permalink formats per language or bulk change the URLs.
13
 
14
  == Description ==
15
 
16
+ Permalink Manager is a most advanced and highly rated Wordpress permalink editor that helps Wordpress users to control the URL addresses of all posts, pages, custom post type elements (taxonomies are supported in Pro version). To avoid 404 or duplicated content errors after the new custom permalink is defined, the visitors trying to access the old permalink will be automatically redirected to the new custom URL.
17
 
18
  The plugin supports all custom post types & custom taxonomies and popular 3rd party plugins including WooCommerce, Yoast SEO, WPML, and Polylang. To improve SEO performance even more, the plugin settings provide a possibility to disable the canonical redirect (used natively by Wordpress) and control the trailing slashes settings.
19
 
66
  After the plugin is installed you can access its dashboard from this page: `Tools -> Permalink Manager`.
67
 
68
  = Single URI editor =
69
+ To display the URI editor metabox click on gray "Permalink Editor" button displayed below the post/page title.
70
 
71
  == Frequently Asked Questions ==
72
 
103
 
104
  == Changelog ==
105
 
106
+ = 2.2.7.6 =
107
+ * Code optimization for Bulk URI Editor
108
+ * Support for WooCommerce breadcrumbs
109
+ * A hotfix for WPForo plugin
110
+ * New filter "permalink_manager_chunk_size" that allows to control the chunk size in bulk tools ("Regenerate/reset", "Find & Replace")
111
+ * New filter "permalink_manager_sanitize_regex" that allows to adjust the function that sanitizes the custom permalinks
112
+ * Autoload for backup arrays is now disabled
113
+ * New option available - "Convert accented letters"
114
+
115
  = 2.2.7.5 =
116
  * CSS Hotfix. Now the redirects box is displayed correctly in the URI editor
117
 
includes/core/permalink-manager-actions.php CHANGED
@@ -140,7 +140,7 @@ class Permalink_Manager_Actions extends Permalink_Manager_Class {
140
  $progress = get_transient("pm_{$uniq_id}_progress");
141
 
142
  $first_chunk = true;
143
- $chunk_size = 50;
144
 
145
  if(empty($items)) {
146
  $items = $class_name::get_items();
@@ -628,11 +628,11 @@ class Permalink_Manager_Actions extends Permalink_Manager_Class {
628
 
629
  // Backup the custom URIs
630
  if(is_array($permalink_manager_uris)) {
631
- update_option('permalink-manager-uris_backup', $permalink_manager_uris);
632
  }
633
  // Backup the custom redirects
634
  if(is_array($permalink_manager_redirects)) {
635
- update_option('permalink-manager-redirects_backup', $permalink_manager_redirects);
636
  }
637
 
638
  self::clear_all_uris();
140
  $progress = get_transient("pm_{$uniq_id}_progress");
141
 
142
  $first_chunk = true;
143
+ $chunk_size = apply_filters('permalink_manager_chunk_size', 50);
144
 
145
  if(empty($items)) {
146
  $items = $class_name::get_items();
628
 
629
  // Backup the custom URIs
630
  if(is_array($permalink_manager_uris)) {
631
+ update_option('permalink-manager-uris_backup', $permalink_manager_uris, false);
632
  }
633
  // Backup the custom redirects
634
  if(is_array($permalink_manager_redirects)) {
635
+ update_option('permalink-manager-redirects_backup', $permalink_manager_redirects, false);
636
  }
637
 
638
  self::clear_all_uris();
includes/core/permalink-manager-core-functions.php CHANGED
@@ -50,7 +50,6 @@ class Permalink_Manager_Core_Functions extends Permalink_Manager_Class {
50
  global $wpdb, $wp, $wp_rewrite, $permalink_manager, $permalink_manager_uris, $wp_filter, $permalink_manager_options, $pm_query;
51
 
52
  // Check if the array with custom URIs is set
53
- //if(!(is_array($permalink_manager_uris)) || (empty($query) && empty($request_url))) return $query;
54
  if(!(is_array($permalink_manager_uris))) return $query;
55
 
56
  // Used in debug mode & endpoints
@@ -62,7 +61,8 @@ class Permalink_Manager_Core_Functions extends Permalink_Manager_Class {
62
  $request_url = (!empty($request_url)) ? parse_url($request_url, PHP_URL_PATH) : $_SERVER['REQUEST_URI'];
63
  $request_url = strtok($request_url, "?");
64
 
65
- $request_url = sprintf("http://%s%s", str_replace("www.", "", $_SERVER['HTTP_HOST']), $request_url);
 
66
  $raw_home_url = trim(get_option('home'));
67
  $home_url = preg_replace("/http(s)?:\/\/(www\.)?(.+?)\/?$/", "http://$3", $raw_home_url);
68
 
@@ -170,7 +170,6 @@ class Permalink_Manager_Core_Functions extends Permalink_Manager_Class {
170
 
171
  // Atempt 3.
172
  // Check again in case someone used post/tax IDs instead of slugs
173
- //if(empty($element_id) && $deep_detect_enabled && (isset($old_query['page']))) {
174
  if($deep_detect_enabled && is_numeric($endpoint_value) && isset($all_uris["{$uri}/{$endpoint_value}"])) {
175
  $element_id = $all_uris["{$uri}/{$endpoint_value}"];
176
  $endpoint_value = $endpoint = "";
@@ -385,6 +384,7 @@ class Permalink_Manager_Core_Functions extends Permalink_Manager_Class {
385
  } else {
386
  $content_type = '';
387
  }
 
388
  $query = apply_filters('permalink_manager_filter_query', $query, $old_query, $uri_parts, $pm_query, $content_type);
389
 
390
  if($return_object && !empty($term)) {
50
  global $wpdb, $wp, $wp_rewrite, $permalink_manager, $permalink_manager_uris, $wp_filter, $permalink_manager_options, $pm_query;
51
 
52
  // Check if the array with custom URIs is set
 
53
  if(!(is_array($permalink_manager_uris))) return $query;
54
 
55
  // Used in debug mode & endpoints
61
  $request_url = (!empty($request_url)) ? parse_url($request_url, PHP_URL_PATH) : $_SERVER['REQUEST_URI'];
62
  $request_url = strtok($request_url, "?");
63
 
64
+ $http_host = (!empty($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : preg_replace('/www\./i', '', $_SERVER['SERVER_NAME']);
65
+ $request_url = sprintf("http://%s%s", str_replace("www.", "", $http_host), $request_url);
66
  $raw_home_url = trim(get_option('home'));
67
  $home_url = preg_replace("/http(s)?:\/\/(www\.)?(.+?)\/?$/", "http://$3", $raw_home_url);
68
 
170
 
171
  // Atempt 3.
172
  // Check again in case someone used post/tax IDs instead of slugs
 
173
  if($deep_detect_enabled && is_numeric($endpoint_value) && isset($all_uris["{$uri}/{$endpoint_value}"])) {
174
  $element_id = $all_uris["{$uri}/{$endpoint_value}"];
175
  $endpoint_value = $endpoint = "";
384
  } else {
385
  $content_type = '';
386
  }
387
+ $uri_parts = (!empty($uri_parts)) ? $uri_parts : '';
388
  $query = apply_filters('permalink_manager_filter_query', $query, $old_query, $uri_parts, $pm_query, $content_type);
389
 
390
  if($return_object && !empty($term)) {
includes/core/permalink-manager-helper-functions.php CHANGED
@@ -437,10 +437,10 @@ class Permalink_Manager_Helper_Functions extends Permalink_Manager_Class {
437
  }
438
 
439
  /**
440
- * Encode URI and keep slashes
441
  */
442
  static function encode_uri($uri) {
443
- return str_replace("%2F", "/", urlencode($uri));
444
  }
445
 
446
  /**
@@ -460,11 +460,11 @@ class Permalink_Manager_Helper_Functions extends Permalink_Manager_Class {
460
  $clean = trim($str, " /");
461
 
462
  // Remove accents
463
- $clean = remove_accents($clean);
464
 
465
- // $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $clean);
466
  $percent_sign = ($keep_percent_sign) ? "\%" : "";
467
- $clean = preg_replace("/[^\p{L}\p{Thai}\p{Xwd}\p{Hebrew}\p{Arabic}\p{Cyrillic}\p{Greek}a-zA-Z0-9{$percent_sign}\/_\.|+, -]/u", '', $clean);
 
468
  $clean = ($force_lowercase) ? strtolower(trim($clean, '-')) : trim($clean, '-');
469
 
470
  // Remove amperand
437
  }
438
 
439
  /**
440
+ * Encode URI and keep special characters
441
  */
442
  static function encode_uri($uri) {
443
+ return str_replace(array('%2F', '%2C', '%7C', '%2B'), array('/', ',', '|', '+'), urlencode($uri));
444
  }
445
 
446
  /**
460
  $clean = trim($str, " /");
461
 
462
  // Remove accents
463
+ $clean = (empty($permalink_manager_options['general']['keep_accents'])) ? remove_accents($clean) : $clean;
464
 
 
465
  $percent_sign = ($keep_percent_sign) ? "\%" : "";
466
+ $sanitize_regex = apply_filters("permalink_manager_sanitize_regex", "/[^\p{Thai}\p{Hebrew}\p{Arabic}\p{Cyrillic}a-zA-Z0-9{$percent_sign}\/_\.|+, -]/u");
467
+ $clean = preg_replace($sanitize_regex, '', $clean);
468
  $clean = ($force_lowercase) ? strtolower(trim($clean, '-')) : trim($clean, '-');
469
 
470
  // Remove amperand
includes/core/permalink-manager-third-parties.php CHANGED
@@ -108,24 +108,27 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
108
  add_filter('permalink_manager_filter_final_post_permalink', array($this, 'tml_keep_query_parameters'), 9, 3);
109
  }
110
 
111
- // 6. Yoast SEO + RankMath + SEOPress
112
  add_filter('wpseo_xml_sitemap_post_url', array($this, 'yoast_fix_sitemap_urls'), 9);
 
 
113
  add_filter('wpseo_breadcrumb_links', array($this, 'filter_breadcrumbs'), 9);
114
  add_filter('rank_math/frontend/breadcrumb/items', array($this, 'filter_breadcrumbs'), 9);
115
  add_filter('seopress_pro_breadcrumbs_crumbs', array($this, 'filter_breadcrumbs'), 9);
 
116
 
117
- // 7. WooCommerce Wishlist Plugin
118
  if(function_exists('tinv_get_option')) {
119
  add_filter('permalink_manager_detect_uri', array($this, 'ti_woocommerce_wishlist_uris'), 15, 3);
120
  }
121
 
122
- // 8. Revisionize
123
  if(defined('REVISIONIZE_ROOT')) {
124
  add_action('revisionize_after_create_revision', array($this, 'revisionize_keep_post_uri'), 9, 2);
125
  add_action('revisionize_before_publish', array($this,'revisionize_clone_uri'), 9, 2);
126
  }
127
 
128
- // 9. WP All Import
129
  if(class_exists('PMXI_Plugin') && (empty($permalink_manager_options['general']['pmxi_import_support']))) {
130
  add_action('pmxi_extend_options_featured', array($this, 'wpaiextra_uri_display'), 9, 2);
131
  add_filter('pmxi_options_options', array($this, 'wpai_api_options'));
@@ -144,12 +147,12 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
144
  * Some of the hooks must be called shortly after all the plugins are loaded
145
  */
146
  public function init_early_hooks() {
147
- // 1. WP Store Locator
148
  if(class_exists('WPSL_CSV')) {
149
  add_action('added_post_meta', array($this, 'wpsl_regenerate_after_import'), 10, 4);
150
  add_action('updated_post_meta', array($this, 'wpsl_regenerate_after_import'), 10, 4);
151
  }
152
- // 2. Woocommerce
153
  if(class_exists('WooCommerce')) {
154
  add_filter('woocommerce_get_endpoint_url', array('Permalink_Manager_Core_Functions', 'control_trailing_slashes'), 9);
155
  }
@@ -159,7 +162,7 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
159
  * 0. Stop redirect
160
  */
161
  public static function stop_redirect() {
162
- global $wp_query;
163
 
164
  if(!empty($wp_query->query)) {
165
  $query_vars = $wp_query->query;
@@ -185,6 +188,15 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
185
  $wp_query->query_vars['do_not_redirect'] = 1;
186
  }
187
  }
 
 
 
 
 
 
 
 
 
188
  }
189
 
190
  /**
@@ -703,7 +715,7 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
703
 
704
  function filter_breadcrumbs($links) {
705
  // Get post type permastructure settings
706
- global $permalink_manager_uris, $permalink_manager_options, $post, $wpdb, $wp;
707
 
708
  // Check if the filter should be activated
709
  if(empty($permalink_manager_options['general']['yoast_breadcrumbs']) || empty($permalink_manager_uris)) { return $links; }
@@ -729,6 +741,7 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
729
  $snowball = '';
730
  $available_taxonomies = Permalink_Manager_Helper_Functions::get_taxonomies_array();
731
  $available_post_types = Permalink_Manager_Helper_Functions::get_post_types_array();
 
732
 
733
  // Get Yoast Meta (the breadcrumbs titles can be changed in Yoast metabox)
734
  $yoast_meta_terms = get_option('wpseo_taxonomy_meta');
@@ -793,8 +806,8 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
793
  $last_element = end($links);
794
  $breadcrumbs = (!empty($breadcrumbs)) ? $breadcrumbs : array();
795
 
796
- // Support RankMath/SEOPress breadcrumbs
797
- if(class_exists('RankMath') || function_exists('seopress_init')) {
798
  foreach($breadcrumbs as &$breadcrumb) {
799
  if(isset($breadcrumb['text'])) {
800
  $breadcrumb[0] = $breadcrumb['text'];
@@ -905,6 +918,7 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
905
  $functions[PERMALINK_MANAGER_PLUGIN_SLUG] = array($this, 'wpai_api_parse_function');
906
  return $functions;
907
  }
 
908
  function wpai_api_import($functions) {
909
  $functions[PERMALINK_MANAGER_PLUGIN_SLUG] = array($this, 'wpai_api_import_function');
910
  return $functions;
@@ -1002,7 +1016,7 @@ class Permalink_Manager_Third_Parties extends Permalink_Manager_Class {
1002
  }
1003
 
1004
  /**
1005
- * 10. Store Locator - CSV Manager
1006
  */
1007
  public function wpsl_regenerate_after_import($meta_id, $post_id, $meta_key, $meta_value) {
1008
  global $permalink_manager_uris;
108
  add_filter('permalink_manager_filter_final_post_permalink', array($this, 'tml_keep_query_parameters'), 9, 3);
109
  }
110
 
111
+ // 6. Yoast SEO
112
  add_filter('wpseo_xml_sitemap_post_url', array($this, 'yoast_fix_sitemap_urls'), 9);
113
+
114
+ // 7. Breadcrumbs
115
  add_filter('wpseo_breadcrumb_links', array($this, 'filter_breadcrumbs'), 9);
116
  add_filter('rank_math/frontend/breadcrumb/items', array($this, 'filter_breadcrumbs'), 9);
117
  add_filter('seopress_pro_breadcrumbs_crumbs', array($this, 'filter_breadcrumbs'), 9);
118
+ add_filter('woocommerce_get_breadcrumb', array($this, 'filter_breadcrumbs'), 9);
119
 
120
+ // 8. WooCommerce Wishlist Plugin
121
  if(function_exists('tinv_get_option')) {
122
  add_filter('permalink_manager_detect_uri', array($this, 'ti_woocommerce_wishlist_uris'), 15, 3);
123
  }
124
 
125
+ // 9. Revisionize
126
  if(defined('REVISIONIZE_ROOT')) {
127
  add_action('revisionize_after_create_revision', array($this, 'revisionize_keep_post_uri'), 9, 2);
128
  add_action('revisionize_before_publish', array($this,'revisionize_clone_uri'), 9, 2);
129
  }
130
 
131
+ // 10. WP All Import
132
  if(class_exists('PMXI_Plugin') && (empty($permalink_manager_options['general']['pmxi_import_support']))) {
133
  add_action('pmxi_extend_options_featured', array($this, 'wpaiextra_uri_display'), 9, 2);
134
  add_filter('pmxi_options_options', array($this, 'wpai_api_options'));
147
  * Some of the hooks must be called shortly after all the plugins are loaded
148
  */
149
  public function init_early_hooks() {
150
+ // 11. WP Store Locator
151
  if(class_exists('WPSL_CSV')) {
152
  add_action('added_post_meta', array($this, 'wpsl_regenerate_after_import'), 10, 4);
153
  add_action('updated_post_meta', array($this, 'wpsl_regenerate_after_import'), 10, 4);
154
  }
155
+ // 12. Woocommerce
156
  if(class_exists('WooCommerce')) {
157
  add_filter('woocommerce_get_endpoint_url', array('Permalink_Manager_Core_Functions', 'control_trailing_slashes'), 9);
158
  }
162
  * 0. Stop redirect
163
  */
164
  public static function stop_redirect() {
165
+ global $wp_query, $post;
166
 
167
  if(!empty($wp_query->query)) {
168
  $query_vars = $wp_query->query;
188
  $wp_query->query_vars['do_not_redirect'] = 1;
189
  }
190
  }
191
+
192
+ // WPForo
193
+ if(class_exists('wpForo')) {
194
+ $forum_page_id = get_option('wpforo_pageid');
195
+
196
+ if(!empty($forum_page_id) && !empty($post->ID) && $forum_page_id == $post->ID) {
197
+ $wp_query->query_vars['do_not_redirect'] = 1;
198
+ }
199
+ }
200
  }
201
 
202
  /**
715
 
716
  function filter_breadcrumbs($links) {
717
  // Get post type permastructure settings
718
+ global $permalink_manager_uris, $permalink_manager_options, $post, $wpdb, $wp, $wp_current_filter;
719
 
720
  // Check if the filter should be activated
721
  if(empty($permalink_manager_options['general']['yoast_breadcrumbs']) || empty($permalink_manager_uris)) { return $links; }
741
  $snowball = '';
742
  $available_taxonomies = Permalink_Manager_Helper_Functions::get_taxonomies_array();
743
  $available_post_types = Permalink_Manager_Helper_Functions::get_post_types_array();
744
+ $current_filter = end($wp_current_filter);
745
 
746
  // Get Yoast Meta (the breadcrumbs titles can be changed in Yoast metabox)
747
  $yoast_meta_terms = get_option('wpseo_taxonomy_meta');
806
  $last_element = end($links);
807
  $breadcrumbs = (!empty($breadcrumbs)) ? $breadcrumbs : array();
808
 
809
+ // Support RankMath/SEOPress/WooCommerce breadcrumbs
810
+ if(in_array($current_filter, array('wpseo_breadcrumb_links', 'rank_math/frontend/breadcrumb/items', 'seopress_pro_breadcrumbs_crumbs', 'woocommerce_get_breadcrumb'))) {
811
  foreach($breadcrumbs as &$breadcrumb) {
812
  if(isset($breadcrumb['text'])) {
813
  $breadcrumb[0] = $breadcrumb['text'];
918
  $functions[PERMALINK_MANAGER_PLUGIN_SLUG] = array($this, 'wpai_api_parse_function');
919
  return $functions;
920
  }
921
+
922
  function wpai_api_import($functions) {
923
  $functions[PERMALINK_MANAGER_PLUGIN_SLUG] = array($this, 'wpai_api_import_function');
924
  return $functions;
1016
  }
1017
 
1018
  /**
1019
+ * 11. Store Locator - CSV Manager
1020
  */
1021
  public function wpsl_regenerate_after_import($meta_id, $post_id, $meta_key, $meta_value) {
1022
  global $permalink_manager_uris;
includes/core/permalink-manager-uri-functions-post.php CHANGED
@@ -72,7 +72,7 @@ class Permalink_Manager_URI_Functions_Post extends Permalink_Manager_Class {
72
  }
73
  // 2B. Do not change permalink for drafts and future posts (+ remove trailing slash from them)
74
  else if(in_array($post->post_status, array('draft', 'pending', 'auto-draft', 'future'))) {
75
- return trim($permalink, "/");
76
  }
77
 
78
  // 3. Save the old permalink to separate variable
@@ -236,8 +236,8 @@ class Permalink_Manager_URI_Functions_Post extends Permalink_Manager_Class {
236
  $default_uri = str_replace($tags, $tags_replacements, $default_base);
237
 
238
  // 3D. Get the slug tags
239
- $slug_tags = array($post_type_tag, '%postname%', '%postname_flat%', '%native_slug%');
240
- $slug_tags_replacement = array($full_slug, $full_slug, $custom_slug, $full_native_slug);
241
 
242
  // 3E. Check if any post tag is present in custom permastructure
243
  $do_not_append_slug = (!empty($permalink_manager_options['permastructure-settings']['do_not_append_slug']['post_types'][$post_type])) ? true : false;
72
  }
73
  // 2B. Do not change permalink for drafts and future posts (+ remove trailing slash from them)
74
  else if(in_array($post->post_status, array('draft', 'pending', 'auto-draft', 'future'))) {
75
+ return $permalink;
76
  }
77
 
78
  // 3. Save the old permalink to separate variable
236
  $default_uri = str_replace($tags, $tags_replacements, $default_base);
237
 
238
  // 3D. Get the slug tags
239
+ $slug_tags = array($post_type_tag, "%postname%", "%postname_flat%", "%{$post_type}_flat%", "%native_slug%");
240
+ $slug_tags_replacement = array($full_slug, $full_slug, $custom_slug, $custom_slug, $full_native_slug);
241
 
242
  // 3E. Check if any post tag is present in custom permastructure
243
  $do_not_append_slug = (!empty($permalink_manager_options['permastructure-settings']['do_not_append_slug']['post_types'][$post_type])) ? true : false;
includes/views/permalink-manager-settings.php CHANGED
@@ -40,28 +40,23 @@ class Permalink_Manager_Settings extends Permalink_Manager_Class {
40
  'input_class' => '',
41
  'description' => __('If enabled, the custom permalinks will be automatically updated every time the post is saved or updated.', 'permalink-manager')
42
  ),
43
- 'show_native_slug_field' => array(
44
  'type' => 'single_checkbox',
45
- 'label' => __('Show "Native slug" field', 'permalink-manager'),
46
  'input_class' => '',
47
- 'description' => __('If enabled, it would be possible to edit the native slug via URI Editor on single post/term edit page.', 'permalink-manager')
48
  ),
49
- 'pagination_redirect' => array(
50
- 'type' => 'single_checkbox',
51
- 'label' => __('Force 404 on non-existing pagination pages', 'permalink-manager'),
52
- 'input_class' => '',
53
- 'description' => __('If enabled, the non-existing pagination pages (for single posts) will return 404 ("Not Found") error.<br /><strong>Please disable it, if you encounter any problems with pagination pages or use custom pagination system.</strong>', 'permalink-manager')
 
54
  ),
55
- 'sslwww_redirect' => array(
56
- 'type' => 'single_checkbox',
57
- 'label' => __('Force HTTPS in URLs', 'permalink-manager'),
58
- 'input_class' => '',
59
- 'description' => __('<strong>Please disable it, if you encounter any redirect loop issues.</strong>', 'permalink-manager')
60
- )
61
  )
62
  ),
63
  'seo' => array(
64
- 'section_name' => __('SEO functions', 'permalink-manager'),
65
  'container' => 'row',
66
  'name' => 'general',
67
  'fields' => array(
@@ -73,7 +68,7 @@ class Permalink_Manager_Settings extends Permalink_Manager_Class {
73
  ),
74
  'setup_redirects' => array(
75
  'type' => 'single_checkbox',
76
- 'label' => __('Auto-create "Extra Redirects" for old version of permalinks', 'permalink-manager'),
77
  'input_class' => '',
78
  'pro' => true,
79
  'disabled' => true,
@@ -81,7 +76,7 @@ class Permalink_Manager_Settings extends Permalink_Manager_Class {
81
  ),
82
  'redirect' => array(
83
  'type' => 'select',
84
- 'label' => __('Redirect', 'permalink-manager'),
85
  'input_class' => 'settings-select',
86
  'choices' => array(0 => __('Disable', 'permalink-manager'), "301" => __('Enable "301 redirect"', 'permalink-manager'), "302" => __('Enable "302 redirect"', 'permalink-manager')),
87
  'description' => __('If enabled - the visitors will be redirected from native permalinks to your custom permalinks.', 'permalink-manager')
@@ -92,23 +87,23 @@ class Permalink_Manager_Settings extends Permalink_Manager_Class {
92
  'input_class' => 'settings-select',
93
  'choices' => array(0 => __('Use default settings', 'permalink-manager'), 1 => __('Add trailing slashes', 'permalink-manager'), 10 => __('Add trailing slashes (+ auto-redirect links without them)', 'permalink-manager'), 2 => __('Remove trailing slashes', 'permalink-manager'), 20 => __('Remove trailing slashes (+ auto-redirect links with them)', 'permalink-manager'),),
94
  'description' => __('This option can be used to alter the native settings and control if trailing slash should be added or removed from the end of posts & terms permalinks.', 'permalink-manager')
 
 
 
 
 
 
95
  )
96
  )
97
  ),
98
- 'advanced' => array(
99
- 'section_name' => __('Advanced settings', 'permalink-manager'),
100
  'container' => 'row',
101
  'name' => 'general',
102
  'fields' => array(
103
- 'auto_remove_duplicates' => array(
104
- 'type' => 'single_checkbox',
105
- 'label' => __('Automatically remove broken URIs', 'permalink-manager'),
106
- 'input_class' => '',
107
- 'description' => sprintf(__('If enabled, the custom URIs assigned to removed posts & terms will be automatically removed.<br />To manually remove the duplicates please go <a href="%s">to this page</a>.', 'permalink-manager'), admin_url('tools.php?page=permalink-manager&section=tools&subsection=duplicates'))
108
- ),
109
  'fix_language_mismatch' => array(
110
  'type' => 'single_checkbox',
111
- 'label' => __('Fix language mismatch', 'permalink-manager'),
112
  'input_class' => '',
113
  'description' => __('If enabled, the plugin will load the adjacent translation of post when the custom permalink is detected, but the language code in the URL does not match the language code assigned to the post/term.', 'permalink-manager')
114
  ),
@@ -124,25 +119,44 @@ class Permalink_Manager_Settings extends Permalink_Manager_Class {
124
  'input_class' => '',
125
  'description' => __('If checked, the HTML breadcrumbs will be filtered by Permalink Manager to mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and SEOPress breadcrumbs.', 'permalink-manager')
126
  ),
127
- 'force_custom_slugs' => array(
128
- 'type' => 'select',
129
- 'label' => __('Use actual post/term titles (Force custom slugs)', 'permalink-manager'),
130
- 'input_class' => 'settings-select',
131
- 'choices' => array(0 => __('No, use native slugs', 'permalink-manager'), 1 => __('Yes, use post/term titles', 'permalink-manager')),
132
- 'description' => __('If enabled, the slugs in the default custom permalinks will be recreated from the post titles.<br />This may cause permalinks duplicates when the post or term title is used more than once.', 'permalink-manager')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  ),
134
  'disable_slug_sanitization' => array(
135
  'type' => 'select',
136
- 'label' => __('Strip special characters from slugs', 'permalink-manager'),
137
  'input_class' => 'settings-select',
138
  'choices' => array(0 => __('Yes, use native settings', 'permalink-manager'), 1 => __('No, keep special characters (.,|_+) in the slugs', 'permalink-manager')),
139
  'description' => __('If enabled only alphanumeric characters, underscores and dashes will be allowed for post/term slugs.', 'permalink-manager')
140
  ),
141
- 'partial_disable' => array(
142
- 'type' => 'checkbox',
143
- 'label' => __('Exclude content types', 'permalink-manager'),
144
- 'choices' => $content_types,
145
- 'description' => __('Permalink Manager will ignore and not filter the custom permalinks of all selected above post types & taxonomies.', 'permalink-manager')
 
146
  ),
147
  'edit_uris_cap' => array(
148
  'type' => 'select',
40
  'input_class' => '',
41
  'description' => __('If enabled, the custom permalinks will be automatically updated every time the post is saved or updated.', 'permalink-manager')
42
  ),
43
+ 'auto_remove_duplicates' => array(
44
  'type' => 'single_checkbox',
45
+ 'label' => __('Automatically remove broken URIs', 'permalink-manager'),
46
  'input_class' => '',
47
+ 'description' => sprintf(__('If enabled, the custom URIs assigned to removed posts & terms will be automatically removed.<br />To manually remove the duplicates please go <a href="%s">to this page</a>.', 'permalink-manager'), admin_url('tools.php?page=permalink-manager&section=tools&subsection=duplicates'))
48
  ),
49
+ 'force_custom_slugs' => array(
50
+ 'type' => 'select',
51
+ 'label' => __('Use actual post/term titles (Force custom slugs)', 'permalink-manager'),
52
+ 'input_class' => 'settings-select',
53
+ 'choices' => array(0 => __('No, use native slugs', 'permalink-manager'), 1 => __('Yes, use post/term titles', 'permalink-manager')),
54
+ 'description' => __('If enabled, the slugs in the default custom permalinks will be recreated from the post titles.<br />This may cause permalinks duplicates when the post or term title is used more than once.', 'permalink-manager')
55
  ),
 
 
 
 
 
 
56
  )
57
  ),
58
  'seo' => array(
59
+ 'section_name' => __('SEO functions & redirects', 'permalink-manager'),
60
  'container' => 'row',
61
  'name' => 'general',
62
  'fields' => array(
68
  ),
69
  'setup_redirects' => array(
70
  'type' => 'single_checkbox',
71
+ 'label' => __('Redirect old permalinks', 'permalink-manager'),
72
  'input_class' => '',
73
  'pro' => true,
74
  'disabled' => true,
76
  ),
77
  'redirect' => array(
78
  'type' => 'select',
79
+ 'label' => __('Redirect mode', 'permalink-manager'),
80
  'input_class' => 'settings-select',
81
  'choices' => array(0 => __('Disable', 'permalink-manager'), "301" => __('Enable "301 redirect"', 'permalink-manager'), "302" => __('Enable "302 redirect"', 'permalink-manager')),
82
  'description' => __('If enabled - the visitors will be redirected from native permalinks to your custom permalinks.', 'permalink-manager')
87
  'input_class' => 'settings-select',
88
  'choices' => array(0 => __('Use default settings', 'permalink-manager'), 1 => __('Add trailing slashes', 'permalink-manager'), 10 => __('Add trailing slashes (+ auto-redirect links without them)', 'permalink-manager'), 2 => __('Remove trailing slashes', 'permalink-manager'), 20 => __('Remove trailing slashes (+ auto-redirect links with them)', 'permalink-manager'),),
89
  'description' => __('This option can be used to alter the native settings and control if trailing slash should be added or removed from the end of posts & terms permalinks.', 'permalink-manager')
90
+ ),
91
+ 'sslwww_redirect' => array(
92
+ 'type' => 'single_checkbox',
93
+ 'label' => __('Force HTTPS/WWW in URLs', 'permalink-manager'),
94
+ 'input_class' => '',
95
+ 'description' => __('<strong>Please disable it, if you encounter any redirect loop issues.</strong>', 'permalink-manager')
96
  )
97
  )
98
  ),
99
+ 'third_parties' => array(
100
+ 'section_name' => __('Third party plugins', 'permalink-manager'),
101
  'container' => 'row',
102
  'name' => 'general',
103
  'fields' => array(
 
 
 
 
 
 
104
  'fix_language_mismatch' => array(
105
  'type' => 'single_checkbox',
106
+ 'label' => __('Fix WPML/Polylang language mismatch', 'permalink-manager'),
107
  'input_class' => '',
108
  'description' => __('If enabled, the plugin will load the adjacent translation of post when the custom permalink is detected, but the language code in the URL does not match the language code assigned to the post/term.', 'permalink-manager')
109
  ),
119
  'input_class' => '',
120
  'description' => __('If checked, the HTML breadcrumbs will be filtered by Permalink Manager to mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and SEOPress breadcrumbs.', 'permalink-manager')
121
  ),
122
+ 'partial_disable' => array(
123
+ 'type' => 'checkbox',
124
+ 'label' => __('Exclude content types', 'permalink-manager'),
125
+ 'choices' => $content_types,
126
+ 'description' => __('Permalink Manager will ignore and not filter the custom permalinks of all selected above post types & taxonomies.', 'permalink-manager')
127
+ ),
128
+ )
129
+ ),
130
+ 'advanced' => array(
131
+ 'section_name' => __('Advanced settings', 'permalink-manager'),
132
+ 'container' => 'row',
133
+ 'name' => 'general',
134
+ 'fields' => array(
135
+ 'show_native_slug_field' => array(
136
+ 'type' => 'single_checkbox',
137
+ 'label' => __('Show "Native slug" field', 'permalink-manager'),
138
+ 'input_class' => '',
139
+ 'description' => __('If enabled, it would be possible to edit the native slug via URI Editor on single post/term edit page.', 'permalink-manager')
140
+ ),
141
+ 'pagination_redirect' => array(
142
+ 'type' => 'single_checkbox',
143
+ 'label' => __('Force 404 on non-existing pagination pages', 'permalink-manager'),
144
+ 'input_class' => '',
145
+ 'description' => __('If enabled, the non-existing pagination pages (for single posts) will return 404 ("Not Found") error.<br /><strong>Please disable it, if you encounter any problems with pagination pages or use custom pagination system.</strong>', 'permalink-manager')
146
  ),
147
  'disable_slug_sanitization' => array(
148
  'type' => 'select',
149
+ 'label' => __('Strip special characters', 'permalink-manager'),
150
  'input_class' => 'settings-select',
151
  'choices' => array(0 => __('Yes, use native settings', 'permalink-manager'), 1 => __('No, keep special characters (.,|_+) in the slugs', 'permalink-manager')),
152
  'description' => __('If enabled only alphanumeric characters, underscores and dashes will be allowed for post/term slugs.', 'permalink-manager')
153
  ),
154
+ 'keep_accents' => array(
155
+ 'type' => 'select',
156
+ 'label' => __('Convert accented letters', 'permalink-manager'),
157
+ 'input_class' => 'settings-select',
158
+ 'choices' => array(0 => __('Yes, use native settings', 'permalink-manager'), 1 => __('No, keep accented letters in the slugs', 'permalink-manager')),
159
+ 'description' => __('If enabled, all the accented letters will be replaced with their non-accented equivalent (eg. Å => A, Æ => AE, Ø => O, Ć => C).', 'permalink-manager')
160
  ),
161
  'edit_uris_cap' => array(
162
  'type' => 'select',
includes/views/permalink-manager-uri-editor-post.php CHANGED
@@ -123,7 +123,7 @@ class Permalink_Manager_URI_Editor_Post extends WP_List_Table {
123
  /**
124
  * Sort the data
125
  */
126
- private function sort_data( $a, $b ) {
127
  // Set defaults
128
  $orderby = (!empty($_GET['orderby'])) ? $_GET['orderby'] : 'post_title';
129
  $order = (!empty($_GET['order'])) ? $_GET['order'] : 'asc';
@@ -246,22 +246,25 @@ class Permalink_Manager_URI_Editor_Post extends WP_List_Table {
246
  }
247
  $sql_parts['end'] = "ORDER BY {$orderby} {$order}";
248
 
 
249
  $sql_query = implode("", $sql_parts);
250
 
251
- $sql_query = apply_filters('permalink_manager_filter_uri_editor_query', $sql_query, $this, $sql_parts, $is_taxonomy = false);
252
- $all_data = $wpdb->get_results($sql_query, ARRAY_A);
253
-
254
- // How many items?
255
- $total_items = $wpdb->num_rows;
256
 
257
- // Sort posts and count all posts
258
- usort( $all_data, array( &$this, 'sort_data' ) );
259
 
260
- $data = array_slice($all_data, $offset, $per_page);
 
 
261
 
262
  // Debug SQL query
263
- $debug_txt = "<textarea style=\"width:100%;height:300px\">{$sql_query} \n\nOffset: {$offset} \nPage: {$current_page}\nPer page: {$per_page} \nTotal: {$total_items}</textarea>";
264
- if(isset($_REQUEST['debug_editor_sql'])) { wp_die($debug_txt); }
 
 
265
 
266
  $this->set_pagination_args( array(
267
  'total_items' => $total_items,
@@ -269,7 +272,7 @@ class Permalink_Manager_URI_Editor_Post extends WP_List_Table {
269
  ));
270
 
271
  $this->_column_headers = array($columns, $hidden, $sortable);
272
- $this->items = $data;
273
  }
274
 
275
  }
123
  /**
124
  * Sort the data
125
  */
126
+ private function sort_data($a, $b) {
127
  // Set defaults
128
  $orderby = (!empty($_GET['orderby'])) ? $_GET['orderby'] : 'post_title';
129
  $order = (!empty($_GET['order'])) ? $_GET['order'] : 'asc';
246
  }
247
  $sql_parts['end'] = "ORDER BY {$orderby} {$order}";
248
 
249
+ // Prepare the SQL query
250
  $sql_query = implode("", $sql_parts);
251
 
252
+ // Count items
253
+ $count_query = str_replace('SELECT *', 'SELECT COUNT(*)', $sql_query);
254
+ $total_items = $wpdb->get_var($count_query);
 
 
255
 
256
+ // Pagination support
257
+ $sql_query .= sprintf(" LIMIT %d, %d", $offset, $per_page);
258
 
259
+ // Get items
260
+ $sql_query = apply_filters('permalink_manager_filter_uri_editor_query', $sql_query, $this, $sql_parts, $is_taxonomy = false);
261
+ $all_items = $wpdb->get_results($sql_query, ARRAY_A);
262
 
263
  // Debug SQL query
264
+ if(isset($_REQUEST['debug_editor_sql'])) {
265
+ $debug_txt = "<textarea style=\"width:100%;height:300px\">{$sql_query} \n\nOffset: {$offset} \nPage: {$current_page}\nPer page: {$per_page} \nTotal: {$total_items}</textarea>";
266
+ wp_die($debug_txt);
267
+ }
268
 
269
  $this->set_pagination_args( array(
270
  'total_items' => $total_items,
272
  ));
273
 
274
  $this->_column_headers = array($columns, $hidden, $sortable);
275
+ $this->items = $all_items;
276
  }
277
 
278
  }
languages/permalink-manager-ja.mo CHANGED
Binary file
languages/permalink-manager-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Permalink Manager Lite\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-11-18 15:34+0000\n"
6
- "PO-Revision-Date: 2019-11-18 15:34+0000\n"
7
  "Last-Translator: admin <contact@maciejbis.net>\n"
8
  "Language-Team: Japanese\n"
9
  "Language: ja\n"
@@ -12,9 +12,9 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.1; wp-5.3"
16
 
17
- #: permalink-manager.php:198
18
  #, php-format
19
  msgid ""
20
  "Get access to extra features: full taxonomy and WooCommerce support, "
@@ -26,47 +26,47 @@ msgstr ""
26
  "<strong>パーマリンク マネージャー Proの購入は<a href=\"%s\" target=\"_blank\">コチラ</a>! %s "
27
  "の割引 「%s」をご利用下さい。 </strong> %s まで!"
28
 
29
- #: includes/core/permalink-manager-third-parties.php:600
30
  msgid "\"Custom Permalinks\" URIs were imported!"
31
  msgstr "「カスタム パーマリンク」URIは、インポートされました!"
32
 
33
- #: includes/core/permalink-manager-third-parties.php:603
34
  msgid "No \"Custom Permalinks\" URIs were imported!"
35
  msgstr "「カスタム パーマリンク」 URIはインポートされませんでした!"
36
 
37
  #. Name of the plugin
38
- #: includes/core/permalink-manager-third-parties.php:873
39
  #: includes/core/permalink-manager-gutenberg.php:14
40
  #: includes/core/permalink-manager-admin-functions.php:119
41
  #: includes/core/permalink-manager-admin-functions.php:119
42
  #: includes/core/permalink-manager-admin-functions.php:724
43
- #: includes/core/permalink-manager-admin-functions.php:802
44
- #: includes/core/permalink-manager-admin-functions.php:807
45
- #: includes/core/permalink-manager-admin-functions.php:808
46
  msgid "Permalink Manager"
47
  msgstr "パーマリンク マネージャー"
48
 
49
- #: includes/core/permalink-manager-third-parties.php:877
50
- #: includes/core/permalink-manager-uri-functions-tax.php:469
51
  #: includes/views/permalink-manager-tools.php:70
52
  msgid "Custom URI"
53
  msgstr "カスタム URI"
54
 
55
- #: includes/core/permalink-manager-third-parties.php:878
56
  #, php-format
57
  msgid ""
58
  "If empty, a default permalink based on your current <a href=\"%s\" "
59
  "target=\"_blank\">permastructure settings</a> will be used."
60
  msgstr ""
61
 
62
- #: includes/core/permalink-manager-uri-functions-tax.php:470
63
  msgid "Clear/leave the field empty to use the default permalink."
64
  msgstr "デフォルトのパーマリンクを使用するため、フィールドを空のままにする / クリアする"
65
 
66
- #: includes/core/permalink-manager-uri-functions-tax.php:502
67
  #: includes/core/permalink-manager-admin-functions.php:728
68
- #: includes/core/permalink-manager-admin-functions.php:825
69
- #: includes/core/permalink-manager-uri-functions-post.php:649
70
  msgid "Current URI"
71
  msgstr "現在のURI"
72
 
@@ -195,73 +195,73 @@ msgstr "更新されたスラッグのリストは、<a %s>ここをクリック
195
  msgid "<strong>No slugs</strong> were updated!"
196
  msgstr "スラッグは、更新されませんでした。"
197
 
198
- #: includes/core/permalink-manager-admin-functions.php:771
199
- #: includes/core/permalink-manager-admin-functions.php:774
200
  msgid "Yes"
201
  msgstr "はい"
202
 
203
- #: includes/core/permalink-manager-admin-functions.php:771
204
- #: includes/core/permalink-manager-admin-functions.php:775
205
  msgid "No"
206
  msgstr "いいえ"
207
 
208
- #: includes/core/permalink-manager-admin-functions.php:773
209
  #, php-format
210
  msgid "Use global settings [%s]"
211
  msgstr "グローバル設定を使用する [%s]"
212
 
213
- #: includes/core/permalink-manager-admin-functions.php:776
214
  msgid "No (ignore this URI in bulk tools)"
215
  msgstr ""
216
 
217
- #: includes/core/permalink-manager-admin-functions.php:807
218
  msgid "Close: "
219
  msgstr "閉じる:"
220
 
221
- #: includes/core/permalink-manager-admin-functions.php:819
222
  msgid "The custom URI cannot be edited on frontpage."
223
  msgstr "カスタムURIは、フロントページでは編集不可です。"
224
 
225
- #: includes/core/permalink-manager-admin-functions.php:826
226
  msgid ""
227
  "If custom URI is not defined, a default URI will be set (see below). The "
228
  "custom URI can be edited only if 'Auto-update the URI' feature is not "
229
  "enabled."
230
  msgstr ""
231
 
232
- #: includes/core/permalink-manager-admin-functions.php:835
233
  msgid "Native slug"
234
  msgstr ""
235
 
236
- #: includes/core/permalink-manager-admin-functions.php:836
237
  msgid ""
238
  "The native slug is by default automatically used in native permalinks (when "
239
  "Permalink Manager is disabled)."
240
  msgstr ""
241
 
242
- #: includes/core/permalink-manager-admin-functions.php:846
243
  msgid "Auto-update the URI"
244
  msgstr "URIの自動更新"
245
 
246
- #: includes/core/permalink-manager-admin-functions.php:847
247
  msgid ""
248
  "If enabled, the 'Current URI' field will be automatically changed to "
249
  "'Default URI' (displayed below) after the post is saved or updated."
250
  msgstr "有効にすると、「現在のURI」項目は投稿が更新又は保存された後に、(下記に表示された)「デフォルトURI」に自動的に変更されます。"
251
 
252
- #: includes/core/permalink-manager-admin-functions.php:855
253
  msgid "Default URI"
254
  msgstr "デフォルト URI"
255
 
256
- #: includes/core/permalink-manager-admin-functions.php:856
257
  msgid "Restore Default URI"
258
  msgstr ""
259
 
260
- #: includes/core/permalink-manager-admin-functions.php:866
261
  msgid "Automatic redirect for native URI enabled:"
262
  msgstr "ネイティブURIの自動リダイレクトを有効にする:"
263
 
264
- #: includes/core/permalink-manager-admin-functions.php:877
265
  #, php-format
266
  msgid ""
267
  "<span><strong>Need more functionalities and dedicated support?</strong> Buy "
@@ -269,19 +269,19 @@ msgid ""
269
  "permalink-manager-pro/\">PMLITE coupon code</a> to get 10% off.</a></span>"
270
  msgstr ""
271
 
272
- #: includes/core/permalink-manager-admin-functions.php:888
273
  msgid "Save permalink"
274
  msgstr ""
275
 
276
- #: includes/core/permalink-manager-admin-functions.php:915
277
  msgid "Manage redirects"
278
  msgstr "リダイレクトを管理"
279
 
280
- #: includes/core/permalink-manager-admin-functions.php:1011
281
  msgid "URI is already in use, please select another one!"
282
  msgstr "URIは既に使用済みです。他をお選び下さい。"
283
 
284
- #: includes/core/permalink-manager-admin-functions.php:1060
285
  #, php-format
286
  msgid ""
287
  "This functionality is available only in <a href=\"%s\" target=\"_blank\">"
@@ -827,137 +827,135 @@ msgid ""
827
  msgstr "有効にすると、カスタムパーマリンクは投稿が更新 / 保存される度に、自動的に更新されます。"
828
 
829
  #: includes/views/permalink-manager-settings.php:45
830
- msgid "Show \"Native slug\" field"
831
- msgstr ""
832
 
833
  #: includes/views/permalink-manager-settings.php:47
 
834
  msgid ""
835
- "If enabled, it would be possible to edit the native slug via URI Editor on "
836
- "single post/term edit page."
 
837
  msgstr ""
 
 
838
 
839
  #: includes/views/permalink-manager-settings.php:51
840
- msgid "Force 404 on non-existing pagination pages"
841
- msgstr "実在しないページ割付のページに404を強制表示する"
842
 
843
  #: includes/views/permalink-manager-settings.php:53
844
- msgid ""
845
- "If enabled, the non-existing pagination pages (for single posts) will return "
846
- "404 (\"Not Found\") error.<br /><strong>Please disable it, if you encounter "
847
- "any problems with pagination pages or use custom pagination system.</strong>"
848
- msgstr ""
849
- "有効にすると、実在しないページ割付のページ(単一投稿用)に対して、404( \"Not Found\")エラーを返します。<br /><strong>"
850
- "ページ割付のページ、もしくは独自のページ割付システムをご利用で、なんらかの問題が生じた場合は、無効にしてください。</strong>"
851
 
852
- #: includes/views/permalink-manager-settings.php:57
853
- msgid "Force HTTPS in URLs"
854
- msgstr ""
855
 
856
- #: includes/views/permalink-manager-settings.php:59
857
  msgid ""
858
- "<strong>Please disable it, if you encounter any redirect loop issues."
859
- "</strong>"
 
860
  msgstr ""
 
 
861
 
862
- #: includes/views/permalink-manager-settings.php:64
863
- msgid "SEO functions"
864
- msgstr "SEO機能"
865
 
866
- #: includes/views/permalink-manager-settings.php:70
867
  msgid "Canonical redirect"
868
  msgstr "カノニカル リダイレクト"
869
 
870
- #: includes/views/permalink-manager-settings.php:72
871
  msgid ""
872
  "This function allows Wordpress to correct the URLs used by the visitors."
873
  msgstr "この機能は、WordPressに対して訪問者が使用したURLの修正を許可します。"
874
 
875
- #: includes/views/permalink-manager-settings.php:76
876
- msgid "Auto-create \"Extra Redirects\" for old version of permalinks"
877
  msgstr ""
878
 
879
- #: includes/views/permalink-manager-settings.php:80
880
  msgid ""
881
  "If enabled, the redirects will be automatially created for old custom "
882
  "permalinks, after posts or terms URLs are changed."
883
  msgstr ""
884
 
885
- #: includes/views/permalink-manager-settings.php:84
886
- msgid "Redirect"
887
- msgstr "リダイレクト"
888
 
889
- #: includes/views/permalink-manager-settings.php:86
890
  msgid "Disable"
891
  msgstr "無効"
892
 
893
- #: includes/views/permalink-manager-settings.php:86
894
  msgid "Enable \"301 redirect\""
895
  msgstr "「301 リダイレクト」を有効にする"
896
 
897
- #: includes/views/permalink-manager-settings.php:86
898
  msgid "Enable \"302 redirect\""
899
  msgstr "「302 リダイレクト」を有効にする"
900
 
901
- #: includes/views/permalink-manager-settings.php:87
902
  msgid ""
903
  "If enabled - the visitors will be redirected from native permalinks to your "
904
  "custom permalinks."
905
  msgstr ""
906
 
907
- #: includes/views/permalink-manager-settings.php:91
908
  msgid "Trailing slashes"
909
  msgstr "末尾のスラッシュ"
910
 
911
- #: includes/views/permalink-manager-settings.php:93
912
  msgid "Use default settings"
913
  msgstr "デフォルトの設定を使用する"
914
 
915
- #: includes/views/permalink-manager-settings.php:93
916
  msgid "Add trailing slashes"
917
  msgstr "末尾のスラッシュを追加する"
918
 
919
- #: includes/views/permalink-manager-settings.php:93
920
  msgid "Add trailing slashes (+ auto-redirect links without them)"
921
  msgstr "末尾のスラッシュを追加する(+自動リダイレクト リンク、スラッシュあり)"
922
 
923
- #: includes/views/permalink-manager-settings.php:93
924
  msgid "Remove trailing slashes"
925
  msgstr "末尾のスラッシュを削除する"
926
 
927
- #: includes/views/permalink-manager-settings.php:93
928
  msgid "Remove trailing slashes (+ auto-redirect links with them)"
929
  msgstr "末尾のスラッシュを削除する(+自動リダイレクト リンク、スラッシュなし)"
930
 
931
- #: includes/views/permalink-manager-settings.php:94
932
  msgid ""
933
  "This option can be used to alter the native settings and control if trailing "
934
  "slash should be added or removed from the end of posts & terms permalinks."
935
  msgstr ""
936
  "このオプションは、ネイティブの設定を変更し、末尾のスラッシュを投稿・タームのパーマリンクの末尾に、追加・削除するかを制御するために使用できます。"
937
 
938
- #: includes/views/permalink-manager-settings.php:99
939
- msgid "Advanced settings"
940
- msgstr "詳細設定"
941
-
942
- #: includes/views/permalink-manager-settings.php:105
943
- msgid "Automatically remove broken URIs"
944
- msgstr "リンク切れURIを自動的に削除する"
945
 
946
- #: includes/views/permalink-manager-settings.php:107
947
- #, php-format
948
  msgid ""
949
- "If enabled, the custom URIs assigned to removed posts & terms will be "
950
- "automatically removed.<br />To manually remove the duplicates please go <a "
951
- "href=\"%s\">to this page</a>."
 
 
 
952
  msgstr ""
953
- "有効にすると、削除済みの投稿とタームが割り当てられているカスタムURIは、自動的に削除されます。<br />手動で重複を削除する場合は、<a "
954
- "href=\"%s\">コチラ</a>で行えます。"
955
 
956
- #: includes/views/permalink-manager-settings.php:111
957
- msgid "Fix language mismatch"
958
- msgstr "言語の不一致を修正する"
959
 
960
- #: includes/views/permalink-manager-settings.php:113
961
  msgid ""
962
  "If enabled, the plugin will load the adjacent translation of post when the "
963
  "custom permalink is detected, but the language code in the URL does not "
@@ -965,97 +963,118 @@ msgid ""
965
  msgstr ""
966
  "有効にすると、本プラグインはカスタムパーマリンクを検出した際、投稿に用いた言語に近い翻訳を読み込みますが、投稿やタームに割当られた言語コードとURL内言語コードと一致しない場合は読み込みません。"
967
 
968
- #: includes/views/permalink-manager-settings.php:117
969
  msgid "Disable support for WP All Import"
970
  msgstr ""
971
 
972
- #: includes/views/permalink-manager-settings.php:119
973
  msgid ""
974
  "If checked, the custom URIs will not be assigned to the posts imported by Wp "
975
  "All Import Pro plugin."
976
  msgstr ""
977
 
978
- #: includes/views/permalink-manager-settings.php:123
979
  msgid "Filter breadcrumbs"
980
  msgstr ""
981
 
982
- #: includes/views/permalink-manager-settings.php:125
983
  msgid ""
984
  "If checked, the HTML breadcrumbs will be filtered by Permalink Manager to "
985
  "mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and "
986
  "SEOPress breadcrumbs."
987
  msgstr ""
988
 
989
- #: includes/views/permalink-manager-settings.php:129
990
- msgid "Use actual post/term titles (Force custom slugs)"
991
  msgstr ""
992
 
993
- #: includes/views/permalink-manager-settings.php:131
994
- msgid "No, use native slugs"
995
- msgstr "いいえ、ネイティブスラッグを使用する"
 
 
996
 
997
  #: includes/views/permalink-manager-settings.php:131
998
- msgid "Yes, use post/term titles"
999
- msgstr "はい、投稿/ターム タイトルを使用する"
 
 
 
 
1000
 
1001
- #: includes/views/permalink-manager-settings.php:132
1002
  msgid ""
1003
- "If enabled, the slugs in the default custom permalinks will be recreated "
1004
- "from the post titles.<br />This may cause permalinks duplicates when the "
1005
- "post or term title is used more than once."
1006
  msgstr ""
1007
- "有効にすると、デフォルトのカスタムパーマリンク内のスラッグは、投稿タイトルから再作成されます。<br />"
1008
- "この設定は、投稿やタームのタイトルが複数回使用された場合、パーマリンクが重複する可能性があります。"
1009
 
1010
- #: includes/views/permalink-manager-settings.php:136
1011
- msgid "Strip special characters from slugs"
 
 
 
 
 
 
 
1012
  msgstr ""
 
 
1013
 
1014
- #: includes/views/permalink-manager-settings.php:138
 
 
 
 
 
1015
  msgid "Yes, use native settings"
1016
  msgstr ""
1017
 
1018
- #: includes/views/permalink-manager-settings.php:138
1019
  msgid "No, keep special characters (.,|_+) in the slugs"
1020
  msgstr ""
1021
 
1022
- #: includes/views/permalink-manager-settings.php:139
1023
  msgid ""
1024
  "If enabled only alphanumeric characters, underscores and dashes will be "
1025
  "allowed for post/term slugs."
1026
  msgstr ""
1027
 
1028
- #: includes/views/permalink-manager-settings.php:143
1029
- msgid "Exclude content types"
1030
  msgstr ""
1031
 
1032
- #: includes/views/permalink-manager-settings.php:145
 
 
 
 
1033
  msgid ""
1034
- "Permalink Manager will ignore and not filter the custom permalinks of all "
1035
- "selected above post types & taxonomies."
1036
  msgstr ""
1037
 
1038
- #: includes/views/permalink-manager-settings.php:149
1039
  msgid "URI Editor role capability"
1040
  msgstr ""
1041
 
1042
- #: includes/views/permalink-manager-settings.php:150
1043
  msgid "Administrator (edit_theme_options)"
1044
  msgstr ""
1045
 
1046
- #: includes/views/permalink-manager-settings.php:150
1047
  msgid "Editor (publish_pages)"
1048
  msgstr ""
1049
 
1050
- #: includes/views/permalink-manager-settings.php:150
1051
  msgid "Author (publish_posts)"
1052
  msgstr ""
1053
 
1054
- #: includes/views/permalink-manager-settings.php:150
1055
  msgid "Contributor (edit_posts)"
1056
  msgstr ""
1057
 
1058
- #: includes/views/permalink-manager-settings.php:151
1059
  #, php-format
1060
  msgid ""
1061
  "Only the users who have selected capability will be able to access URI "
@@ -1063,7 +1082,7 @@ msgid ""
1063
  "be found here</a>."
1064
  msgstr ""
1065
 
1066
- #: includes/views/permalink-manager-settings.php:157
1067
  msgid "Save settings"
1068
  msgstr "設定を保存する"
1069
 
2
  msgstr ""
3
  "Project-Id-Version: Permalink Manager Lite\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-01-19 19:52+0000\n"
6
+ "PO-Revision-Date: 2020-01-19 19:52+0000\n"
7
  "Last-Translator: admin <contact@maciejbis.net>\n"
8
  "Language-Team: Japanese\n"
9
  "Language: ja\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.3.1; wp-5.3.2"
16
 
17
+ #: permalink-manager.php:199
18
  #, php-format
19
  msgid ""
20
  "Get access to extra features: full taxonomy and WooCommerce support, "
26
  "<strong>パーマリンク マネージャー Proの購入は<a href=\"%s\" target=\"_blank\">コチラ</a>! %s "
27
  "の割引 「%s」をご利用下さい。 </strong> %s まで!"
28
 
29
+ #: includes/core/permalink-manager-third-parties.php:615
30
  msgid "\"Custom Permalinks\" URIs were imported!"
31
  msgstr "「カスタム パーマリンク」URIは、インポートされました!"
32
 
33
+ #: includes/core/permalink-manager-third-parties.php:618
34
  msgid "No \"Custom Permalinks\" URIs were imported!"
35
  msgstr "「カスタム パーマリンク」 URIはインポートされませんでした!"
36
 
37
  #. Name of the plugin
38
+ #: includes/core/permalink-manager-third-parties.php:889
39
  #: includes/core/permalink-manager-gutenberg.php:14
40
  #: includes/core/permalink-manager-admin-functions.php:119
41
  #: includes/core/permalink-manager-admin-functions.php:119
42
  #: includes/core/permalink-manager-admin-functions.php:724
43
+ #: includes/core/permalink-manager-admin-functions.php:805
44
+ #: includes/core/permalink-manager-admin-functions.php:810
45
+ #: includes/core/permalink-manager-admin-functions.php:811
46
  msgid "Permalink Manager"
47
  msgstr "パーマリンク マネージャー"
48
 
49
+ #: includes/core/permalink-manager-third-parties.php:893
50
+ #: includes/core/permalink-manager-uri-functions-tax.php:475
51
  #: includes/views/permalink-manager-tools.php:70
52
  msgid "Custom URI"
53
  msgstr "カスタム URI"
54
 
55
+ #: includes/core/permalink-manager-third-parties.php:894
56
  #, php-format
57
  msgid ""
58
  "If empty, a default permalink based on your current <a href=\"%s\" "
59
  "target=\"_blank\">permastructure settings</a> will be used."
60
  msgstr ""
61
 
62
+ #: includes/core/permalink-manager-uri-functions-tax.php:476
63
  msgid "Clear/leave the field empty to use the default permalink."
64
  msgstr "デフォルトのパーマリンクを使用するため、フィールドを空のままにする / クリアする"
65
 
66
+ #: includes/core/permalink-manager-uri-functions-tax.php:508
67
  #: includes/core/permalink-manager-admin-functions.php:728
68
+ #: includes/core/permalink-manager-admin-functions.php:828
69
+ #: includes/core/permalink-manager-uri-functions-post.php:652
70
  msgid "Current URI"
71
  msgstr "現在のURI"
72
 
195
  msgid "<strong>No slugs</strong> were updated!"
196
  msgstr "スラッグは、更新されませんでした。"
197
 
198
+ #: includes/core/permalink-manager-admin-functions.php:791
199
+ #: includes/core/permalink-manager-admin-functions.php:794
200
  msgid "Yes"
201
  msgstr "はい"
202
 
203
+ #: includes/core/permalink-manager-admin-functions.php:791
204
+ #: includes/core/permalink-manager-admin-functions.php:795
205
  msgid "No"
206
  msgstr "いいえ"
207
 
208
+ #: includes/core/permalink-manager-admin-functions.php:793
209
  #, php-format
210
  msgid "Use global settings [%s]"
211
  msgstr "グローバル設定を使用する [%s]"
212
 
213
+ #: includes/core/permalink-manager-admin-functions.php:796
214
  msgid "No (ignore this URI in bulk tools)"
215
  msgstr ""
216
 
217
+ #: includes/core/permalink-manager-admin-functions.php:810
218
  msgid "Close: "
219
  msgstr "閉じる:"
220
 
221
+ #: includes/core/permalink-manager-admin-functions.php:822
222
  msgid "The custom URI cannot be edited on frontpage."
223
  msgstr "カスタムURIは、フロントページでは編集不可です。"
224
 
225
+ #: includes/core/permalink-manager-admin-functions.php:829
226
  msgid ""
227
  "If custom URI is not defined, a default URI will be set (see below). The "
228
  "custom URI can be edited only if 'Auto-update the URI' feature is not "
229
  "enabled."
230
  msgstr ""
231
 
232
+ #: includes/core/permalink-manager-admin-functions.php:838
233
  msgid "Native slug"
234
  msgstr ""
235
 
236
+ #: includes/core/permalink-manager-admin-functions.php:839
237
  msgid ""
238
  "The native slug is by default automatically used in native permalinks (when "
239
  "Permalink Manager is disabled)."
240
  msgstr ""
241
 
242
+ #: includes/core/permalink-manager-admin-functions.php:849
243
  msgid "Auto-update the URI"
244
  msgstr "URIの自動更新"
245
 
246
+ #: includes/core/permalink-manager-admin-functions.php:850
247
  msgid ""
248
  "If enabled, the 'Current URI' field will be automatically changed to "
249
  "'Default URI' (displayed below) after the post is saved or updated."
250
  msgstr "有効にすると、「現在のURI」項目は投稿が更新又は保存された後に、(下記に表示された)「デフォルトURI」に自動的に変更されます。"
251
 
252
+ #: includes/core/permalink-manager-admin-functions.php:858
253
  msgid "Default URI"
254
  msgstr "デフォルト URI"
255
 
256
+ #: includes/core/permalink-manager-admin-functions.php:859
257
  msgid "Restore Default URI"
258
  msgstr ""
259
 
260
+ #: includes/core/permalink-manager-admin-functions.php:869
261
  msgid "Automatic redirect for native URI enabled:"
262
  msgstr "ネイティブURIの自動リダイレクトを有効にする:"
263
 
264
+ #: includes/core/permalink-manager-admin-functions.php:880
265
  #, php-format
266
  msgid ""
267
  "<span><strong>Need more functionalities and dedicated support?</strong> Buy "
269
  "permalink-manager-pro/\">PMLITE coupon code</a> to get 10% off.</a></span>"
270
  msgstr ""
271
 
272
+ #: includes/core/permalink-manager-admin-functions.php:891
273
  msgid "Save permalink"
274
  msgstr ""
275
 
276
+ #: includes/core/permalink-manager-admin-functions.php:918
277
  msgid "Manage redirects"
278
  msgstr "リダイレクトを管理"
279
 
280
+ #: includes/core/permalink-manager-admin-functions.php:1014
281
  msgid "URI is already in use, please select another one!"
282
  msgstr "URIは既に使用済みです。他をお選び下さい。"
283
 
284
+ #: includes/core/permalink-manager-admin-functions.php:1063
285
  #, php-format
286
  msgid ""
287
  "This functionality is available only in <a href=\"%s\" target=\"_blank\">"
827
  msgstr "有効にすると、カスタムパーマリンクは投稿が更新 / 保存される度に、自動的に更新されます。"
828
 
829
  #: includes/views/permalink-manager-settings.php:45
830
+ msgid "Automatically remove broken URIs"
831
+ msgstr "リンク切れURIを自動的に削除する"
832
 
833
  #: includes/views/permalink-manager-settings.php:47
834
+ #, php-format
835
  msgid ""
836
+ "If enabled, the custom URIs assigned to removed posts & terms will be "
837
+ "automatically removed.<br />To manually remove the duplicates please go <a "
838
+ "href=\"%s\">to this page</a>."
839
  msgstr ""
840
+ "有効にすると、削除済みの投稿とタームが割り当てられているカスタムURIは、自動的に削除されます。<br />手動で重複を削除する場合は、<a "
841
+ "href=\"%s\">コチラ</a>で行えます。"
842
 
843
  #: includes/views/permalink-manager-settings.php:51
844
+ msgid "Use actual post/term titles (Force custom slugs)"
845
+ msgstr ""
846
 
847
  #: includes/views/permalink-manager-settings.php:53
848
+ msgid "No, use native slugs"
849
+ msgstr "いいえ、ネイティブスラッグを使用する"
 
 
 
 
 
850
 
851
+ #: includes/views/permalink-manager-settings.php:53
852
+ msgid "Yes, use post/term titles"
853
+ msgstr "はい、投稿/ターム タイトルを使用する"
854
 
855
+ #: includes/views/permalink-manager-settings.php:54
856
  msgid ""
857
+ "If enabled, the slugs in the default custom permalinks will be recreated "
858
+ "from the post titles.<br />This may cause permalinks duplicates when the "
859
+ "post or term title is used more than once."
860
  msgstr ""
861
+ "有効にすると、デフォルトのカスタムパーマリンク内のスラッグは、投稿タイトルから再作成されます。<br />"
862
+ "この設定は、投稿やタームのタイトルが複数回使用された場合、パーマリンクが重複する可能性があります。"
863
 
864
+ #: includes/views/permalink-manager-settings.php:59
865
+ msgid "SEO functions & redirects"
866
+ msgstr ""
867
 
868
+ #: includes/views/permalink-manager-settings.php:65
869
  msgid "Canonical redirect"
870
  msgstr "カノニカル リダイレクト"
871
 
872
+ #: includes/views/permalink-manager-settings.php:67
873
  msgid ""
874
  "This function allows Wordpress to correct the URLs used by the visitors."
875
  msgstr "この機能は、WordPressに対して訪問者が使用したURLの修正を許可します。"
876
 
877
+ #: includes/views/permalink-manager-settings.php:71
878
+ msgid "Redirect old permalinks"
879
  msgstr ""
880
 
881
+ #: includes/views/permalink-manager-settings.php:75
882
  msgid ""
883
  "If enabled, the redirects will be automatially created for old custom "
884
  "permalinks, after posts or terms URLs are changed."
885
  msgstr ""
886
 
887
+ #: includes/views/permalink-manager-settings.php:79
888
+ msgid "Redirect mode"
889
+ msgstr ""
890
 
891
+ #: includes/views/permalink-manager-settings.php:81
892
  msgid "Disable"
893
  msgstr "無効"
894
 
895
+ #: includes/views/permalink-manager-settings.php:81
896
  msgid "Enable \"301 redirect\""
897
  msgstr "「301 リダイレクト」を有効にする"
898
 
899
+ #: includes/views/permalink-manager-settings.php:81
900
  msgid "Enable \"302 redirect\""
901
  msgstr "「302 リダイレクト」を有効にする"
902
 
903
+ #: includes/views/permalink-manager-settings.php:82
904
  msgid ""
905
  "If enabled - the visitors will be redirected from native permalinks to your "
906
  "custom permalinks."
907
  msgstr ""
908
 
909
+ #: includes/views/permalink-manager-settings.php:86
910
  msgid "Trailing slashes"
911
  msgstr "末尾のスラッシュ"
912
 
913
+ #: includes/views/permalink-manager-settings.php:88
914
  msgid "Use default settings"
915
  msgstr "デフォルトの設定を使用する"
916
 
917
+ #: includes/views/permalink-manager-settings.php:88
918
  msgid "Add trailing slashes"
919
  msgstr "末尾のスラッシュを追加する"
920
 
921
+ #: includes/views/permalink-manager-settings.php:88
922
  msgid "Add trailing slashes (+ auto-redirect links without them)"
923
  msgstr "末尾のスラッシュを追加する(+自動リダイレクト リンク、スラッシュあり)"
924
 
925
+ #: includes/views/permalink-manager-settings.php:88
926
  msgid "Remove trailing slashes"
927
  msgstr "末尾のスラッシュを削除する"
928
 
929
+ #: includes/views/permalink-manager-settings.php:88
930
  msgid "Remove trailing slashes (+ auto-redirect links with them)"
931
  msgstr "末尾のスラッシュを削除する(+自動リダイレクト リンク、スラッシュなし)"
932
 
933
+ #: includes/views/permalink-manager-settings.php:89
934
  msgid ""
935
  "This option can be used to alter the native settings and control if trailing "
936
  "slash should be added or removed from the end of posts & terms permalinks."
937
  msgstr ""
938
  "このオプションは、ネイティブの設定を変更し、末尾のスラッシュを投稿・タームのパーマリンクの末尾に、追加・削除するかを制御するために使用できます。"
939
 
940
+ #: includes/views/permalink-manager-settings.php:93
941
+ msgid "Force HTTPS/WWW in URLs"
942
+ msgstr ""
 
 
 
 
943
 
944
+ #: includes/views/permalink-manager-settings.php:95
 
945
  msgid ""
946
+ "<strong>Please disable it, if you encounter any redirect loop issues."
947
+ "</strong>"
948
+ msgstr ""
949
+
950
+ #: includes/views/permalink-manager-settings.php:100
951
+ msgid "Third party plugins"
952
  msgstr ""
 
 
953
 
954
+ #: includes/views/permalink-manager-settings.php:106
955
+ msgid "Fix WPML/Polylang language mismatch"
956
+ msgstr ""
957
 
958
+ #: includes/views/permalink-manager-settings.php:108
959
  msgid ""
960
  "If enabled, the plugin will load the adjacent translation of post when the "
961
  "custom permalink is detected, but the language code in the URL does not "
963
  msgstr ""
964
  "有効にすると、本プラグインはカスタムパーマリンクを検出した際、投稿に用いた言語に近い翻訳を読み込みますが、投稿やタームに割当られた言語コードとURL内言語コードと一致しない場合は読み込みません。"
965
 
966
+ #: includes/views/permalink-manager-settings.php:112
967
  msgid "Disable support for WP All Import"
968
  msgstr ""
969
 
970
+ #: includes/views/permalink-manager-settings.php:114
971
  msgid ""
972
  "If checked, the custom URIs will not be assigned to the posts imported by Wp "
973
  "All Import Pro plugin."
974
  msgstr ""
975
 
976
+ #: includes/views/permalink-manager-settings.php:118
977
  msgid "Filter breadcrumbs"
978
  msgstr ""
979
 
980
+ #: includes/views/permalink-manager-settings.php:120
981
  msgid ""
982
  "If checked, the HTML breadcrumbs will be filtered by Permalink Manager to "
983
  "mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and "
984
  "SEOPress breadcrumbs."
985
  msgstr ""
986
 
987
+ #: includes/views/permalink-manager-settings.php:124
988
+ msgid "Exclude content types"
989
  msgstr ""
990
 
991
+ #: includes/views/permalink-manager-settings.php:126
992
+ msgid ""
993
+ "Permalink Manager will ignore and not filter the custom permalinks of all "
994
+ "selected above post types & taxonomies."
995
+ msgstr ""
996
 
997
  #: includes/views/permalink-manager-settings.php:131
998
+ msgid "Advanced settings"
999
+ msgstr "詳細設定"
1000
+
1001
+ #: includes/views/permalink-manager-settings.php:137
1002
+ msgid "Show \"Native slug\" field"
1003
+ msgstr ""
1004
 
1005
+ #: includes/views/permalink-manager-settings.php:139
1006
  msgid ""
1007
+ "If enabled, it would be possible to edit the native slug via URI Editor on "
1008
+ "single post/term edit page."
 
1009
  msgstr ""
 
 
1010
 
1011
+ #: includes/views/permalink-manager-settings.php:143
1012
+ msgid "Force 404 on non-existing pagination pages"
1013
+ msgstr "実在しないページ割付のページに404を強制表示する"
1014
+
1015
+ #: includes/views/permalink-manager-settings.php:145
1016
+ msgid ""
1017
+ "If enabled, the non-existing pagination pages (for single posts) will return "
1018
+ "404 (\"Not Found\") error.<br /><strong>Please disable it, if you encounter "
1019
+ "any problems with pagination pages or use custom pagination system.</strong>"
1020
  msgstr ""
1021
+ "有効にすると、実在しないページ割付のページ(単一投稿用)に対して、404( \"Not Found\")エラーを返します。<br /><strong>"
1022
+ "ページ割付のページ、もしくは独自のページ割付システムをご利用で、なんらかの問題が生じた場合は、無効にしてください。</strong>"
1023
 
1024
+ #: includes/views/permalink-manager-settings.php:149
1025
+ msgid "Strip special characters"
1026
+ msgstr ""
1027
+
1028
+ #: includes/views/permalink-manager-settings.php:151
1029
+ #: includes/views/permalink-manager-settings.php:158
1030
  msgid "Yes, use native settings"
1031
  msgstr ""
1032
 
1033
+ #: includes/views/permalink-manager-settings.php:151
1034
  msgid "No, keep special characters (.,|_+) in the slugs"
1035
  msgstr ""
1036
 
1037
+ #: includes/views/permalink-manager-settings.php:152
1038
  msgid ""
1039
  "If enabled only alphanumeric characters, underscores and dashes will be "
1040
  "allowed for post/term slugs."
1041
  msgstr ""
1042
 
1043
+ #: includes/views/permalink-manager-settings.php:156
1044
+ msgid "Convert accented letters"
1045
  msgstr ""
1046
 
1047
+ #: includes/views/permalink-manager-settings.php:158
1048
+ msgid "No, keep accented letters in the slugs"
1049
+ msgstr ""
1050
+
1051
+ #: includes/views/permalink-manager-settings.php:159
1052
  msgid ""
1053
+ "If enabled, all the accented letters will be replaced with their non-"
1054
+ "accented equivalent (eg. Å => A, Æ => AE, Ø => O, Ć => C)."
1055
  msgstr ""
1056
 
1057
+ #: includes/views/permalink-manager-settings.php:163
1058
  msgid "URI Editor role capability"
1059
  msgstr ""
1060
 
1061
+ #: includes/views/permalink-manager-settings.php:164
1062
  msgid "Administrator (edit_theme_options)"
1063
  msgstr ""
1064
 
1065
+ #: includes/views/permalink-manager-settings.php:164
1066
  msgid "Editor (publish_pages)"
1067
  msgstr ""
1068
 
1069
+ #: includes/views/permalink-manager-settings.php:164
1070
  msgid "Author (publish_posts)"
1071
  msgstr ""
1072
 
1073
+ #: includes/views/permalink-manager-settings.php:164
1074
  msgid "Contributor (edit_posts)"
1075
  msgstr ""
1076
 
1077
+ #: includes/views/permalink-manager-settings.php:165
1078
  #, php-format
1079
  msgid ""
1080
  "Only the users who have selected capability will be able to access URI "
1082
  "be found here</a>."
1083
  msgstr ""
1084
 
1085
+ #: includes/views/permalink-manager-settings.php:171
1086
  msgid "Save settings"
1087
  msgstr "設定を保存する"
1088
 
languages/permalink-manager.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2019-11-18 15:34+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
- #: permalink-manager.php:198
18
  #, php-format
19
  msgid ""
20
  "Get access to extra features: full taxonomy and WooCommerce support, "
@@ -23,47 +23,47 @@ msgid ""
23
  "and save %s using \"%s\" coupon code!</strong> Valid until %s!"
24
  msgstr ""
25
 
26
- #: includes/core/permalink-manager-third-parties.php:600
27
  msgid "\"Custom Permalinks\" URIs were imported!"
28
  msgstr ""
29
 
30
- #: includes/core/permalink-manager-third-parties.php:603
31
  msgid "No \"Custom Permalinks\" URIs were imported!"
32
  msgstr ""
33
 
34
  #. Name of the plugin
35
- #: includes/core/permalink-manager-third-parties.php:873
36
  #: includes/core/permalink-manager-gutenberg.php:14
37
  #: includes/core/permalink-manager-admin-functions.php:119
38
  #: includes/core/permalink-manager-admin-functions.php:119
39
  #: includes/core/permalink-manager-admin-functions.php:724
40
- #: includes/core/permalink-manager-admin-functions.php:802
41
- #: includes/core/permalink-manager-admin-functions.php:807
42
- #: includes/core/permalink-manager-admin-functions.php:808
43
  msgid "Permalink Manager"
44
  msgstr ""
45
 
46
- #: includes/core/permalink-manager-third-parties.php:877
47
- #: includes/core/permalink-manager-uri-functions-tax.php:469
48
  #: includes/views/permalink-manager-tools.php:70
49
  msgid "Custom URI"
50
  msgstr ""
51
 
52
- #: includes/core/permalink-manager-third-parties.php:878
53
  #, php-format
54
  msgid ""
55
  "If empty, a default permalink based on your current <a href=\"%s\" "
56
  "target=\"_blank\">permastructure settings</a> will be used."
57
  msgstr ""
58
 
59
- #: includes/core/permalink-manager-uri-functions-tax.php:470
60
  msgid "Clear/leave the field empty to use the default permalink."
61
  msgstr ""
62
 
63
- #: includes/core/permalink-manager-uri-functions-tax.php:502
64
  #: includes/core/permalink-manager-admin-functions.php:728
65
- #: includes/core/permalink-manager-admin-functions.php:825
66
- #: includes/core/permalink-manager-uri-functions-post.php:649
67
  msgid "Current URI"
68
  msgstr ""
69
 
@@ -192,73 +192,73 @@ msgstr ""
192
  msgid "<strong>No slugs</strong> were updated!"
193
  msgstr ""
194
 
195
- #: includes/core/permalink-manager-admin-functions.php:771
196
- #: includes/core/permalink-manager-admin-functions.php:774
197
  msgid "Yes"
198
  msgstr ""
199
 
200
- #: includes/core/permalink-manager-admin-functions.php:771
201
- #: includes/core/permalink-manager-admin-functions.php:775
202
  msgid "No"
203
  msgstr ""
204
 
205
- #: includes/core/permalink-manager-admin-functions.php:773
206
  #, php-format
207
  msgid "Use global settings [%s]"
208
  msgstr ""
209
 
210
- #: includes/core/permalink-manager-admin-functions.php:776
211
  msgid "No (ignore this URI in bulk tools)"
212
  msgstr ""
213
 
214
- #: includes/core/permalink-manager-admin-functions.php:807
215
  msgid "Close: "
216
  msgstr ""
217
 
218
- #: includes/core/permalink-manager-admin-functions.php:819
219
  msgid "The custom URI cannot be edited on frontpage."
220
  msgstr ""
221
 
222
- #: includes/core/permalink-manager-admin-functions.php:826
223
  msgid ""
224
  "If custom URI is not defined, a default URI will be set (see below). The "
225
  "custom URI can be edited only if 'Auto-update the URI' feature is not "
226
  "enabled."
227
  msgstr ""
228
 
229
- #: includes/core/permalink-manager-admin-functions.php:835
230
  msgid "Native slug"
231
  msgstr ""
232
 
233
- #: includes/core/permalink-manager-admin-functions.php:836
234
  msgid ""
235
  "The native slug is by default automatically used in native permalinks (when "
236
  "Permalink Manager is disabled)."
237
  msgstr ""
238
 
239
- #: includes/core/permalink-manager-admin-functions.php:846
240
  msgid "Auto-update the URI"
241
  msgstr ""
242
 
243
- #: includes/core/permalink-manager-admin-functions.php:847
244
  msgid ""
245
  "If enabled, the 'Current URI' field will be automatically changed to "
246
  "'Default URI' (displayed below) after the post is saved or updated."
247
  msgstr ""
248
 
249
- #: includes/core/permalink-manager-admin-functions.php:855
250
  msgid "Default URI"
251
  msgstr ""
252
 
253
- #: includes/core/permalink-manager-admin-functions.php:856
254
  msgid "Restore Default URI"
255
  msgstr ""
256
 
257
- #: includes/core/permalink-manager-admin-functions.php:866
258
  msgid "Automatic redirect for native URI enabled:"
259
  msgstr ""
260
 
261
- #: includes/core/permalink-manager-admin-functions.php:877
262
  #, php-format
263
  msgid ""
264
  "<span><strong>Need more functionalities and dedicated support?</strong> Buy "
@@ -266,19 +266,19 @@ msgid ""
266
  "permalink-manager-pro/\">PMLITE coupon code</a> to get 10% off.</a></span>"
267
  msgstr ""
268
 
269
- #: includes/core/permalink-manager-admin-functions.php:888
270
  msgid "Save permalink"
271
  msgstr ""
272
 
273
- #: includes/core/permalink-manager-admin-functions.php:915
274
  msgid "Manage redirects"
275
  msgstr ""
276
 
277
- #: includes/core/permalink-manager-admin-functions.php:1011
278
  msgid "URI is already in use, please select another one!"
279
  msgstr ""
280
 
281
- #: includes/core/permalink-manager-admin-functions.php:1060
282
  #, php-format
283
  msgid ""
284
  "This functionality is available only in <a href=\"%s\" target=\"_blank\">"
@@ -810,227 +810,246 @@ msgid ""
810
  msgstr ""
811
 
812
  #: includes/views/permalink-manager-settings.php:45
813
- msgid "Show \"Native slug\" field"
814
  msgstr ""
815
 
816
  #: includes/views/permalink-manager-settings.php:47
 
817
  msgid ""
818
- "If enabled, it would be possible to edit the native slug via URI Editor on "
819
- "single post/term edit page."
 
820
  msgstr ""
821
 
822
  #: includes/views/permalink-manager-settings.php:51
823
- msgid "Force 404 on non-existing pagination pages"
824
  msgstr ""
825
 
826
  #: includes/views/permalink-manager-settings.php:53
827
- msgid ""
828
- "If enabled, the non-existing pagination pages (for single posts) will return "
829
- "404 (\"Not Found\") error.<br /><strong>Please disable it, if you encounter "
830
- "any problems with pagination pages or use custom pagination system.</strong>"
831
  msgstr ""
832
 
833
- #: includes/views/permalink-manager-settings.php:57
834
- msgid "Force HTTPS in URLs"
835
  msgstr ""
836
 
837
- #: includes/views/permalink-manager-settings.php:59
838
  msgid ""
839
- "<strong>Please disable it, if you encounter any redirect loop issues."
840
- "</strong>"
 
841
  msgstr ""
842
 
843
- #: includes/views/permalink-manager-settings.php:64
844
- msgid "SEO functions"
845
  msgstr ""
846
 
847
- #: includes/views/permalink-manager-settings.php:70
848
  msgid "Canonical redirect"
849
  msgstr ""
850
 
851
- #: includes/views/permalink-manager-settings.php:72
852
  msgid ""
853
  "This function allows Wordpress to correct the URLs used by the visitors."
854
  msgstr ""
855
 
856
- #: includes/views/permalink-manager-settings.php:76
857
- msgid "Auto-create \"Extra Redirects\" for old version of permalinks"
858
  msgstr ""
859
 
860
- #: includes/views/permalink-manager-settings.php:80
861
  msgid ""
862
  "If enabled, the redirects will be automatially created for old custom "
863
  "permalinks, after posts or terms URLs are changed."
864
  msgstr ""
865
 
866
- #: includes/views/permalink-manager-settings.php:84
867
- msgid "Redirect"
868
  msgstr ""
869
 
870
- #: includes/views/permalink-manager-settings.php:86
871
  msgid "Disable"
872
  msgstr ""
873
 
874
- #: includes/views/permalink-manager-settings.php:86
875
  msgid "Enable \"301 redirect\""
876
  msgstr ""
877
 
878
- #: includes/views/permalink-manager-settings.php:86
879
  msgid "Enable \"302 redirect\""
880
  msgstr ""
881
 
882
- #: includes/views/permalink-manager-settings.php:87
883
  msgid ""
884
  "If enabled - the visitors will be redirected from native permalinks to your "
885
  "custom permalinks."
886
  msgstr ""
887
 
888
- #: includes/views/permalink-manager-settings.php:91
889
  msgid "Trailing slashes"
890
  msgstr ""
891
 
892
- #: includes/views/permalink-manager-settings.php:93
893
  msgid "Use default settings"
894
  msgstr ""
895
 
896
- #: includes/views/permalink-manager-settings.php:93
897
  msgid "Add trailing slashes"
898
  msgstr ""
899
 
900
- #: includes/views/permalink-manager-settings.php:93
901
  msgid "Add trailing slashes (+ auto-redirect links without them)"
902
  msgstr ""
903
 
904
- #: includes/views/permalink-manager-settings.php:93
905
  msgid "Remove trailing slashes"
906
  msgstr ""
907
 
908
- #: includes/views/permalink-manager-settings.php:93
909
  msgid "Remove trailing slashes (+ auto-redirect links with them)"
910
  msgstr ""
911
 
912
- #: includes/views/permalink-manager-settings.php:94
913
  msgid ""
914
  "This option can be used to alter the native settings and control if trailing "
915
  "slash should be added or removed from the end of posts & terms permalinks."
916
  msgstr ""
917
 
918
- #: includes/views/permalink-manager-settings.php:99
919
- msgid "Advanced settings"
920
  msgstr ""
921
 
922
- #: includes/views/permalink-manager-settings.php:105
923
- msgid "Automatically remove broken URIs"
 
 
924
  msgstr ""
925
 
926
- #: includes/views/permalink-manager-settings.php:107
927
- #, php-format
928
- msgid ""
929
- "If enabled, the custom URIs assigned to removed posts & terms will be "
930
- "automatically removed.<br />To manually remove the duplicates please go <a "
931
- "href=\"%s\">to this page</a>."
932
  msgstr ""
933
 
934
- #: includes/views/permalink-manager-settings.php:111
935
- msgid "Fix language mismatch"
936
  msgstr ""
937
 
938
- #: includes/views/permalink-manager-settings.php:113
939
  msgid ""
940
  "If enabled, the plugin will load the adjacent translation of post when the "
941
  "custom permalink is detected, but the language code in the URL does not "
942
  "match the language code assigned to the post/term."
943
  msgstr ""
944
 
945
- #: includes/views/permalink-manager-settings.php:117
946
  msgid "Disable support for WP All Import"
947
  msgstr ""
948
 
949
- #: includes/views/permalink-manager-settings.php:119
950
  msgid ""
951
  "If checked, the custom URIs will not be assigned to the posts imported by Wp "
952
  "All Import Pro plugin."
953
  msgstr ""
954
 
955
- #: includes/views/permalink-manager-settings.php:123
956
  msgid "Filter breadcrumbs"
957
  msgstr ""
958
 
959
- #: includes/views/permalink-manager-settings.php:125
960
  msgid ""
961
  "If checked, the HTML breadcrumbs will be filtered by Permalink Manager to "
962
  "mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and "
963
  "SEOPress breadcrumbs."
964
  msgstr ""
965
 
966
- #: includes/views/permalink-manager-settings.php:129
967
- msgid "Use actual post/term titles (Force custom slugs)"
968
  msgstr ""
969
 
970
- #: includes/views/permalink-manager-settings.php:131
971
- msgid "No, use native slugs"
 
 
972
  msgstr ""
973
 
974
  #: includes/views/permalink-manager-settings.php:131
975
- msgid "Yes, use post/term titles"
 
 
 
 
976
  msgstr ""
977
 
978
- #: includes/views/permalink-manager-settings.php:132
979
  msgid ""
980
- "If enabled, the slugs in the default custom permalinks will be recreated "
981
- "from the post titles.<br />This may cause permalinks duplicates when the "
982
- "post or term title is used more than once."
983
  msgstr ""
984
 
985
- #: includes/views/permalink-manager-settings.php:136
986
- msgid "Strip special characters from slugs"
987
  msgstr ""
988
 
989
- #: includes/views/permalink-manager-settings.php:138
 
 
 
 
 
 
 
 
 
 
 
 
990
  msgid "Yes, use native settings"
991
  msgstr ""
992
 
993
- #: includes/views/permalink-manager-settings.php:138
994
  msgid "No, keep special characters (.,|_+) in the slugs"
995
  msgstr ""
996
 
997
- #: includes/views/permalink-manager-settings.php:139
998
  msgid ""
999
  "If enabled only alphanumeric characters, underscores and dashes will be "
1000
  "allowed for post/term slugs."
1001
  msgstr ""
1002
 
1003
- #: includes/views/permalink-manager-settings.php:143
1004
- msgid "Exclude content types"
1005
  msgstr ""
1006
 
1007
- #: includes/views/permalink-manager-settings.php:145
 
 
 
 
1008
  msgid ""
1009
- "Permalink Manager will ignore and not filter the custom permalinks of all "
1010
- "selected above post types & taxonomies."
1011
  msgstr ""
1012
 
1013
- #: includes/views/permalink-manager-settings.php:149
1014
  msgid "URI Editor role capability"
1015
  msgstr ""
1016
 
1017
- #: includes/views/permalink-manager-settings.php:150
1018
  msgid "Administrator (edit_theme_options)"
1019
  msgstr ""
1020
 
1021
- #: includes/views/permalink-manager-settings.php:150
1022
  msgid "Editor (publish_pages)"
1023
  msgstr ""
1024
 
1025
- #: includes/views/permalink-manager-settings.php:150
1026
  msgid "Author (publish_posts)"
1027
  msgstr ""
1028
 
1029
- #: includes/views/permalink-manager-settings.php:150
1030
  msgid "Contributor (edit_posts)"
1031
  msgstr ""
1032
 
1033
- #: includes/views/permalink-manager-settings.php:151
1034
  #, php-format
1035
  msgid ""
1036
  "Only the users who have selected capability will be able to access URI "
@@ -1038,7 +1057,7 @@ msgid ""
1038
  "be found here</a>."
1039
  msgstr ""
1040
 
1041
- #: includes/views/permalink-manager-settings.php:157
1042
  msgid "Save settings"
1043
  msgstr ""
1044
 
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2020-01-19 19:52+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
+ #: permalink-manager.php:199
18
  #, php-format
19
  msgid ""
20
  "Get access to extra features: full taxonomy and WooCommerce support, "
23
  "and save %s using \"%s\" coupon code!</strong> Valid until %s!"
24
  msgstr ""
25
 
26
+ #: includes/core/permalink-manager-third-parties.php:615
27
  msgid "\"Custom Permalinks\" URIs were imported!"
28
  msgstr ""
29
 
30
+ #: includes/core/permalink-manager-third-parties.php:618
31
  msgid "No \"Custom Permalinks\" URIs were imported!"
32
  msgstr ""
33
 
34
  #. Name of the plugin
35
+ #: includes/core/permalink-manager-third-parties.php:889
36
  #: includes/core/permalink-manager-gutenberg.php:14
37
  #: includes/core/permalink-manager-admin-functions.php:119
38
  #: includes/core/permalink-manager-admin-functions.php:119
39
  #: includes/core/permalink-manager-admin-functions.php:724
40
+ #: includes/core/permalink-manager-admin-functions.php:805
41
+ #: includes/core/permalink-manager-admin-functions.php:810
42
+ #: includes/core/permalink-manager-admin-functions.php:811
43
  msgid "Permalink Manager"
44
  msgstr ""
45
 
46
+ #: includes/core/permalink-manager-third-parties.php:893
47
+ #: includes/core/permalink-manager-uri-functions-tax.php:475
48
  #: includes/views/permalink-manager-tools.php:70
49
  msgid "Custom URI"
50
  msgstr ""
51
 
52
+ #: includes/core/permalink-manager-third-parties.php:894
53
  #, php-format
54
  msgid ""
55
  "If empty, a default permalink based on your current <a href=\"%s\" "
56
  "target=\"_blank\">permastructure settings</a> will be used."
57
  msgstr ""
58
 
59
+ #: includes/core/permalink-manager-uri-functions-tax.php:476
60
  msgid "Clear/leave the field empty to use the default permalink."
61
  msgstr ""
62
 
63
+ #: includes/core/permalink-manager-uri-functions-tax.php:508
64
  #: includes/core/permalink-manager-admin-functions.php:728
65
+ #: includes/core/permalink-manager-admin-functions.php:828
66
+ #: includes/core/permalink-manager-uri-functions-post.php:652
67
  msgid "Current URI"
68
  msgstr ""
69
 
192
  msgid "<strong>No slugs</strong> were updated!"
193
  msgstr ""
194
 
195
+ #: includes/core/permalink-manager-admin-functions.php:791
196
+ #: includes/core/permalink-manager-admin-functions.php:794
197
  msgid "Yes"
198
  msgstr ""
199
 
200
+ #: includes/core/permalink-manager-admin-functions.php:791
201
+ #: includes/core/permalink-manager-admin-functions.php:795
202
  msgid "No"
203
  msgstr ""
204
 
205
+ #: includes/core/permalink-manager-admin-functions.php:793
206
  #, php-format
207
  msgid "Use global settings [%s]"
208
  msgstr ""
209
 
210
+ #: includes/core/permalink-manager-admin-functions.php:796
211
  msgid "No (ignore this URI in bulk tools)"
212
  msgstr ""
213
 
214
+ #: includes/core/permalink-manager-admin-functions.php:810
215
  msgid "Close: "
216
  msgstr ""
217
 
218
+ #: includes/core/permalink-manager-admin-functions.php:822
219
  msgid "The custom URI cannot be edited on frontpage."
220
  msgstr ""
221
 
222
+ #: includes/core/permalink-manager-admin-functions.php:829
223
  msgid ""
224
  "If custom URI is not defined, a default URI will be set (see below). The "
225
  "custom URI can be edited only if 'Auto-update the URI' feature is not "
226
  "enabled."
227
  msgstr ""
228
 
229
+ #: includes/core/permalink-manager-admin-functions.php:838
230
  msgid "Native slug"
231
  msgstr ""
232
 
233
+ #: includes/core/permalink-manager-admin-functions.php:839
234
  msgid ""
235
  "The native slug is by default automatically used in native permalinks (when "
236
  "Permalink Manager is disabled)."
237
  msgstr ""
238
 
239
+ #: includes/core/permalink-manager-admin-functions.php:849
240
  msgid "Auto-update the URI"
241
  msgstr ""
242
 
243
+ #: includes/core/permalink-manager-admin-functions.php:850
244
  msgid ""
245
  "If enabled, the 'Current URI' field will be automatically changed to "
246
  "'Default URI' (displayed below) after the post is saved or updated."
247
  msgstr ""
248
 
249
+ #: includes/core/permalink-manager-admin-functions.php:858
250
  msgid "Default URI"
251
  msgstr ""
252
 
253
+ #: includes/core/permalink-manager-admin-functions.php:859
254
  msgid "Restore Default URI"
255
  msgstr ""
256
 
257
+ #: includes/core/permalink-manager-admin-functions.php:869
258
  msgid "Automatic redirect for native URI enabled:"
259
  msgstr ""
260
 
261
+ #: includes/core/permalink-manager-admin-functions.php:880
262
  #, php-format
263
  msgid ""
264
  "<span><strong>Need more functionalities and dedicated support?</strong> Buy "
266
  "permalink-manager-pro/\">PMLITE coupon code</a> to get 10% off.</a></span>"
267
  msgstr ""
268
 
269
+ #: includes/core/permalink-manager-admin-functions.php:891
270
  msgid "Save permalink"
271
  msgstr ""
272
 
273
+ #: includes/core/permalink-manager-admin-functions.php:918
274
  msgid "Manage redirects"
275
  msgstr ""
276
 
277
+ #: includes/core/permalink-manager-admin-functions.php:1014
278
  msgid "URI is already in use, please select another one!"
279
  msgstr ""
280
 
281
+ #: includes/core/permalink-manager-admin-functions.php:1063
282
  #, php-format
283
  msgid ""
284
  "This functionality is available only in <a href=\"%s\" target=\"_blank\">"
810
  msgstr ""
811
 
812
  #: includes/views/permalink-manager-settings.php:45
813
+ msgid "Automatically remove broken URIs"
814
  msgstr ""
815
 
816
  #: includes/views/permalink-manager-settings.php:47
817
+ #, php-format
818
  msgid ""
819
+ "If enabled, the custom URIs assigned to removed posts & terms will be "
820
+ "automatically removed.<br />To manually remove the duplicates please go <a "
821
+ "href=\"%s\">to this page</a>."
822
  msgstr ""
823
 
824
  #: includes/views/permalink-manager-settings.php:51
825
+ msgid "Use actual post/term titles (Force custom slugs)"
826
  msgstr ""
827
 
828
  #: includes/views/permalink-manager-settings.php:53
829
+ msgid "No, use native slugs"
 
 
 
830
  msgstr ""
831
 
832
+ #: includes/views/permalink-manager-settings.php:53
833
+ msgid "Yes, use post/term titles"
834
  msgstr ""
835
 
836
+ #: includes/views/permalink-manager-settings.php:54
837
  msgid ""
838
+ "If enabled, the slugs in the default custom permalinks will be recreated "
839
+ "from the post titles.<br />This may cause permalinks duplicates when the "
840
+ "post or term title is used more than once."
841
  msgstr ""
842
 
843
+ #: includes/views/permalink-manager-settings.php:59
844
+ msgid "SEO functions & redirects"
845
  msgstr ""
846
 
847
+ #: includes/views/permalink-manager-settings.php:65
848
  msgid "Canonical redirect"
849
  msgstr ""
850
 
851
+ #: includes/views/permalink-manager-settings.php:67
852
  msgid ""
853
  "This function allows Wordpress to correct the URLs used by the visitors."
854
  msgstr ""
855
 
856
+ #: includes/views/permalink-manager-settings.php:71
857
+ msgid "Redirect old permalinks"
858
  msgstr ""
859
 
860
+ #: includes/views/permalink-manager-settings.php:75
861
  msgid ""
862
  "If enabled, the redirects will be automatially created for old custom "
863
  "permalinks, after posts or terms URLs are changed."
864
  msgstr ""
865
 
866
+ #: includes/views/permalink-manager-settings.php:79
867
+ msgid "Redirect mode"
868
  msgstr ""
869
 
870
+ #: includes/views/permalink-manager-settings.php:81
871
  msgid "Disable"
872
  msgstr ""
873
 
874
+ #: includes/views/permalink-manager-settings.php:81
875
  msgid "Enable \"301 redirect\""
876
  msgstr ""
877
 
878
+ #: includes/views/permalink-manager-settings.php:81
879
  msgid "Enable \"302 redirect\""
880
  msgstr ""
881
 
882
+ #: includes/views/permalink-manager-settings.php:82
883
  msgid ""
884
  "If enabled - the visitors will be redirected from native permalinks to your "
885
  "custom permalinks."
886
  msgstr ""
887
 
888
+ #: includes/views/permalink-manager-settings.php:86
889
  msgid "Trailing slashes"
890
  msgstr ""
891
 
892
+ #: includes/views/permalink-manager-settings.php:88
893
  msgid "Use default settings"
894
  msgstr ""
895
 
896
+ #: includes/views/permalink-manager-settings.php:88
897
  msgid "Add trailing slashes"
898
  msgstr ""
899
 
900
+ #: includes/views/permalink-manager-settings.php:88
901
  msgid "Add trailing slashes (+ auto-redirect links without them)"
902
  msgstr ""
903
 
904
+ #: includes/views/permalink-manager-settings.php:88
905
  msgid "Remove trailing slashes"
906
  msgstr ""
907
 
908
+ #: includes/views/permalink-manager-settings.php:88
909
  msgid "Remove trailing slashes (+ auto-redirect links with them)"
910
  msgstr ""
911
 
912
+ #: includes/views/permalink-manager-settings.php:89
913
  msgid ""
914
  "This option can be used to alter the native settings and control if trailing "
915
  "slash should be added or removed from the end of posts & terms permalinks."
916
  msgstr ""
917
 
918
+ #: includes/views/permalink-manager-settings.php:93
919
+ msgid "Force HTTPS/WWW in URLs"
920
  msgstr ""
921
 
922
+ #: includes/views/permalink-manager-settings.php:95
923
+ msgid ""
924
+ "<strong>Please disable it, if you encounter any redirect loop issues."
925
+ "</strong>"
926
  msgstr ""
927
 
928
+ #: includes/views/permalink-manager-settings.php:100
929
+ msgid "Third party plugins"
 
 
 
 
930
  msgstr ""
931
 
932
+ #: includes/views/permalink-manager-settings.php:106
933
+ msgid "Fix WPML/Polylang language mismatch"
934
  msgstr ""
935
 
936
+ #: includes/views/permalink-manager-settings.php:108
937
  msgid ""
938
  "If enabled, the plugin will load the adjacent translation of post when the "
939
  "custom permalink is detected, but the language code in the URL does not "
940
  "match the language code assigned to the post/term."
941
  msgstr ""
942
 
943
+ #: includes/views/permalink-manager-settings.php:112
944
  msgid "Disable support for WP All Import"
945
  msgstr ""
946
 
947
+ #: includes/views/permalink-manager-settings.php:114
948
  msgid ""
949
  "If checked, the custom URIs will not be assigned to the posts imported by Wp "
950
  "All Import Pro plugin."
951
  msgstr ""
952
 
953
+ #: includes/views/permalink-manager-settings.php:118
954
  msgid "Filter breadcrumbs"
955
  msgstr ""
956
 
957
+ #: includes/views/permalink-manager-settings.php:120
958
  msgid ""
959
  "If checked, the HTML breadcrumbs will be filtered by Permalink Manager to "
960
  "mimic the current URL structure.<br />Works with: Yoast SEO, RankMath and "
961
  "SEOPress breadcrumbs."
962
  msgstr ""
963
 
964
+ #: includes/views/permalink-manager-settings.php:124
965
+ msgid "Exclude content types"
966
  msgstr ""
967
 
968
+ #: includes/views/permalink-manager-settings.php:126
969
+ msgid ""
970
+ "Permalink Manager will ignore and not filter the custom permalinks of all "
971
+ "selected above post types & taxonomies."
972
  msgstr ""
973
 
974
  #: includes/views/permalink-manager-settings.php:131
975
+ msgid "Advanced settings"
976
+ msgstr ""
977
+
978
+ #: includes/views/permalink-manager-settings.php:137
979
+ msgid "Show \"Native slug\" field"
980
  msgstr ""
981
 
982
+ #: includes/views/permalink-manager-settings.php:139
983
  msgid ""
984
+ "If enabled, it would be possible to edit the native slug via URI Editor on "
985
+ "single post/term edit page."
 
986
  msgstr ""
987
 
988
+ #: includes/views/permalink-manager-settings.php:143
989
+ msgid "Force 404 on non-existing pagination pages"
990
  msgstr ""
991
 
992
+ #: includes/views/permalink-manager-settings.php:145
993
+ msgid ""
994
+ "If enabled, the non-existing pagination pages (for single posts) will return "
995
+ "404 (\"Not Found\") error.<br /><strong>Please disable it, if you encounter "
996
+ "any problems with pagination pages or use custom pagination system.</strong>"
997
+ msgstr ""
998
+
999
+ #: includes/views/permalink-manager-settings.php:149
1000
+ msgid "Strip special characters"
1001
+ msgstr ""
1002
+
1003
+ #: includes/views/permalink-manager-settings.php:151
1004
+ #: includes/views/permalink-manager-settings.php:158
1005
  msgid "Yes, use native settings"
1006
  msgstr ""
1007
 
1008
+ #: includes/views/permalink-manager-settings.php:151
1009
  msgid "No, keep special characters (.,|_+) in the slugs"
1010
  msgstr ""
1011
 
1012
+ #: includes/views/permalink-manager-settings.php:152
1013
  msgid ""
1014
  "If enabled only alphanumeric characters, underscores and dashes will be "
1015
  "allowed for post/term slugs."
1016
  msgstr ""
1017
 
1018
+ #: includes/views/permalink-manager-settings.php:156
1019
+ msgid "Convert accented letters"
1020
  msgstr ""
1021
 
1022
+ #: includes/views/permalink-manager-settings.php:158
1023
+ msgid "No, keep accented letters in the slugs"
1024
+ msgstr ""
1025
+
1026
+ #: includes/views/permalink-manager-settings.php:159
1027
  msgid ""
1028
+ "If enabled, all the accented letters will be replaced with their non-"
1029
+ "accented equivalent (eg. Å => A, Æ => AE, Ø => O, Ć => C)."
1030
  msgstr ""
1031
 
1032
+ #: includes/views/permalink-manager-settings.php:163
1033
  msgid "URI Editor role capability"
1034
  msgstr ""
1035
 
1036
+ #: includes/views/permalink-manager-settings.php:164
1037
  msgid "Administrator (edit_theme_options)"
1038
  msgstr ""
1039
 
1040
+ #: includes/views/permalink-manager-settings.php:164
1041
  msgid "Editor (publish_pages)"
1042
  msgstr ""
1043
 
1044
+ #: includes/views/permalink-manager-settings.php:164
1045
  msgid "Author (publish_posts)"
1046
  msgstr ""
1047
 
1048
+ #: includes/views/permalink-manager-settings.php:164
1049
  msgid "Contributor (edit_posts)"
1050
  msgstr ""
1051
 
1052
+ #: includes/views/permalink-manager-settings.php:165
1053
  #, php-format
1054
  msgid ""
1055
  "Only the users who have selected capability will be able to access URI "
1057
  "be found here</a>."
1058
  msgstr ""
1059
 
1060
+ #: includes/views/permalink-manager-settings.php:171
1061
  msgid "Save settings"
1062
  msgstr ""
1063
 
out/permalink-manager-admin.js CHANGED
@@ -464,10 +464,8 @@ jQuery(document).ready(function() {
464
 
465
  // Update progress
466
  if(data.hasOwnProperty('progress')) {
467
- console.log(data.progress);
468
- console.log(total);
469
-
470
  progress = Math.floor((data.progress / total) * 100)
 
471
  }
472
  } else {
473
  // Display results
464
 
465
  // Update progress
466
  if(data.hasOwnProperty('progress')) {
 
 
 
467
  progress = Math.floor((data.progress / total) * 100)
468
+ console.log(data.progress + "/" + total + " = " + progress + "%");
469
  }
470
  } else {
471
  // Display results
permalink-manager.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Permalink Manager Lite
5
  * Plugin URI: https://permalinkmanager.pro?utm_source=plugin
6
  * Description: Advanced plugin that allows to set-up custom permalinks (bulk editors included), slugs and permastructures (WooCommerce compatible).
7
- * Version: 2.2.7.5
8
  * Author: Maciej Bis
9
  * Author URI: http://maciejbis.net/
10
  * License: GPL-2.0+
@@ -23,7 +23,7 @@ if (!defined('WPINC')) {
23
  // Define the directories used to load plugin files.
24
  define( 'PERMALINK_MANAGER_PLUGIN_NAME', 'Permalink Manager' );
25
  define( 'PERMALINK_MANAGER_PLUGIN_SLUG', 'permalink-manager' );
26
- define( 'PERMALINK_MANAGER_VERSION', '2.2.7.5' );
27
  define( 'PERMALINK_MANAGER_FILE', __FILE__ );
28
  define( 'PERMALINK_MANAGER_DIR', untrailingslashit(dirname(__FILE__)) );
29
  define( 'PERMALINK_MANAGER_BASENAME', plugin_basename(__FILE__));
@@ -169,6 +169,7 @@ class Permalink_Manager_Class {
169
  'yoast_breadcrumbs' => 0,
170
  'force_custom_slugs' => 0,
171
  'disable_slug_sanitization' => 0,
 
172
  'partial_disable' => array(),
173
  'deep_detect' => 1,
174
  'edit_uris_cap' => 'publish_posts',
@@ -193,18 +194,18 @@ class Permalink_Manager_Class {
193
  */
194
  public function default_alerts($alerts) {
195
  $default_alerts = apply_filters('permalink_manager_default_alerts', array(
196
- 'xmas19' => array(
197
  'txt' => sprintf(
198
  __("Get access to extra features: full taxonomy and WooCommerce support, possibility to use custom fields inside the permalinks and more!<br /><strong>Buy Permalink Manager Pro <a href=\"%s\" target=\"_blank\">here</a> and save %s using \"%s\" coupon code!</strong> Valid until %s!", "permalink-manager"),
199
  PERMALINK_MANAGER_WEBSITE . "&utm_campaign=discount_code",
200
  '20&#37;',
201
- 'XMAS19',
202
- '31.12'
203
  ),
204
  'type' => 'notice-info',
205
  'show' => 'pro_hide',
206
  'plugin_only' => true,
207
- 'until' => '2019-12-31'
208
  )
209
  ));
210
 
4
  * Plugin Name: Permalink Manager Lite
5
  * Plugin URI: https://permalinkmanager.pro?utm_source=plugin
6
  * Description: Advanced plugin that allows to set-up custom permalinks (bulk editors included), slugs and permastructures (WooCommerce compatible).
7
+ * Version: 2.2.7.6
8
  * Author: Maciej Bis
9
  * Author URI: http://maciejbis.net/
10
  * License: GPL-2.0+
23
  // Define the directories used to load plugin files.
24
  define( 'PERMALINK_MANAGER_PLUGIN_NAME', 'Permalink Manager' );
25
  define( 'PERMALINK_MANAGER_PLUGIN_SLUG', 'permalink-manager' );
26
+ define( 'PERMALINK_MANAGER_VERSION', '2.2.7.6' );
27
  define( 'PERMALINK_MANAGER_FILE', __FILE__ );
28
  define( 'PERMALINK_MANAGER_DIR', untrailingslashit(dirname(__FILE__)) );
29
  define( 'PERMALINK_MANAGER_BASENAME', plugin_basename(__FILE__));
169
  'yoast_breadcrumbs' => 0,
170
  'force_custom_slugs' => 0,
171
  'disable_slug_sanitization' => 0,
172
+ 'keep_accents' => 0,
173
  'partial_disable' => array(),
174
  'deep_detect' => 1,
175
  'edit_uris_cap' => 'publish_posts',
194
  */
195
  public function default_alerts($alerts) {
196
  $default_alerts = apply_filters('permalink_manager_default_alerts', array(
197
+ 'jan20promo' => array(
198
  'txt' => sprintf(
199
  __("Get access to extra features: full taxonomy and WooCommerce support, possibility to use custom fields inside the permalinks and more!<br /><strong>Buy Permalink Manager Pro <a href=\"%s\" target=\"_blank\">here</a> and save %s using \"%s\" coupon code!</strong> Valid until %s!", "permalink-manager"),
200
  PERMALINK_MANAGER_WEBSITE . "&utm_campaign=discount_code",
201
  '20&#37;',
202
+ 'JAN20',
203
+ '30.01'
204
  ),
205
  'type' => 'notice-info',
206
  'show' => 'pro_hide',
207
  'plugin_only' => true,
208
+ 'until' => '2020-01-31'
209
  )
210
  ));
211