Safe Redirect Manager - Version 1.7.2

Version Description

(Feb. 10, 2014) = * Added French translation. Props jcbrebion. * Bug fix: Don't perform redirects in the admin. Props joshbetz. * Bug fix: Prevent duplicate GUIDs. Props danblaker.

Download this release

Release Info

Developer danielbachhuber
Plugin Icon 128x128 Safe Redirect Manager
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

languages/safe-redirect-manager-fr_FR.mo ADDED
Binary file
languages/safe-redirect-manager-fr_FR.po ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012 Safe Redirect Manager
2
+ # This file is distributed under the same license as the Safe Redirect Manager package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Safe Redirect Manager 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/safe-redirect-manager\n"
7
+ "POT-Creation-Date: 2012-10-09 23:02:23+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-01-22 14:16+0100\n"
12
+ "Last-Translator: Jean-Christophe Brebion <pro@jcbrebion.com>\n"
13
+ "Language-Team: Jean-Christophe Brebion <pro@jcbrebion.com>\n"
14
+ "X-Generator: Poedit 1.6.3\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
+ "Language: fr_FR\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: safe-redirect-manager.php:259
20
+ msgid ""
21
+ "Safe Redirect Manager Warning: Possible redirect loops and/or chains have "
22
+ "been created."
23
+ msgstr ""
24
+ "Avertissement de Safe Redirect Manager: il est possible que vous ayez créé "
25
+ "des boucles et/ou chaînes de redirections."
26
+
27
+ #: safe-redirect-manager.php:266
28
+ msgid ""
29
+ "Safe Redirect Manager Error: You have reached the maximum allowable number "
30
+ "of redirects"
31
+ msgstr ""
32
+ "Erreur de Safe Redirect Manager: Vous avez atteint le nombre maximal "
33
+ "autorisé de redirections."
34
+
35
+ #: safe-redirect-manager.php:367 safe-redirect-manager.php:370
36
+ msgid "Redirect rule updated."
37
+ msgstr "Règle de redirection mise à jour."
38
+
39
+ #: safe-redirect-manager.php:368
40
+ msgid "Custom field updated."
41
+ msgstr "Champ personnalisé mis à jour."
42
+
43
+ #: safe-redirect-manager.php:369
44
+ msgid "Custom field deleted."
45
+ msgstr "Champ personnalisé supprimé."
46
+
47
+ #. translators: %s: date and time of the revision
48
+ #: safe-redirect-manager.php:372
49
+ msgid "Redirect rule restored to revision from %s"
50
+ msgstr "Règle de redirection restaurée de la révision à partir de %s"
51
+
52
+ #: safe-redirect-manager.php:373
53
+ msgid "Redirect rule published."
54
+ msgstr "Règle de redirection publiée."
55
+
56
+ #: safe-redirect-manager.php:374
57
+ msgid "Redirect rule saved."
58
+ msgstr "Règle de redirection enregistrée."
59
+
60
+ #: safe-redirect-manager.php:375
61
+ msgid "Redirect rule submitted."
62
+ msgstr "Règle de redirection envoyée."
63
+
64
+ #: safe-redirect-manager.php:376
65
+ msgid "Redirect rule scheduled for: <strong>%1$s</strong>."
66
+ msgstr "Règle de redirection planifiée pour: <strong>%1$s</strong>."
67
+
68
+ #. translators: Publish box date format, see http:php.net/date
69
+ #: safe-redirect-manager.php:378
70
+ msgid "M j, Y @ G:i"
71
+ msgstr "j M Y @ G:i"
72
+
73
+ #: safe-redirect-manager.php:379
74
+ msgid "Redirect rule draft updated."
75
+ msgstr "Brouillon de règle de redirection mis à jour."
76
+
77
+ #: safe-redirect-manager.php:431
78
+ msgid "Redirect To"
79
+ msgstr "Redirection vers"
80
+
81
+ #: safe-redirect-manager.php:432
82
+ msgid "HTTP Status Code"
83
+ msgstr "Code de statut HTTP"
84
+
85
+ #: safe-redirect-manager.php:435
86
+ msgid "Redirect From"
87
+ msgstr "Redirection à partir de"
88
+
89
+ #: safe-redirect-manager.php:439
90
+ msgid "Date"
91
+ msgstr "Date"
92
+
93
+ #: safe-redirect-manager.php:491
94
+ msgctxt "post type general name"
95
+ msgid "Safe Redirect Manager"
96
+ msgstr "Safe Redirect Manager"
97
+
98
+ #: safe-redirect-manager.php:492
99
+ msgctxt "post type singular name"
100
+ msgid "Redirect"
101
+ msgstr "Redirection"
102
+
103
+ #. Plugin Name of the plugin/theme
104
+ #: safe-redirect-manager.php:494 safe-redirect-manager.php:497
105
+ #: safe-redirect-manager.php:503
106
+ msgid "Safe Redirect Manager"
107
+ msgstr "Redirections"
108
+
109
+ #: safe-redirect-manager.php:495
110
+ msgid "Edit Redirect Rule"
111
+ msgstr "Modifier la règle de redirection"
112
+
113
+ #: safe-redirect-manager.php:496
114
+ msgid "New Redirect Rule"
115
+ msgstr "Nouvelle règle de redirection"
116
+
117
+ #: safe-redirect-manager.php:498
118
+ msgid "View Redirect Rule"
119
+ msgstr "Voir la règle de redirection"
120
+
121
+ #: safe-redirect-manager.php:499
122
+ msgid "Search Redirects"
123
+ msgstr "Rechercher une redirection"
124
+
125
+ #: safe-redirect-manager.php:500
126
+ msgid "No redirect rules found."
127
+ msgstr "Aucune règle de redirection trouvée."
128
+
129
+ #: safe-redirect-manager.php:501
130
+ msgid "No redirect rules found in trash."
131
+ msgstr "Aucune règle de redirection trouvée dans la corbeille."
132
+
133
+ #: safe-redirect-manager.php:544
134
+ msgid "Redirect Settings"
135
+ msgstr "Paramètres de redirection"
136
+
137
+ #: safe-redirect-manager.php:565
138
+ msgid "Redirect From:"
139
+ msgstr "Redirection à partir de:"
140
+
141
+ #: safe-redirect-manager.php:567
142
+ msgid ""
143
+ "This path should be relative to the root of this WordPress installation (or "
144
+ "the sub-site, if you are running a multi-site). Appending a (*) wildcard "
145
+ "character will match all requests with the base."
146
+ msgstr ""
147
+ "Le chemin doit être relatif à la racine de votre installation WordPress (ou "
148
+ "du sous-site, si vous utilisez une installation multi-site). Ajouter le "
149
+ "caractère de remplacement (*) permet d'accepter toutes les requêtes à partir "
150
+ "de la base."
151
+
152
+ #: safe-redirect-manager.php:571
153
+ msgid "Redirect To:"
154
+ msgstr "Redirection vers:"
155
+
156
+ #: safe-redirect-manager.php:573
157
+ msgid ""
158
+ "This can be a URL or a path relative to the root of your website (not your "
159
+ "WordPress installation). Ending with a (*) wildcard character will append "
160
+ "the request match to the redirect."
161
+ msgstr ""
162
+ "Ceci peut être une URL ou un chemin relatif à la racine du site web (et non "
163
+ "pas votre installation WordPress). Terminer avec le caractère de "
164
+ "remplacement (*) vous permettra d'ajouter la requête à la redirection."
165
+
166
+ #: safe-redirect-manager.php:577
167
+ msgid "HTTP Status Code:"
168
+ msgstr "Code de statut HTTP:"
169
+
170
+ #: safe-redirect-manager.php:583
171
+ msgid "If you don't know what this is, leave it as is."
172
+ msgstr "Si vous ne savez pas ce que c'est, ne changez pas la valeur."
173
+
174
+ #. Plugin URI of the plugin/theme
175
+ #. Author URI of the plugin/theme
176
+ msgid "http://www.10up.com"
177
+ msgstr "http://www.10up.com"
178
+
179
+ #. Description of the plugin/theme
180
+ msgid "Easily and safely manage HTTP redirects."
181
+ msgstr "Gérez simplement et sans risque les redirections HTTP."
182
+
183
+ #. Author of the plugin/theme
184
+ msgid "Taylor Lovett (10up LLC), VentureBeat"
185
+ msgstr "Taylor Lovett (10up LLC), VentureBeat"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tlovett1, tollmanz, taylorde, 10up, jakemgold, danielbachhuber, Ve
3
  Tags: http redirects, redirect manager, url redirection, safe http redirection, multisite redirects
