Skip to content

Commit e3d3466

Browse files
committed
📦 New release 3.0.5
1 parent 5065c28 commit e3d3466

File tree

13 files changed

+90
-52
lines changed

13 files changed

+90
-52
lines changed
103 KB
Loading

.freemius_assets/404-to-301.png

103 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

404-to-301.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
* Plugin Name: 404 to 301
3+
* Plugin Name: 404 to 301 - Redirect, Log and Notify 404 Errors
44
* Plugin URI: https://duckdev.com/products/404-to-301/
55
* Description: Automatically redirect all <strong>404 errors</strong> to any page using <strong>301 redirect for SEO</strong>. You can <strong>redirect and log</strong> every 404 errors. No more 404 errors in Webmaster tool.
6-
* Version: 3.0.4
6+
* Version: 3.0.5
77
* Author: Joel James
88
* Author URI: https://duckdev.com/
99
* Donate link: https://paypal.me/JoelCJ
@@ -25,11 +25,11 @@
2525
* You should have received a copy of the GNU General Public License
2626
* along with 404 to 301. If not, see <http://www.gnu.org/licenses/>.
2727
*
28-
* @category Core
29-
* @package JJ4T3
3028
* @author Joel James <[email protected]>
31-
* @license http://www.gnu.org/licenses/ GNU General Public License
3229
* @link https://duckdev.com/products/404-to-301/
30+
* @license http://www.gnu.org/licenses/ GNU General Public License
31+
* @package JJ4T3
32+
* @category Core
3333
*/
3434

