Plugin Directory

Changeset 3207482


Ignore:
Timestamp:
12/13/2024 09:34:10 AM (16 months ago)
Author:
atakanoz
Message:

Release hotfix version 1.1.1

Location:
maintainer
Files:
1 added
11 edited
10 copied

Legend:

Unmodified
Added
Removed
  • maintainer/tags/1.1.1/README.md

    r3207476 r3207482  
    44Requires at least: 4.7
    55Tested up to: 6.7
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77Requires PHP: 7.3.5
    88License: GPLv2 or later
     
    124124- Fixed color issues for consistent appearance
    125125- 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  
    1010    "require": {
    1111        "php": ">=7.2.0",
    12         "matterwp/wp-subscription-manager": "^0.0.2"
     12        "matterwp/wp-subscription-manager": "^0.0.3"
    1313    },
    1414    "authors": [
  • maintainer/tags/1.1.1/maintainer.php

    r3207476 r3207482  
    44 * Plugin URI:        https://matterwp.com/plugins/maintainer
    55 * Description:       Fast, simple WordPress maintenance mode and coming soon pages.
    6  * Version:           1.1.0
     6 * Version:           1.1.1
    77 * Author:            MatterWP
    88 * Author URI:        https://matterwp.com
     
    3636 */
    3737define( 'MAINTAINER_NAME', 'maintainer' );
    38 define( 'MAINTAINER_VERSION', '1.1.0' );
     38define( 'MAINTAINER_VERSION', '1.1.1' );
    3939define( 'MAINTAINER_FILE', __FILE__ );
    4040define( 'MAINTAINER_PLUGIN_DIR', trailingslashit( dirname( MAINTAINER_FILE ) ) );
  • maintainer/tags/1.1.1/src/Frontend/Controllers/Init.php

    r3196204 r3207482  
    138138     */
    139139    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
    142180        wp_enqueue_style(
    143181            $this->plugin_name,
     
    169207
    170208        // Add inline styles
    171         wp_add_inline_style( $this->plugin_name, $inline_styles );
     209        wp_add_inline_style($this->plugin_name, $inline_styles);
    172210    }
    173211
  • maintainer/tags/1.1.1/vendor/composer/installed.json

    r3207469 r3207482  
    33        {
    44            "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",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/matterwp/matterwp-subscription-manager.git",
    10                 "reference": "27b4965e1dbba1ae92e273b2ad179dc42c1ef03f"
     10                "reference": "482ebdc19603dad0830850481c36a22daea5d888"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    1919                "php": ">=7.3.5"
    2020            },
    21             "time": "2024-12-13T09:01:45+00:00",
     21            "time": "2024-12-13T09:30:03+00:00",
    2222            "type": "wordpress-plugin",
    2323            "installation-source": "dist",
     
    4040            "support": {
    4141                "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"
    4343            },
    4444            "install-path": "../matterwp/wp-subscription-manager"
  • maintainer/tags/1.1.1/vendor/composer/installed.php

    r3207469 r3207482  
    2121        ),
    2222        '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',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager',
  • maintainer/tags/1.1.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php

    r3207469 r3207482  
    6262    font-size: 22px;
    6363    font-weight: 600;
     64}
     65
     66.mttr-subscribe-panel-content .notice {
     67    display: none !important;
    6468}
    6569
  • maintainer/trunk/README.md

    r3207476 r3207482  
    44Requires at least: 4.7
    55Tested up to: 6.7
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77Requires PHP: 7.3.5
    88License: GPLv2 or later
     
    124124- Fixed color issues for consistent appearance
    125125- 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  
    1010    "require": {
    1111        "php": ">=7.2.0",
    12         "matterwp/wp-subscription-manager": "^0.0.2"
     12        "matterwp/wp-subscription-manager": "^0.0.3"
    1313    },
    1414    "authors": [
  • maintainer/trunk/maintainer.php

    r3207469 r3207482  
    44 * Plugin URI:        https://matterwp.com/plugins/maintainer
    55 * Description:       Fast, simple WordPress maintenance mode and coming soon pages.
    6  * Version:           1.1.0
     6 * Version:           1.1.1
    77 * Author:            MatterWP
    88 * Author URI:        https://matterwp.com
     
    3636 */
    3737define( 'MAINTAINER_NAME', 'maintainer' );
    38 define( 'MAINTAINER_VERSION', '1.1.0' );
     38define( 'MAINTAINER_VERSION', '1.1.1' );
    3939define( 'MAINTAINER_FILE', __FILE__ );
    4040define( 'MAINTAINER_PLUGIN_DIR', trailingslashit( dirname( MAINTAINER_FILE ) ) );
  • maintainer/trunk/src/Frontend/Controllers/Init.php

    r3196204 r3207482  
    138138     */
    139139    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
    142180        wp_enqueue_style(
    143181            $this->plugin_name,
     
    169207
    170208        // Add inline styles
    171         wp_add_inline_style( $this->plugin_name, $inline_styles );
     209        wp_add_inline_style($this->plugin_name, $inline_styles);
    172210    }
    173211
  • maintainer/trunk/vendor/composer/installed.json

    r3207469 r3207482  
    33        {
    44            "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",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/matterwp/matterwp-subscription-manager.git",
    10                 "reference": "27b4965e1dbba1ae92e273b2ad179dc42c1ef03f"
     10                "reference": "482ebdc19603dad0830850481c36a22daea5d888"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    1919                "php": ">=7.3.5"
    2020            },
    21             "time": "2024-12-13T09:01:45+00:00",
     21            "time": "2024-12-13T09:30:03+00:00",
    2222            "type": "wordpress-plugin",
    2323            "installation-source": "dist",
     
    4040            "support": {
    4141                "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"
    4343            },
    4444            "install-path": "../matterwp/wp-subscription-manager"
  • maintainer/trunk/vendor/composer/installed.php

    r3207469 r3207482  
    2121        ),
    2222        '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',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager',
  • maintainer/trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php

    r3207469 r3207482  
    6262    font-size: 22px;
    6363    font-weight: 600;
     64}
     65
     66.mttr-subscribe-panel-content .notice {
     67    display: none !important;
    6468}
    6569
Note: See TracChangeset for help on using the changeset viewer.