4
  Requires at least: 3.1
5
  Tested up to: 3.8
6
- Stable tag: 1.7.1
7
 
8
  Safely and easily manage your website's HTTP redirects.
9
 
@@ -24,6 +24,11 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
24
 
25
  == Changelog ==
26
 
 
 
 
 
 
27
  = 1.7.1 (Dec. 12, 2013) =
28
  * Add 307 redirect status code. Thanks [lgedeon](https://github.com/lgedeon)
29
  * Plugin textdomain should be loaded on init
3
  Tags: http redirects, redirect manager, url redirection, safe http redirection, multisite redirects
4
  Requires at least: 3.1
5
  Tested up to: 3.8
6
+ Stable tag: 1.7.2
7
 
8
  Safely and easily manage your website's HTTP redirects.
9
 
24
 
25
  == Changelog ==
26
 
27
+ = 1.7.2 (Feb. 10, 2014) =
28
+ * Added French translation. Props [jcbrebion](https://github.com/jcbrebion).
29
+ * Bug fix: Don't perform redirects in the admin. Props [joshbetz](https://github.com/joshbetz).
30
+ * Bug fix: Prevent duplicate GUIDs. Props [danblaker](https://github.com/danblaker).
31
+
32
  = 1.7.1 (Dec. 12, 2013) =
33
  * Add 307 redirect status code. Thanks [lgedeon](https://github.com/lgedeon)
34
  * Plugin textdomain should be loaded on init
safe-redirect-manager.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Safe Redirect Manager
4
  Plugin URI: http://www.10up.com
5
  Description: Easily and safely manage HTTP redirects.
6
  Author: Taylor Lovett (10up LLC), VentureBeat
7
- Version: 1.7.1
8
  Author URI: http://www.10up.com
9
 
10
  GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
@@ -776,6 +776,10 @@ class SRM_Safe_Redirect_Manager {
776
  * @return void
777
  */
778
  public function action_parse_request() {
 
 
 
 
779
 
780
  // get redirects from cache or recreate it
781
  if ( false === ( $redirects = get_transient( $this->cache_key_redirects ) ) ) {
@@ -940,6 +944,11 @@ class SRM_Safe_Redirect_Manager {
940
  if ( false !== strpos( $redirect_from, '*' ) )
941
  return $permalink;
942
 
 
 
 
 
 
943
  return home_url( $redirect_from );
944
  }
945
  }
4
  Plugin URI: http://www.10up.com
5
  Description: Easily and safely manage HTTP redirects.
6
  Author: Taylor Lovett (10up LLC), VentureBeat
7
+ Version: 1.7.2
8
  Author URI: http://www.10up.com
9
 
10
  GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
776
  * @return void
777
  */
778
  public function action_parse_request() {
779
+
780
+ // Don't redirect from wp-admin
781
+ if ( is_admin() )
782
+ return;
783
 
784
  // get redirects from cache or recreate it
785
  if ( false === ( $redirects = get_transient( $this->cache_key_redirects ) ) ) {
944
  if ( false !== strpos( $redirect_from, '*' ) )
945
  return $permalink;
946
 
947
+ // Use default permalink if no $redirect_from exists - this prevents duplicate GUIDs
948
+ if ( empty( $redirect_from ) ) {
949
+ return $permalink;
950
+ }
951
+
952
  return home_url( $redirect_from );
953
  }
954
  }