3535
// If this file is called directly, abort.
@@ -63,7 +63,7 @@ function jj4t3_set_constants() {
6363
'JJ4T3_DIR' => plugin_dir_path( __FILE__ ),
6464
'JJ4T3_URL' => plugin_dir_url( __FILE__ ),
6565
'JJ4T3_BASE_FILE' => __FILE__,
66-
'JJ4T3_VERSION' => '3.0.4',
66+
'JJ4T3_VERSION' => '3.0.5',
6767
'JJ4T3_DB_VERSION' => '11.0',
6868
'JJ4T3_TABLE' => $GLOBALS['wpdb']->prefix . '404_to_301',
6969
// Set who all can access plugin settings.
@@ -120,15 +120,15 @@ function jj4t3_freemius() {
120120

121121
// Initialize freemius sdk.
122122
$jj4t3_fs = fs_dynamic_init( array(
123-
'id' => '2192',
124-
'slug' => '404-to-301',
125-
'type' => 'plugin',
126-
'public_key' => 'pk_9d470f3128e5e491ea5a2da6bf4bf',
127-
'is_premium' => false,
128-
'has_addons' => true,
129-
'has_paid_plans' => false,
130-
'anonymous_mode' => true, // Temporary fix.
131-
'menu' => array(
123+
'id' => '2192',
124+
'slug' => '404-to-301',
125+
'type' => 'plugin',
126+
'public_key' => 'pk_9d470f3128e5e491ea5a2da6bf4bf',
127+
'is_premium' => false,
128+
'has_addons' => true,
129+
'has_paid_plans' => false,
130+
'anonymous_mode' => true, // Temporary fix.
131+
'menu' => array(
132132
'slug' => 'jj4t3-logs',
133133
'account' => false,
134134
'support' => false,
@@ -152,7 +152,7 @@ function jj4t3_freemius() {
152152
// Uninstaller for 404 to 301.
153153
jj4t3_freemius()->add_action( 'after_uninstall', array(
154154
'JJ4T3_Activator_Deactivator_Uninstaller',
155-
'uninstall'
155+
'uninstall',
156156
) );
157157

158158
// Signal that SDK was initiated.

Gruntfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ module.exports = function ( grunt ) {
131131
files: {
132132
src: conf.plugin_branches.include_files,
133133
dest: 'releases/<%= pkg.name %>/'
134+
},
135+
freemius: {
136+
expand: true,
137+
flatten: true,
138+
src: '.freemius_assets/**',
139+
dest: 'releases/<%= pkg.name %>/vendor/freemius/assets/img/',
140+
filter: 'isFile'
134141
}
135142
},
136143

@@ -159,7 +166,8 @@ module.exports = function ( grunt ) {
159166
grunt.registerTask( 'build', 'Run all tasks.', function () {
160167
grunt.task.run( 'clean' );
161168
grunt.task.run( 'translate' );
162-
grunt.task.run( 'copy' );
169+
grunt.task.run( 'copy:files' );
170+
grunt.task.run( 'copy:freemius' );
163171
grunt.task.run( 'makepot:release' );
164172
grunt.task.run( 'po2mo:release' );
165173
grunt.task.run( 'compress' );

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Automatically redirect all 404 errors to any page using 301 redirect to boost yo
88

99
##### Contributors: <a href="https://github.com/joel-james/">Joel James</a>
1010
##### Requires at least: WordPress 3.0
11-
##### Tested up to: WordPress 5.1
12-
##### Stable tag: 3.0.4
11+
##### Tested up to: WordPress 5.2
12+
##### Stable tag: 3.0.5
1313

1414
Before starting development make sure you read and understand everything in this README.
1515

languages/404-to-301.mo

-6 Bytes
Binary file not shown.

languages/404-to-301.pot

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the GPL-2.0+.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: 404 to 301 3.0.2\n"
5+
"Project-Id-Version: 404 to 301 - Redirect, Log and Notify 404 Errors 3.0.5\n"
66
"Report-Msgid-Bugs-To: https://duckdev.com/products/404-to-301/\n"
7-
"POT-Creation-Date: 2019-03-16 07:05:41+00:00\n"
7+
"POT-Creation-Date: 2019-07-02 05:19:53+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -22,74 +22,98 @@ msgstr ""
2222
"X-Poedit-SearchPath-0: .\n"
2323
"X-Poedit-Bookmarks: \n"
2424
"X-Textdomain-Support: yes\n"
25-
"X-Generator: grunt-wp-i18n1.0.2\n"
25+
"X-Generator: grunt-wp-i18n 1.0.3\n"
2626

27-
#: includes/admin/class-jj4t3-admin.php:127
27+
#: includes/admin/class-jj4t3-admin.php:139
2828
msgid "Custom Redirect"
2929
msgstr ""
3030

31-
#: includes/admin/class-jj4t3-admin.php:151
32-
#: includes/admin/class-jj4t3-admin.php:212
31+
#: includes/admin/class-jj4t3-admin.php:163
32+
#: includes/admin/class-jj4t3-admin.php:230
3333
#: includes/admin/class-jj4t3-log-listing.php:47
3434
msgid "404 Error Logs"
3535
msgstr ""
3636

37-
#: includes/admin/class-jj4t3-admin.php:151
37+
#: includes/admin/class-jj4t3-admin.php:163
3838
msgid "404 Errors"
3939
msgstr ""
4040

41-
#: includes/admin/class-jj4t3-admin.php:157
41+
#: includes/admin/class-jj4t3-admin.php:172
4242
msgid "404 to 301 Settings"
4343
msgstr ""
4444

45-
#: includes/admin/class-jj4t3-admin.php:157
45+
#: includes/admin/class-jj4t3-admin.php:172
4646
msgid "404 Settings"
4747
msgstr ""
4848

49-
#: includes/admin/class-jj4t3-admin.php:186
49+
#: includes/admin/class-jj4t3-admin.php:204
5050
msgid "Error Logs"
5151
msgstr ""
5252

53-
#. Plugin Name of the plugin/theme
53+
#: includes/admin/class-jj4t3-admin.php:288 includes/admin/views/admin.php:21
5454
msgid "404 to 301"
5555
msgstr ""
5656

57-
#: includes/admin/class-jj4t3-admin.php:339 includes/admin/views/admin.php:27
57+
#: includes/admin/class-jj4t3-admin.php:357 includes/admin/views/admin.php:27
5858
msgid "Settings"
5959
msgstr ""
6060

61-
#: includes/admin/class-jj4t3-admin.php:340
61+
#: includes/admin/class-jj4t3-admin.php:358
6262
msgid "Logs"
6363
msgstr ""
6464

65+
#: includes/admin/class-jj4t3-admin.php:435
66+
msgid ""
67+
"Hey %1$s, I noticed you've been using %2$s404 to 301%3$s for more than 1 "
68+
"week – that’s awesome! Could you please do me a BIG favor and give it a "
69+
"5-star rating on WordPress? Just to help us spread the word and boost our "
70+
"motivation."
71+
msgstr ""
72+
73+
#: includes/admin/class-jj4t3-admin.php:436
74+
msgid "there"
75+
msgstr ""
76+
77+
#: includes/admin/class-jj4t3-admin.php:442
78+
msgid "Ok, you deserve it"
79+
msgstr ""
80+
81+
#: includes/admin/class-jj4t3-admin.php:445
82+
msgid "Nope, maybe later"
83+
msgstr ""
84+
85+
#: includes/admin/class-jj4t3-admin.php:448
86+
msgid "I already did"
87+
msgstr ""
88+
6589
#: includes/admin/class-jj4t3-log-listing.php:46
6690
msgid "404 Error Log"
6791
msgstr ""
6892

6993
#: includes/admin/class-jj4t3-log-listing.php:328
70-
#: includes/functions/jj4t3-general-functions.php:318
94+
#: includes/functions/jj4t3-general-functions.php:317
7195
msgid "Date"
7296
msgstr ""
7397

7498
#: includes/admin/class-jj4t3-log-listing.php:329
75-
#: includes/functions/jj4t3-general-functions.php:319
99+
#: includes/functions/jj4t3-general-functions.php:318
76100
#: includes/public/class-jj4t3-404-email.php:193
77101
msgid "404 Path"
78102
msgstr ""
79103

80104
#: includes/admin/class-jj4t3-log-listing.php:330
81-
#: includes/functions/jj4t3-general-functions.php:320
105+
#: includes/functions/jj4t3-general-functions.php:319
82106
msgid "From"
83107
msgstr ""
84108

85109
#: includes/admin/class-jj4t3-log-listing.php:331
86-
#: includes/functions/jj4t3-general-functions.php:321
110+
#: includes/functions/jj4t3-general-functions.php:320
87111
#: includes/public/class-jj4t3-404-email.php:198
88112
msgid "IP Address"
89113
msgstr ""
90114

91115
#: includes/admin/class-jj4t3-log-listing.php:332
92-
#: includes/functions/jj4t3-general-functions.php:322
116+
#: includes/functions/jj4t3-general-functions.php:321
93117
msgid "User Agent"
94118
msgstr ""
95119

@@ -145,7 +169,7 @@ msgid "Redirecting from"
145169
msgstr ""
146170

147171
#: includes/admin/views/custom-redirect.php:15
148-
#: includes/functions/jj4t3-general-functions.php:323
172+
#: includes/functions/jj4t3-general-functions.php:322
149173
msgid "Redirect"
150174
msgstr ""
151175

@@ -177,7 +201,7 @@ msgstr ""
177201
#: includes/admin/views/custom-redirect.php:42
178202
msgid ""
179203
"Enter the url if you want to set custom redirect for above 404 path. Enter "
180-
"the full url including http://. Leave empty if you want to follow deafult "
204+
"the full url including http://. Leave empty if you want to follow default "
181205
"settings."
182206
msgstr ""
183207

@@ -311,10 +335,6 @@ msgstr ""
311335
msgid "307 Redirect"
312336
msgstr ""
313337

314-
#: includes/functions/jj4t3-general-functions.php:286
315-
msgid "404 Not Found"
316-
msgstr ""
317-
318338
#: includes/public/class-jj4t3-404-email.php:141
319339
msgid "Snap! One more 404 on "
320340
msgstr ""
@@ -335,6 +355,10 @@ msgstr ""
335355
msgid "Alert sent by the %s404 to 301%s plugin for WordPress."
336356
msgstr ""
337357

358+
#. Plugin Name of the plugin/theme
359+
msgid "404 to 301 - Redirect, Log and Notify 404 Errors"
360+
msgstr ""
361+
338362
#. Plugin URI of the plugin/theme
339363
msgid "https://duckdev.com/products/404-to-301/"
340364
msgstr ""

0 commit comments

Comments
 (0)