404 to 301 - Version 1.0.4

Version Description

  • Bug fix.
  • Fixed conflicts with other plugins.
Download this release

Release Info

Developer joelcj91
Plugin Icon 128x128 404 to 301
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

Files changed (3) hide show
  1. 404-to-301.php +2 -2
  2. js-404-admin.php +2 -2
  3. readme.txt +18 -12
404-to-301.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: http://www.joelsays.com/plugins/404-to-301/
6
  Description: Redirect all 404 pages to any page using 301 redirect.
7
  Author: Joel James
8
- Version: 1.0.3
9
  Author URI: http://www.joelsays.com/about/
10
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
11
  Copyright (c) 2014 Joel James
@@ -16,7 +16,7 @@
16
  add_action('admin_menu', 'js_404_settings_menu');
17
  if(!function_exists('js_404_settings_menu')) {
18
  function js_404_settings_menu() {
19
- add_options_page('404 to 301', '404 to 301', 'administrator', 'admin.php', 'js_404_settings');
20
  }
21
  }
22
 
5
  Plugin URI: http://www.joelsays.com/plugins/404-to-301/
6
  Description: Redirect all 404 pages to any page using 301 redirect.
7
  Author: Joel James
8
+ Version: 1.0.4
9
  Author URI: http://www.joelsays.com/about/
10
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
11
  Copyright (c) 2014 Joel James
16
  add_action('admin_menu', 'js_404_settings_menu');
17
  if(!function_exists('js_404_settings_menu')) {
18
  function js_404_settings_menu() {
19
+ add_options_page('404 to 301', '404 to 301', 'administrator', 'js-options', 'js_404_settings');
20
  }
21
  }
22
 
js-404-admin.php CHANGED
@@ -6,7 +6,7 @@
6
  if (!current_user_can('manage_options')) {
7
  wp_die( __('You do not have sufficient permissions to access this page.') );
8
  }
9
- if(isset($_POST['oscimp_hidden']) && $_POST['oscimp_hidden'] == 'Y') {
10
  $type = $_POST['type'];
11
  update_option('type', $type);
12
 
@@ -27,7 +27,7 @@
27
  <?php echo "<h3>" . __( '404 to 301', 'oscimp_trdom' ) . " <a href='http://www.joelsays.com/' target='_blank'>Plugin Website</a></h3><h4>More features are coming soon !!</h4>"; ?>
28
  <hr/>
29
  <form name="oscimp_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
30
- <input type="hidden" name="oscimp_hidden" value="Y">
31
  <?php echo "<h4>" . __( 'Redirect Type Settings', 'oscimp_trdom' ) . "</h4>"; ?>
32
  <p><?php _e("Type of redirect : " ); ?><select name='type' id='type'>
33
  <option value='301' <?php if($type=='301'){echo 'selected';}?>>301 Permanent</option>
6
  if (!current_user_can('manage_options')) {
7
  wp_die( __('You do not have sufficient permissions to access this page.') );
8
  }
9
+ if(isset($_POST['js_hidden']) && $_POST['js_hidden'] == 'Y') {
10
  $type = $_POST['type'];
11
  update_option('type', $type);
12
 
27
  <?php echo "<h3>" . __( '404 to 301', 'oscimp_trdom' ) . " <a href='http://www.joelsays.com/' target='_blank'>Plugin Website</a></h3><h4>More features are coming soon !!</h4>"; ?>
28
  <hr/>
29
  <form name="oscimp_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
30
+ <input type="hidden" name="js_hidden" value="Y">
31
  <?php echo "<h4>" . __( 'Redirect Type Settings', 'oscimp_trdom' ) . "</h4>"; ?>
32
  <p><?php _e("Type of redirect : " ); ?><select name='type' id='type'>
33
  <option value='301' <?php if($type=='301'){echo 'selected';}?>>301 Permanent</option>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 404, 301, 302, 307, not found, 404 redirect, 404 to 301, 301 redirect
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
5
  Requires at least: 3.0.1
6
  Tested up to: 3.9.1
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,16 +29,17 @@ Features of <a href="http://www.joelsays.com/plugins/404-to-301/">404 to 301</a>
29
  * Increase your SEO by telling google that all 404 pages are moved to some other page.
30
  * Quick <a href="http://www.joelsays.com/members-area/support/plugin-support-404-to-301/">Direct Support Forum</a>.
31
  * Free to use with lifetime updates.
32
- * More feature coming soon.. (You can suggest also)
33
 
34
 
35
  == Support ==
36
 
37
- Current Version: 1.0.3
38
 
39
  Author: Joel James
40
- Author URI: http://www.joelsays.com/
41
- <a href="http://www.joelsays.com/plugins/404-to-301/">Plugin Website</a>
 
42
 
43
 
44
  == Installation ==
@@ -68,18 +69,23 @@ You can choose redirection types like 301,302 and 307.
68
 
69
  == Changelog ==
70
 
71
- = 1.0.0 =
72
- * Added first version with basic options.
73
-
74
- = 1.0.1 =
75
- * Added official website details.
76
 
77
  = 1.0.3 =
78
  * Added official support forum.
79
 
 
 
 
 
 
80
 
81
 
82
  == Upgrade Notice ==
83
 
84
- = 1.0.3 =
85
- Added <a href="http://www.joelsays.com/members-area/support/plugin-support-404-to-301/">Support Forum</a> details.
 
 
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
5
  Requires at least: 3.0.1
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  * Increase your SEO by telling google that all 404 pages are moved to some other page.
30
  * Quick <a href="http://www.joelsays.com/members-area/support/plugin-support-404-to-301/">Direct Support Forum</a>.
31
  * Free to use with lifetime updates.
32
+ * More feature coming soon.. (Suggest a feature <a href="http://www.joelsays.com/members-area/support/plugin-support-404-to-301/">here</a>)
33
 
34
 
35
  == Support ==
36
 
37
+ Current Version: 1.0.4
38
 
39
  Author: Joel James
40
+ Author URI: http://www.joelsays.com/ <br/>
41
+ <a href="http://www.joelsays.com/plugins/404-to-301/">Plugin Website</a><br/>
42
+ <a href="http://www.joelsays.com/members-area/support/plugin-support-404-to-301/">Plugin Support</a>
43
 
44
 
45
  == Installation ==
69
 
70
  == Changelog ==
71
 
72
+ = 1.0.4 =
73
+ * Bug fix.
74
+ * Fixed conflicts with other plugins.
 
 
75
 
76
  = 1.0.3 =
77
  * Added official support forum.
78
 
79
+ = 1.0.1 =
80
+ * Added official website details.
81
+
82
+ = 1.0.0 =
83
+ * Added first version with basic options.
84
 
85
 
86
  == Upgrade Notice ==
87
 
88
+ = 1.0.4 =
89
+
90
+ * Bug fix.
91
+ * Fixed conflicts with other plugins.