Easy Coming Soon - Version 1.5

Version Description

  1. We now check if the user is trying to access login page. The plugin will not run the redirect function in that case
Download this release

Release Info

Developer a.ankit
Plugin Icon 128x128 Easy Coming Soon
Version 1.5
Comparing to
See all releases

Code changes from version 1.4 to 1.5

Files changed (2) hide show
  1. coming-soon-plugin.php +36 -3
  2. readme.txt +4 -1
coming-soon-plugin.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
- Version: 1.4
6
- Author:Deepesh paiwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
9
  */
@@ -475,7 +475,7 @@ border-radius: 3px;
475
  /*
476
  * add action to call function my_page_template_redirect
477
  */
478
- add_action( 'template_redirect', 'my_page_template_redirect' );
479
 
480
  //get page for live preview when my_preview is true,that mean when this page is call on live preview
481
  if ( (isset($_GET['my_preview']) && $_GET['my_preview'] == 'true') )
@@ -486,4 +486,37 @@ border-radius: 3px;
486
  }
487
 
488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  ?>
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
+ Version: 1.5
6
+ Author:Deepesh paiwal, ANkit Agarwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
9
  */
475
  /*
476
  * add action to call function my_page_template_redirect
477
  */
478
+ // add_action( 'template_redirect', 'my_page_template_redirect' );
479
 
480
  //get page for live preview when my_preview is true,that mean when this page is call on live preview
481
  if ( (isset($_GET['my_preview']) && $_GET['my_preview'] == 'true') )
486
  }
487
 
488
 
489
+
490
+ /*
491
+ * We will wrap the template redirect action in this function. We will check if the page is wp-login.php.
492
+ The template redirect action will not be called on login pages.
493
+ */
494
+
495
+ add_action('init','ecs_skip_redirect_on_login');
496
+
497
+ function ecs_skip_redirect_on_login ()
498
+
499
+ {
500
+ global $pagenow;
501
+ if ('wp-login.php' == $pagenow)
502
+ {
503
+ return;
504
+
505
+ } else
506
+ {
507
+ add_action( 'template_redirect', 'my_page_template_redirect' );
508
+
509
+
510
+ }
511
+
512
+
513
+ }
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.webriti.com/
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,
5
  Requires at least: 3.3+
6
  Tested up to: 4.0
7
- Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,6 +110,9 @@ In case you face any problem, contact us via the [Forums](http://wordpress.org/s
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 1.4 =
114
  1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
115
 
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,
5
  Requires at least: 3.3+
6
  Tested up to: 4.0
7
+ Stable tag: 1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
  == Changelog ==
112
 
113
+ = 1.5 =
114
+ 1. We now check if the user is trying to access login page. The plugin will not run the redirect function in that case
115
+
116
  = 1.4 =
117
  1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
118