Version Description
- Fix for the forgotten update of JS-files; slow SVN :(
- Minor Fixes, see (Bugtracker)[http://bueltge.de/bt/view.php?id=2]
Download this release
Release Info
| Developer | Bueltge |
| Plugin | |
| Version | 1.8.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.2 to 1.8.3
- inc/wp-maintenance-mode-settings.php +7 -7
- languages/wp-maintenance-mode-de_DE.mo +0 -0
- languages/wp-maintenance-mode-de_DE.po +11 -7
- languages/wp-maintenance-mode-xx_XX.pot +11 -7
- readme.txt +5 -1
- uninstall.php +4 -7
- wp-maintenance-mode.php +9 -8
inc/wp-maintenance-mode-settings.php
CHANGED
|
@@ -24,7 +24,7 @@ class WPMaintenanceMode_Settings {
|
|
| 24 |
//if ( 0 < count($_POST['checked']) )
|
| 25 |
// return;
|
| 26 |
|
| 27 |
-
if ( is_multisite() && is_plugin_active_for_network(
|
| 28 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 29 |
else
|
| 30 |
$value = get_option( FB_WM_TEXTDOMAIN );
|
|
@@ -216,11 +216,11 @@ class WPMaintenanceMode_Settings {
|
|
| 216 |
</tr>
|
| 217 |
<tr valign="top">
|
| 218 |
<th scope="row">
|
| 219 |
-
<label for="wm_config-exclude"><?php _e( '
|
| 220 |
</th>
|
| 221 |
<td>
|
| 222 |
-
<?php
|
| 223 |
-
if ( isset($value['exclude']) ) {
|
| 224 |
if ( 1 < count($value['exclude']) ) {
|
| 225 |
$value_exclude = join( ', ', $value['exclude'] );
|
| 226 |
} else {
|
|
@@ -237,7 +237,7 @@ class WPMaintenanceMode_Settings {
|
|
| 237 |
</tr>
|
| 238 |
<tr valign="top">
|
| 239 |
<th scope="row" class="alternate">
|
| 240 |
-
<label for="wm_config-role"><?php _e( 'Role
|
| 241 |
</th>
|
| 242 |
<td class="alternate">
|
| 243 |
<select name="wm_config-role" id="wm_config-role">
|
|
@@ -268,7 +268,7 @@ class WPMaintenanceMode_Settings {
|
|
| 268 |
</tr>
|
| 269 |
<tr valign="top">
|
| 270 |
<th scope="row" class="alternate">
|
| 271 |
-
<label for="wm_config-role_frontend"><?php _e( 'Role
|
| 272 |
</th>
|
| 273 |
<td class="alternate">
|
| 274 |
<select name="wm_config-role_frontend" id="wm_config-role_frontend">
|
|
@@ -299,7 +299,7 @@ class WPMaintenanceMode_Settings {
|
|
| 299 |
</tr>
|
| 300 |
<tr valign="top">
|
| 301 |
<th scope="row" class="alternate">
|
| 302 |
-
<label for="wm_config-rewrite"><?php _e( '
|
| 303 |
</th>
|
| 304 |
<td class="alternate">
|
| 305 |
<input class="large-text" size="30" type="text" id="wm_config-rewrite" name="wm_config-rewrite" value="<?php if ( isset($value['rewrite']) ) echo $value['rewrite']; ?>" />
|
| 24 |
//if ( 0 < count($_POST['checked']) )
|
| 25 |
// return;
|
| 26 |
|
| 27 |
+
if ( is_multisite() && is_plugin_active_for_network( FB_WM_BASENAME ) )
|
| 28 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 29 |
else
|
| 30 |
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 216 |
</tr>
|
| 217 |
<tr valign="top">
|
| 218 |
<th scope="row">
|
| 219 |
+
<label for="wm_config-exclude"><?php _e( 'Exclude:', FB_WM_TEXTDOMAIN ); ?></label>
|
| 220 |
</th>
|
| 221 |
<td>
|
| 222 |
+
<?php
|
| 223 |
+
if ( isset($value['exclude']) && '' !== $value['exclude'][0] ) {
|
| 224 |
if ( 1 < count($value['exclude']) ) {
|
| 225 |
$value_exclude = join( ', ', $value['exclude'] );
|
| 226 |
} else {
|
| 237 |
</tr>
|
| 238 |
<tr valign="top">
|
| 239 |
<th scope="row" class="alternate">
|
| 240 |
+
<label for="wm_config-role"><?php _e( 'Backend Role:', FB_WM_TEXTDOMAIN ); ?></label>
|
| 241 |
</th>
|
| 242 |
<td class="alternate">
|
| 243 |
<select name="wm_config-role" id="wm_config-role">
|
| 268 |
</tr>
|
| 269 |
<tr valign="top">
|
| 270 |
<th scope="row" class="alternate">
|
| 271 |
+
<label for="wm_config-role_frontend"><?php _e( 'Frontend Role:', FB_WM_TEXTDOMAIN ); ?></label>
|
| 272 |
</th>
|
| 273 |
<td class="alternate">
|
| 274 |
<select name="wm_config-role_frontend" id="wm_config-role_frontend">
|
| 299 |
</tr>
|
| 300 |
<tr valign="top">
|
| 301 |
<th scope="row" class="alternate">
|
| 302 |
+
<label for="wm_config-rewrite"><?php _e( 'Redirection:', FB_WM_TEXTDOMAIN ); ?></label>
|
| 303 |
</th>
|
| 304 |
<td class="alternate">
|
| 305 |
<input class="large-text" size="30" type="text" id="wm_config-rewrite" name="wm_config-rewrite" value="<?php if ( isset($value['rewrite']) ) echo $value['rewrite']; ?>" />
|
languages/wp-maintenance-mode-de_DE.mo
CHANGED
|
Binary file
|
languages/wp-maintenance-mode-de_DE.po
CHANGED
|
@@ -2,7 +2,7 @@ msgid ""
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: \n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
-
"POT-Creation-Date: 2012-11-
|
| 6 |
"PO-Revision-Date: \n"
|
| 7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
| 8 |
"Language-Team: \n"
|
|
@@ -423,7 +423,8 @@ msgstr ""
|
|
| 423 |
|
| 424 |
# @ wp-maintenance-mode
|
| 425 |
#: inc/wp-maintenance-mode-settings.php:219
|
| 426 |
-
|
|
|
|
| 427 |
msgstr "Ausnahmen:"
|
| 428 |
|
| 429 |
# @ wp-maintenance-mode
|
|
@@ -437,8 +438,8 @@ msgstr ""
|
|
| 437 |
">Beispiel:"
|
| 438 |
|
| 439 |
#: inc/wp-maintenance-mode-settings.php:240
|
| 440 |
-
msgid "Role
|
| 441 |
-
msgstr "
|
| 442 |
|
| 443 |
# @ wp-maintenance-mode
|
| 444 |
#: inc/wp-maintenance-mode-settings.php:265
|
|
@@ -452,8 +453,8 @@ msgid "Super Admin has always access."
|
|
| 452 |
msgstr "Super Admin hat immer Zugang."
|
| 453 |
|
| 454 |
#: inc/wp-maintenance-mode-settings.php:271
|
| 455 |
-
msgid "Role
|
| 456 |
-
msgstr "
|
| 457 |
|
| 458 |
# @ wp-maintenance-mode
|
| 459 |
#: inc/wp-maintenance-mode-settings.php:296
|
|
@@ -461,7 +462,7 @@ msgid "Allowed userrole to see the frontend of this blog."
|
|
| 461 |
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
| 462 |
|
| 463 |
#: inc/wp-maintenance-mode-settings.php:302
|
| 464 |
-
msgid "
|
| 465 |
msgstr "Weiterleitung:"
|
| 466 |
|
| 467 |
#: inc/wp-maintenance-mode-settings.php:307
|
|
@@ -476,3 +477,6 @@ msgstr ""
|
|
| 476 |
#: inc/wp-maintenance-mode-settings.php:316
|
| 477 |
msgid "Save"
|
| 478 |
msgstr "Speichern"
|
|
|
|
|
|
|
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: \n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2012-11-14 12:06+0100\n"
|
| 6 |
"PO-Revision-Date: \n"
|
| 7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
| 8 |
"Language-Team: \n"
|
| 423 |
|
| 424 |
# @ wp-maintenance-mode
|
| 425 |
#: inc/wp-maintenance-mode-settings.php:219
|
| 426 |
+
#, fuzzy
|
| 427 |
+
msgid "Exclude:"
|
| 428 |
msgstr "Ausnahmen:"
|
| 429 |
|
| 430 |
# @ wp-maintenance-mode
|
| 438 |
">Beispiel:"
|
| 439 |
|
| 440 |
#: inc/wp-maintenance-mode-settings.php:240
|
| 441 |
+
msgid "Backend Role:"
|
| 442 |
+
msgstr "Backendrolle:"
|
| 443 |
|
| 444 |
# @ wp-maintenance-mode
|
| 445 |
#: inc/wp-maintenance-mode-settings.php:265
|
| 453 |
msgstr "Super Admin hat immer Zugang."
|
| 454 |
|
| 455 |
#: inc/wp-maintenance-mode-settings.php:271
|
| 456 |
+
msgid "Frontend Role:"
|
| 457 |
+
msgstr "Frontendrolle:"
|
| 458 |
|
| 459 |
# @ wp-maintenance-mode
|
| 460 |
#: inc/wp-maintenance-mode-settings.php:296
|
| 462 |
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
| 463 |
|
| 464 |
#: inc/wp-maintenance-mode-settings.php:302
|
| 465 |
+
msgid "Redirection:"
|
| 466 |
msgstr "Weiterleitung:"
|
| 467 |
|
| 468 |
#: inc/wp-maintenance-mode-settings.php:307
|
| 477 |
#: inc/wp-maintenance-mode-settings.php:316
|
| 478 |
msgid "Save"
|
| 479 |
msgstr "Speichern"
|
| 480 |
+
|
| 481 |
+
#~ msgid "Rewrite:"
|
| 482 |
+
#~ msgstr "Weiterleitung:"
|
languages/wp-maintenance-mode-xx_XX.pot
CHANGED
|
@@ -2,7 +2,7 @@ msgid ""
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: \n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
-
"POT-Creation-Date: 2012-11-
|
| 6 |
"PO-Revision-Date: \n"
|
| 7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
| 8 |
"Language-Team: \n"
|
|
@@ -423,7 +423,8 @@ msgstr ""
|
|
| 423 |
|
| 424 |
# @ wp-maintenance-mode
|
| 425 |
#: inc/wp-maintenance-mode-settings.php:219
|
| 426 |
-
|
|
|
|
| 427 |
msgstr "Ausnahmen:"
|
| 428 |
|
| 429 |
# @ wp-maintenance-mode
|
|
@@ -437,8 +438,8 @@ msgstr ""
|
|
| 437 |
">Beispiel:"
|
| 438 |
|
| 439 |
#: inc/wp-maintenance-mode-settings.php:240
|
| 440 |
-
msgid "Role
|
| 441 |
-
msgstr "
|
| 442 |
|
| 443 |
# @ wp-maintenance-mode
|
| 444 |
#: inc/wp-maintenance-mode-settings.php:265
|
|
@@ -452,8 +453,8 @@ msgid "Super Admin has always access."
|
|
| 452 |
msgstr "Super Admin hat immer Zugang."
|
| 453 |
|
| 454 |
#: inc/wp-maintenance-mode-settings.php:271
|
| 455 |
-
msgid "Role
|
| 456 |
-
msgstr "
|
| 457 |
|
| 458 |
# @ wp-maintenance-mode
|
| 459 |
#: inc/wp-maintenance-mode-settings.php:296
|
|
@@ -461,7 +462,7 @@ msgid "Allowed userrole to see the frontend of this blog."
|
|
| 461 |
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
| 462 |
|
| 463 |
#: inc/wp-maintenance-mode-settings.php:302
|
| 464 |
-
msgid "
|
| 465 |
msgstr "Weiterleitung:"
|
| 466 |
|
| 467 |
#: inc/wp-maintenance-mode-settings.php:307
|
|
@@ -476,3 +477,6 @@ msgstr ""
|
|
| 476 |
#: inc/wp-maintenance-mode-settings.php:316
|
| 477 |
msgid "Save"
|
| 478 |
msgstr "Speichern"
|
|
|
|
|
|
|
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: \n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2012-11-14 12:06+0100\n"
|
| 6 |
"PO-Revision-Date: \n"
|
| 7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
| 8 |
"Language-Team: \n"
|
| 423 |
|
| 424 |
# @ wp-maintenance-mode
|
| 425 |
#: inc/wp-maintenance-mode-settings.php:219
|
| 426 |
+
#, fuzzy
|
| 427 |
+
msgid "Exclude:"
|
| 428 |
msgstr "Ausnahmen:"
|
| 429 |
|
| 430 |
# @ wp-maintenance-mode
|
| 438 |
">Beispiel:"
|
| 439 |
|
| 440 |
#: inc/wp-maintenance-mode-settings.php:240
|
| 441 |
+
msgid "Backend Role:"
|
| 442 |
+
msgstr "Backendrolle:"
|
| 443 |
|
| 444 |
# @ wp-maintenance-mode
|
| 445 |
#: inc/wp-maintenance-mode-settings.php:265
|
| 453 |
msgstr "Super Admin hat immer Zugang."
|
| 454 |
|
| 455 |
#: inc/wp-maintenance-mode-settings.php:271
|
| 456 |
+
msgid "Frontend Role:"
|
| 457 |
+
msgstr "Frontendrolle:"
|
| 458 |
|
| 459 |
# @ wp-maintenance-mode
|
| 460 |
#: inc/wp-maintenance-mode-settings.php:296
|
| 462 |
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
| 463 |
|
| 464 |
#: inc/wp-maintenance-mode-settings.php:302
|
| 465 |
+
msgid "Redirection:"
|
| 466 |
msgstr "Weiterleitung:"
|
| 467 |
|
| 468 |
#: inc/wp-maintenance-mode-settings.php:307
|
| 477 |
#: inc/wp-maintenance-mode-settings.php:316
|
| 478 |
msgid "Save"
|
| 479 |
msgstr "Speichern"
|
| 480 |
+
|
| 481 |
+
#~ msgid "Rewrite:"
|
| 482 |
+
#~ msgstr "Weiterleitung:"
|
readme.txt
CHANGED
|
@@ -8,7 +8,7 @@ Donate link: http://bueltge.de/wunschliste/
|
|
| 8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
| 9 |
Requires at least: 2.6
|
| 10 |
Tested up to: 3.5-beta3
|
| 11 |
-
Stable tag: 1.8.
|
| 12 |
|
| 13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
|
| 14 |
|
|
@@ -242,6 +242,10 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 242 |
|
| 243 |
|
| 244 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
= 1.8.2 =
|
| 246 |
* Add different access for Frontend and Backend
|
| 247 |
* Add Rewrite after Login for Frontend Access
|
| 8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
| 9 |
Requires at least: 2.6
|
| 10 |
Tested up to: 3.5-beta3
|
| 11 |
+
Stable tag: 1.8.3
|
| 12 |
|
| 13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
|
| 14 |
|
| 242 |
|
| 243 |
|
| 244 |
== Changelog ==
|
| 245 |
+
= 1.8.3 =
|
| 246 |
+
* Fix for the forgotten update of JS-files; slow SVN :(
|
| 247 |
+
* Minor Fixes, see (Bugtracker)[http://bueltge.de/bt/view.php?id=2]
|
| 248 |
+
|
| 249 |
= 1.8.2 =
|
| 250 |
* Add different access for Frontend and Backend
|
| 251 |
* Add Rewrite after Login for Frontend Access
|
uninstall.php
CHANGED
|
@@ -2,10 +2,7 @@
|
|
| 2 |
if( ! defined( 'ABSPATH' ) && ! defined( 'WP_UNINSTALL_PLUGIN' ) )
|
| 3 |
exit();
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
delete_option( 'wp-maintenance-mode' );
|
| 10 |
-
delete_option( 'wp-maintenance-mode-msqd' );
|
| 11 |
-
}
|
| 2 |
if( ! defined( 'ABSPATH' ) && ! defined( 'WP_UNINSTALL_PLUGIN' ) )
|
| 3 |
exit();
|
| 4 |
|
| 5 |
+
add_site_option( 'wp-maintenance-mode' );
|
| 6 |
+
add_site_option( 'wp-maintenance-mode-msqd' );
|
| 7 |
+
delete_option( 'wp-maintenance-mode' );
|
| 8 |
+
delete_option( 'wp-maintenance-mode-msqd' );
|
|
|
|
|
|
|
|
|
wp-maintenance-mode.php
CHANGED
|
@@ -8,9 +8,9 @@
|
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
-
* Version: 1.8.
|
| 12 |
-
* Last change: 11/
|
| 13 |
-
*
|
| 14 |
*
|
| 15 |
*
|
| 16 |
* License:
|
|
@@ -33,7 +33,7 @@
|
|
| 33 |
*
|
| 34 |
* Requirements:
|
| 35 |
* ==============================================================================
|
| 36 |
-
* This plugin requires WordPress >= 2.6 and tested with PHP
|
| 37 |
*/
|
| 38 |
|
| 39 |
//avoid direct calls to this file, because now WP core and framework has been used
|
|
@@ -235,7 +235,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 235 |
'unit' => 1,
|
| 236 |
'title' => __( 'Maintenance mode', FB_WM_TEXTDOMAIN ),
|
| 237 |
'text' => __( '<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>', FB_WM_TEXTDOMAIN ),
|
| 238 |
-
'exclude' => 'wp-cron, feed,
|
| 239 |
);
|
| 240 |
// if is active in network of multisite
|
| 241 |
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
|
@@ -383,7 +383,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 383 |
return NULL;
|
| 384 |
|
| 385 |
// check, Access to backend
|
| 386 |
-
if ( current_user_can( $value['role'][0] ) )
|
| 387 |
return NULL;
|
| 388 |
|
| 389 |
// redirect for wp-admin
|
|
@@ -429,6 +429,9 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 429 |
if ( ! isset( $value['role'][0] ) || ( '' != $value['role'][0] ) )
|
| 430 |
$role = 'manage_options';
|
| 431 |
|
|
|
|
|
|
|
|
|
|
| 432 |
if ( is_admin() )
|
| 433 |
$current = $value['role'][0];
|
| 434 |
else
|
|
@@ -887,5 +890,3 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 887 |
|
| 888 |
$GLOBALS['WPMaintenanceMode'] = new WPMaintenanceMode();
|
| 889 |
}
|
| 890 |
-
|
| 891 |
-
?>
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
+
* Version: 1.8.3
|
| 12 |
+
* Last change: 11/15/2012
|
| 13 |
+
* License: GPLv3
|
| 14 |
*
|
| 15 |
*
|
| 16 |
* License:
|
| 33 |
*
|
| 34 |
* Requirements:
|
| 35 |
* ==============================================================================
|
| 36 |
+
* This plugin requires WordPress >= 2.6 and tested with PHP >= 5.3, WP 3.5*
|
| 37 |
*/
|
| 38 |
|
| 39 |
//avoid direct calls to this file, because now WP core and framework has been used
|
| 235 |
'unit' => 1,
|
| 236 |
'title' => __( 'Maintenance mode', FB_WM_TEXTDOMAIN ),
|
| 237 |
'text' => __( '<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>', FB_WM_TEXTDOMAIN ),
|
| 238 |
+
'exclude' => 'wp-cron, feed, login'
|
| 239 |
);
|
| 240 |
// if is active in network of multisite
|
| 241 |
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
| 383 |
return NULL;
|
| 384 |
|
| 385 |
// check, Access to backend
|
| 386 |
+
if ( isset( $value['role'][0] ) && current_user_can( $value['role'][0] ) )
|
| 387 |
return NULL;
|
| 388 |
|
| 389 |
// redirect for wp-admin
|
| 429 |
if ( ! isset( $value['role'][0] ) || ( '' != $value['role'][0] ) )
|
| 430 |
$role = 'manage_options';
|
| 431 |
|
| 432 |
+
if ( ! isset( $value['role_frontend'][0] ) )
|
| 433 |
+
$value['role_frontend'][0] = 'manage_options';
|
| 434 |
+
|
| 435 |
if ( is_admin() )
|
| 436 |
$current = $value['role'][0];
|
| 437 |
else
|
| 890 |
|
| 891 |
$GLOBALS['WPMaintenanceMode'] = new WPMaintenanceMode();
|
| 892 |
}
|
|
|
|
|
|
