Version Description
- PHP 7 Compatibility
Download this release
Release Info
Developer | seedprod |
Plugin | Coming Soon Page & Maintenance Mode by SeedProd |
Version | 5.0.4 |
Comparing to | |
See all releases |
Code changes from version 5.0.3 to 5.0.4
- README.txt +8 -2
- coming-soon.php +34 -2
- lib/seed_csp4_lessc.inc.php +4 -4
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: seedprod
|
|
3 |
Donate link: http://www.seedprod.com
|
4 |
Tags: maintenance mode, coming soon page, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, under construction page, landing page
|
5 |
Requires at least: 3.5.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 5.0.
|
8 |
Text Domain: coming-soon
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -113,6 +113,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
|
|
113 |
4. Design Page
|
114 |
|
115 |
== Changelog ==
|
|
|
|
|
|
|
116 |
= 5.0.3 =
|
117 |
* Updated ReadMe Text
|
118 |
* Ensure Full Size images are selected by default when selecting an image.
|
@@ -164,6 +167,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
|
|
164 |
* Initial Commit
|
165 |
|
166 |
== Upgrade Notice ==
|
|
|
|
|
|
|
167 |
= 5.0.3 =
|
168 |
* Ensure Full Size images are selected by default when selecting an image.
|
169 |
* Make sure all files are local to the plugin.
|
3 |
Donate link: http://www.seedprod.com
|
4 |
Tags: maintenance mode, coming soon page, coming soon, under construction, launch page, launch, maintenance, construction, offline, unavailable, under construction page, landing page
|
5 |
Requires at least: 3.5.1
|
6 |
+
Tested up to: 4.7.0
|
7 |
+
Stable tag: 5.0.4
|
8 |
Text Domain: coming-soon
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
113 |
4. Design Page
|
114 |
|
115 |
== Changelog ==
|
116 |
+
= 5.0.4 =
|
117 |
+
* PHP 7 Compatibility
|
118 |
+
|
119 |
= 5.0.3 =
|
120 |
* Updated ReadMe Text
|
121 |
* Ensure Full Size images are selected by default when selecting an image.
|
167 |
* Initial Commit
|
168 |
|
169 |
== Upgrade Notice ==
|
170 |
+
= 5.0.4 =
|
171 |
+
* PHP 7 Compatibility
|
172 |
+
|
173 |
= 5.0.3 =
|
174 |
* Ensure Full Size images are selected by default when selecting an image.
|
175 |
* Make sure all files are local to the plugin.
|
coming-soon.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Coming Soon Page & Maintenance Mode by SeedProd
|
4 |
* Plugin URI: http://www.seedprod.com
|
5 |
* Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
|
6 |
-
* Version: 5.0.
|
7 |
* Author: SeedProd
|
8 |
* Author URI: http://www.seedprod.com
|
9 |
* Text Domain: coming-soon
|
@@ -21,7 +21,7 @@ define( 'SEED_CSP4_SHORTNAME', 'seed_csp4' ); // Used to reference namespace fun
|
|
21 |
define( 'SEED_CSP4_SLUG', 'coming-soon/coming-soon.php' ); // Used for settings link.
|
22 |
define( 'SEED_CSP4_TEXTDOMAIN', 'coming-soon' ); // Your textdomain
|
23 |
define( 'SEED_CSP4_PLUGIN_NAME', __( 'Coming Soon Page & Maintenance Mode by SeedProd', 'coming-soon' ) ); // Plugin Name shows up on the admin settings screen.
|
24 |
-
define( 'SEED_CSP4_VERSION', '5.0.
|
25 |
define( 'SEED_CSP4_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seed_csp4/
|
26 |
define( 'SEED_CSP4_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Example output: http://localhost:8888/wordpress/wp-content/plugins/seed_csp4/
|
27 |
define( 'SEED_CSP4_TABLENAME', 'seed_csp4_subscribers' );
|
@@ -50,6 +50,35 @@ function seed_csp4_activation(){
|
|
50 |
register_activation_hook( __FILE__, 'seed_csp4_activation' );
|
51 |
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/***************************************************************************
|
54 |
* Load Required Files
|
55 |
***************************************************************************/
|
@@ -72,3 +101,6 @@ if( is_admin() ) {
|
|
72 |
// Public only
|
73 |
|
74 |
}
|
|
|
|
|
|
3 |
* Plugin Name: Coming Soon Page & Maintenance Mode by SeedProd
|
4 |
* Plugin URI: http://www.seedprod.com
|
5 |
* Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
|
6 |
+
* Version: 5.0.4
|
7 |
* Author: SeedProd
|
8 |
* Author URI: http://www.seedprod.com
|
9 |
* Text Domain: coming-soon
|
21 |
define( 'SEED_CSP4_SLUG', 'coming-soon/coming-soon.php' ); // Used for settings link.
|
22 |
define( 'SEED_CSP4_TEXTDOMAIN', 'coming-soon' ); // Your textdomain
|
23 |
define( 'SEED_CSP4_PLUGIN_NAME', __( 'Coming Soon Page & Maintenance Mode by SeedProd', 'coming-soon' ) ); // Plugin Name shows up on the admin settings screen.
|
24 |
+
define( 'SEED_CSP4_VERSION', '5.0.4'); // Plugin Version Number. Recommend you use Semantic Versioning http://semver.org/
|
25 |
define( 'SEED_CSP4_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seed_csp4/
|
26 |
define( 'SEED_CSP4_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Example output: http://localhost:8888/wordpress/wp-content/plugins/seed_csp4/
|
27 |
define( 'SEED_CSP4_TABLENAME', 'seed_csp4_subscribers' );
|
50 |
register_activation_hook( __FILE__, 'seed_csp4_activation' );
|
51 |
|
52 |
|
53 |
+
|
54 |
+
// Welcome Page
|
55 |
+
|
56 |
+
register_activation_hook( __FILE__, 'seed_csp4_welcome_screen_activate' );
|
57 |
+
function seed_csp4_welcome_screen_activate() {
|
58 |
+
set_transient( '_seed_csp4_welcome_screen_activation_redirect', true, 30 );
|
59 |
+
}
|
60 |
+
|
61 |
+
|
62 |
+
add_action( 'admin_init', 'seed_csp4_welcome_screen_do_activation_redirect' );
|
63 |
+
function seed_csp4_welcome_screen_do_activation_redirect() {
|
64 |
+
// Bail if no activation redirect
|
65 |
+
if ( ! get_transient( '_seed_csp4_welcome_screen_activation_redirect' ) ) {
|
66 |
+
return;
|
67 |
+
}
|
68 |
+
|
69 |
+
// Delete the redirect transient
|
70 |
+
delete_transient( '_seed_csp4_welcome_screen_activation_redirect' );
|
71 |
+
|
72 |
+
// Bail if activating from network, or bulk
|
73 |
+
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
|
74 |
+
return;
|
75 |
+
}
|
76 |
+
|
77 |
+
// Redirect to bbPress about page
|
78 |
+
wp_safe_redirect( add_query_arg( array( 'page' => 'seed_csp4' ), admin_url( 'options-general.php' ) ) );
|
79 |
+
}
|
80 |
+
|
81 |
+
|
82 |
/***************************************************************************
|
83 |
* Load Required Files
|
84 |
***************************************************************************/
|
101 |
// Public only
|
102 |
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
+
|
lib/seed_csp4_lessc.inc.php
CHANGED
@@ -2420,7 +2420,7 @@ class seed_csp4_lessc_parser {
|
|
2420 |
if ($this->unit($value)) return true;
|
2421 |
if ($this->color($value)) return true;
|
2422 |
if ($this->func($value)) return true;
|
2423 |
-
if ($this->
|
2424 |
|
2425 |
if ($this->keyword($word)) {
|
2426 |
$value = array('keyword', $word);
|
@@ -2434,7 +2434,7 @@ class seed_csp4_lessc_parser {
|
|
2434 |
}
|
2435 |
|
2436 |
// unquote string (should this work on any type?
|
2437 |
-
if ($this->literal("~") && $this->
|
2438 |
$value = array("escape", $str);
|
2439 |
return true;
|
2440 |
} else {
|
@@ -2562,7 +2562,7 @@ class seed_csp4_lessc_parser {
|
|
2562 |
}
|
2563 |
}
|
2564 |
|
2565 |
-
if (($tok == "'" || $tok == '"') && $this->
|
2566 |
$content[] = $str;
|
2567 |
continue;
|
2568 |
}
|
@@ -2595,7 +2595,7 @@ class seed_csp4_lessc_parser {
|
|
2595 |
return true;
|
2596 |
}
|
2597 |
|
2598 |
-
protected function
|
2599 |
$s = $this->seek();
|
2600 |
if ($this->literal('"', false)) {
|
2601 |
$delim = '"';
|
2420 |
if ($this->unit($value)) return true;
|
2421 |
if ($this->color($value)) return true;
|
2422 |
if ($this->func($value)) return true;
|
2423 |
+
if ($this->lstring($value)) return true;
|
2424 |
|
2425 |
if ($this->keyword($word)) {
|
2426 |
$value = array('keyword', $word);
|
2434 |
}
|
2435 |
|
2436 |
// unquote string (should this work on any type?
|
2437 |
+
if ($this->literal("~") && $this->lstring($str)) {
|
2438 |
$value = array("escape", $str);
|
2439 |
return true;
|
2440 |
} else {
|
2562 |
}
|
2563 |
}
|
2564 |
|
2565 |
+
if (($tok == "'" || $tok == '"') && $this->lstring($str)) {
|
2566 |
$content[] = $str;
|
2567 |
continue;
|
2568 |
}
|
2595 |
return true;
|
2596 |
}
|
2597 |
|
2598 |
+
protected function lstring(&$out) {
|
2599 |
$s = $this->seek();
|
2600 |
if ($this->literal('"', false)) {
|
2601 |
$delim = '"';
|