Changeset 3207482
- Timestamp:
- 12/13/2024 09:34:10 AM (16 months ago)
- Location:
- maintainer
- Files:
-
- 1 added
- 11 edited
- 10 copied
-
tags/1.1.1 (added)
-
tags/1.1.1/LICENSE (copied) (copied from maintainer/trunk/LICENSE)
-
tags/1.1.1/README.md (copied) (copied from maintainer/trunk/README.md) (2 diffs)
-
tags/1.1.1/assets (copied) (copied from maintainer/trunk/assets)
-
tags/1.1.1/composer.json (copied) (copied from maintainer/trunk/composer.json) (1 diff)
-
tags/1.1.1/index.php (copied) (copied from maintainer/trunk/index.php)
-
tags/1.1.1/languages (copied) (copied from maintainer/trunk/languages)
-
tags/1.1.1/maintainer.php (copied) (copied from maintainer/trunk/maintainer.php) (2 diffs)
-
tags/1.1.1/src (copied) (copied from maintainer/trunk/src)
-
tags/1.1.1/src/Frontend/Controllers/Init.php (modified) (2 diffs)
-
tags/1.1.1/templates (copied) (copied from maintainer/trunk/templates)
-
tags/1.1.1/vendor (copied) (copied from maintainer/trunk/vendor)
-
tags/1.1.1/vendor/composer/installed.json (modified) (3 diffs)
-
tags/1.1.1/vendor/composer/installed.php (modified) (1 diff)
-
tags/1.1.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php (modified) (1 diff)
-
trunk/README.md (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/maintainer.php (modified) (2 diffs)
-
trunk/src/Frontend/Controllers/Init.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (1 diff)
-
trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
maintainer/tags/1.1.1/README.md
r3207476 r3207482 4 4 Requires at least: 4.7 5 5 Tested up to: 6.7 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 Requires PHP: 7.3.5 8 8 License: GPLv2 or later … … 124 124 - Fixed color issues for consistent appearance 125 125 - Enhanced user interface on the settings page for a more intuitive experience 126 127 = 1.1.1 = 128 129 - Fixed a bug where the plugin affected the frontend styles while not in maintenance mode -
maintainer/tags/1.1.1/composer.json
r3207476 r3207482 10 10 "require": { 11 11 "php": ">=7.2.0", 12 "matterwp/wp-subscription-manager": "^0.0. 2"12 "matterwp/wp-subscription-manager": "^0.0.3" 13 13 }, 14 14 "authors": [ -
maintainer/tags/1.1.1/maintainer.php
r3207476 r3207482 4 4 * Plugin URI: https://matterwp.com/plugins/maintainer 5 5 * Description: Fast, simple WordPress maintenance mode and coming soon pages. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: MatterWP 8 8 * Author URI: https://matterwp.com … … 36 36 */ 37 37 define( 'MAINTAINER_NAME', 'maintainer' ); 38 define( 'MAINTAINER_VERSION', '1.1. 0' );38 define( 'MAINTAINER_VERSION', '1.1.1' ); 39 39 define( 'MAINTAINER_FILE', __FILE__ ); 40 40 define( 'MAINTAINER_PLUGIN_DIR', trailingslashit( dirname( MAINTAINER_FILE ) ) ); -
maintainer/tags/1.1.1/src/Frontend/Controllers/Init.php
r3196204 r3207482 138 138 */ 139 139 public function styles() { 140 // Enqueue main stylesheet 141 140 // Only enqueue styles if maintenance mode is active and user should see maintenance page 141 $maintainer_active = get_option('maintainer_active'); 142 $maintainer_query = get_option('maintainer_query'); 143 $maintainer_roles = get_option('maintainer_roles', array()); 144 $maintainer_ips = get_option('maintainer_ips', array()); 145 146 // Exit early if maintenance mode is not active 147 if (!$maintainer_active) { 148 return; 149 } 150 151 // Check if user has allowed role 152 if (is_user_logged_in() && !empty($maintainer_roles)) { 153 $user = wp_get_current_user(); 154 foreach ($maintainer_roles as $role) { 155 if (in_array($role, (array) $user->roles)) { 156 return; 157 } 158 } 159 } 160 161 // Check if user has allowed IP 162 if (!empty($maintainer_ips)) { 163 $current_ip = $this->getClientIP(); 164 foreach ($maintainer_ips as $allowed_ip) { 165 if (trim($allowed_ip) === $current_ip) { 166 return; 167 } 168 } 169 } 170 171 // Check for preview parameter 172 if (isset($_GET['mp'], $_GET['_wpnonce']) && 173 wp_verify_nonce(sanitize_key($_GET['_wpnonce']), 'maintainer_preview') && 174 $_GET['mp'] === $maintainer_query 175 ) { 176 return; 177 } 178 179 // If we get here, enqueue maintenance styles 142 180 wp_enqueue_style( 143 181 $this->plugin_name, … … 169 207 170 208 // Add inline styles 171 wp_add_inline_style( $this->plugin_name, $inline_styles);209 wp_add_inline_style($this->plugin_name, $inline_styles); 172 210 } 173 211 -
maintainer/tags/1.1.1/vendor/composer/installed.json
r3207469 r3207482 3 3 { 4 4 "name": "matterwp/wp-subscription-manager", 5 "version": "v0.0. 2",6 "version_normalized": "0.0. 2.0",5 "version": "v0.0.3", 6 "version_normalized": "0.0.3.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/matterwp/matterwp-subscription-manager.git", 10 "reference": " 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f"10 "reference": "482ebdc19603dad0830850481c36a22daea5d888" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/ 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f",15 "reference": " 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f",14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/482ebdc19603dad0830850481c36a22daea5d888", 15 "reference": "482ebdc19603dad0830850481c36a22daea5d888", 16 16 "shasum": "" 17 17 }, … … 19 19 "php": ">=7.3.5" 20 20 }, 21 "time": "2024-12-13T09: 01:45+00:00",21 "time": "2024-12-13T09:30:03+00:00", 22 22 "type": "wordpress-plugin", 23 23 "installation-source": "dist", … … 40 40 "support": { 41 41 "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues", 42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0. 2"42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.3" 43 43 }, 44 44 "install-path": "../matterwp/wp-subscription-manager" -
maintainer/tags/1.1.1/vendor/composer/installed.php
r3207469 r3207482 21 21 ), 22 22 'matterwp/wp-subscription-manager' => array( 23 'pretty_version' => 'v0.0. 2',24 'version' => '0.0. 2.0',25 'reference' => ' 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f',23 'pretty_version' => 'v0.0.3', 24 'version' => '0.0.3.0', 25 'reference' => '482ebdc19603dad0830850481c36a22daea5d888', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager', -
maintainer/tags/1.1.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php
r3207469 r3207482 62 62 font-size: 22px; 63 63 font-weight: 600; 64 } 65 66 .mttr-subscribe-panel-content .notice { 67 display: none !important; 64 68 } 65 69 -
maintainer/trunk/README.md
r3207476 r3207482 4 4 Requires at least: 4.7 5 5 Tested up to: 6.7 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 Requires PHP: 7.3.5 8 8 License: GPLv2 or later … … 124 124 - Fixed color issues for consistent appearance 125 125 - Enhanced user interface on the settings page for a more intuitive experience 126 127 = 1.1.1 = 128 129 - Fixed a bug where the plugin affected the frontend styles while not in maintenance mode -
maintainer/trunk/composer.json
r3207469 r3207482 10 10 "require": { 11 11 "php": ">=7.2.0", 12 "matterwp/wp-subscription-manager": "^0.0. 2"12 "matterwp/wp-subscription-manager": "^0.0.3" 13 13 }, 14 14 "authors": [ -
maintainer/trunk/maintainer.php
r3207469 r3207482 4 4 * Plugin URI: https://matterwp.com/plugins/maintainer 5 5 * Description: Fast, simple WordPress maintenance mode and coming soon pages. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: MatterWP 8 8 * Author URI: https://matterwp.com … … 36 36 */ 37 37 define( 'MAINTAINER_NAME', 'maintainer' ); 38 define( 'MAINTAINER_VERSION', '1.1. 0' );38 define( 'MAINTAINER_VERSION', '1.1.1' ); 39 39 define( 'MAINTAINER_FILE', __FILE__ ); 40 40 define( 'MAINTAINER_PLUGIN_DIR', trailingslashit( dirname( MAINTAINER_FILE ) ) ); -
maintainer/trunk/src/Frontend/Controllers/Init.php
r3196204 r3207482 138 138 */ 139 139 public function styles() { 140 // Enqueue main stylesheet 141 140 // Only enqueue styles if maintenance mode is active and user should see maintenance page 141 $maintainer_active = get_option('maintainer_active'); 142 $maintainer_query = get_option('maintainer_query'); 143 $maintainer_roles = get_option('maintainer_roles', array()); 144 $maintainer_ips = get_option('maintainer_ips', array()); 145 146 // Exit early if maintenance mode is not active 147 if (!$maintainer_active) { 148 return; 149 } 150 151 // Check if user has allowed role 152 if (is_user_logged_in() && !empty($maintainer_roles)) { 153 $user = wp_get_current_user(); 154 foreach ($maintainer_roles as $role) { 155 if (in_array($role, (array) $user->roles)) { 156 return; 157 } 158 } 159 } 160 161 // Check if user has allowed IP 162 if (!empty($maintainer_ips)) { 163 $current_ip = $this->getClientIP(); 164 foreach ($maintainer_ips as $allowed_ip) { 165 if (trim($allowed_ip) === $current_ip) { 166 return; 167 } 168 } 169 } 170 171 // Check for preview parameter 172 if (isset($_GET['mp'], $_GET['_wpnonce']) && 173 wp_verify_nonce(sanitize_key($_GET['_wpnonce']), 'maintainer_preview') && 174 $_GET['mp'] === $maintainer_query 175 ) { 176 return; 177 } 178 179 // If we get here, enqueue maintenance styles 142 180 wp_enqueue_style( 143 181 $this->plugin_name, … … 169 207 170 208 // Add inline styles 171 wp_add_inline_style( $this->plugin_name, $inline_styles);209 wp_add_inline_style($this->plugin_name, $inline_styles); 172 210 } 173 211 -
maintainer/trunk/vendor/composer/installed.json
r3207469 r3207482 3 3 { 4 4 "name": "matterwp/wp-subscription-manager", 5 "version": "v0.0. 2",6 "version_normalized": "0.0. 2.0",5 "version": "v0.0.3", 6 "version_normalized": "0.0.3.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/matterwp/matterwp-subscription-manager.git", 10 "reference": " 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f"10 "reference": "482ebdc19603dad0830850481c36a22daea5d888" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/ 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f",15 "reference": " 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f",14 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/482ebdc19603dad0830850481c36a22daea5d888", 15 "reference": "482ebdc19603dad0830850481c36a22daea5d888", 16 16 "shasum": "" 17 17 }, … … 19 19 "php": ">=7.3.5" 20 20 }, 21 "time": "2024-12-13T09: 01:45+00:00",21 "time": "2024-12-13T09:30:03+00:00", 22 22 "type": "wordpress-plugin", 23 23 "installation-source": "dist", … … 40 40 "support": { 41 41 "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues", 42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0. 2"42 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.3" 43 43 }, 44 44 "install-path": "../matterwp/wp-subscription-manager" -
maintainer/trunk/vendor/composer/installed.php
r3207469 r3207482 21 21 ), 22 22 'matterwp/wp-subscription-manager' => array( 23 'pretty_version' => 'v0.0. 2',24 'version' => '0.0. 2.0',25 'reference' => ' 27b4965e1dbba1ae92e273b2ad179dc42c1ef03f',23 'pretty_version' => 'v0.0.3', 24 'version' => '0.0.3.0', 25 'reference' => '482ebdc19603dad0830850481c36a22daea5d888', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager', -
maintainer/trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php
r3207469 r3207482 62 62 font-size: 22px; 63 63 font-weight: 600; 64 } 65 66 .mttr-subscribe-panel-content .notice { 67 display: none !important; 64 68 } 65 69
Note: See TracChangeset
for help on using the changeset viewer.