Plugin Directory

Changeset 3487783


Ignore:
Timestamp:
03/21/2026 01:26:14 PM (13 days ago)
Author:
lckcloud
Message:

Release 1.0.7: add wildcard support for access rules

Location:
lck-cloud-connector
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • lck-cloud-connector/tags/1.0.7/lck-cloud-connector.php

    r3456651 r3487783  
    44Plugin URI: https://www.lck-cloud.jp/plugin.html
    55Description: Official connector plugin to securely link WordPress and LCK cloud using SaaS Bridge Architecture. Isolates member management and payments to the cloud for enhanced security.
    6 Version: 1.0.6
     6Version: 1.0.7
    77Author: LCK cloud (Telecommunications Business Operator E-02-04640)
    88Author URI: https://www.lck-cloud.jp/about.html
     
    112112        $options = get_option( 'lck_cloud_settings' );
    113113        $val     = isset( $options['lck_set'] ) ? $options['lck_set'] : '';
    114         echo '<textarea name="lck_cloud_settings[lck_set]" rows="5" cols="50" class="regular-text" placeholder="/member/,group_id">' . esc_textarea( $val ) . '</textarea>';
     114        $placeholder = "/member/,group_A\n/service_*/,group_A,group_B";
     115        echo '<textarea name="lck_cloud_settings[lck_set]" rows="5" cols="50" class="regular-text" placeholder="' . esc_attr( $placeholder ) . '">' . esc_textarea( $val ) . '</textarea>';
    115116    }
    116117
     
    147148            $target_path = trim( $v2[0] );
    148149            $target_grp  = ( isset( $v2[1] ) ) ? trim( $v2[1] ) : '';
    149             $pattern     = preg_quote( $target_path, '/' );
     150            $pattern    = str_replace('\*', '.*', preg_quote( $target_path, '/' ));
    150151            if ( preg_match( '/' . $pattern . '/', $current_uri ) ) {
    151152                $f   = 1;
  • lck-cloud-connector/tags/1.0.7/readme.txt

    r3456653 r3487783  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525* **Membership Management:** Seamless integration and stable operation with LCK cloud.
    2626* **Access Control:** "Members Only" settings for individual pages or entire categories.
     27* **Flexible Access Rules:** Supports wildcard (*) for dynamic path matching.
    2728* **Automatic Redirect:** Automatically guides non-logged-in users to the secure login screen.
    2829* **No-Code Design:** Admin interface that eliminates the need to edit WordPress `functions.php`.
     
    9697== Changelog ==
    9798
     99= 1.0.7 =
     100* Added: Wildcard (*) support in access restriction rules for flexible URL matching.
     101* Improved: Enhanced access rule matching logic while maintaining safe pattern handling.
     102
    98103= 1.0.6 =
    99104* Improved: Migrated API communication method to POST request (wp_remote_post) for enhanced security and data privacy.
  • lck-cloud-connector/trunk/lck-cloud-connector.php

    r3456651 r3487783  
    44Plugin URI: https://www.lck-cloud.jp/plugin.html
    55Description: Official connector plugin to securely link WordPress and LCK cloud using SaaS Bridge Architecture. Isolates member management and payments to the cloud for enhanced security.
    6 Version: 1.0.6
     6Version: 1.0.7
    77Author: LCK cloud (Telecommunications Business Operator E-02-04640)
    88Author URI: https://www.lck-cloud.jp/about.html
     
    112112        $options = get_option( 'lck_cloud_settings' );
    113113        $val     = isset( $options['lck_set'] ) ? $options['lck_set'] : '';
    114         echo '<textarea name="lck_cloud_settings[lck_set]" rows="5" cols="50" class="regular-text" placeholder="/member/,group_id">' . esc_textarea( $val ) . '</textarea>';
     114        $placeholder = "/member/,group_A\n/service_*/,group_A,group_B";
     115        echo '<textarea name="lck_cloud_settings[lck_set]" rows="5" cols="50" class="regular-text" placeholder="' . esc_attr( $placeholder ) . '">' . esc_textarea( $val ) . '</textarea>';
    115116    }
    116117
     
    147148            $target_path = trim( $v2[0] );
    148149            $target_grp  = ( isset( $v2[1] ) ) ? trim( $v2[1] ) : '';
    149             $pattern     = preg_quote( $target_path, '/' );
     150            $pattern    = str_replace('\*', '.*', preg_quote( $target_path, '/' ));
    150151            if ( preg_match( '/' . $pattern . '/', $current_uri ) ) {
    151152                $f   = 1;
  • lck-cloud-connector/trunk/readme.txt

    r3456653 r3487783  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525* **Membership Management:** Seamless integration and stable operation with LCK cloud.
    2626* **Access Control:** "Members Only" settings for individual pages or entire categories.
     27* **Flexible Access Rules:** Supports wildcard (*) for dynamic path matching.
    2728* **Automatic Redirect:** Automatically guides non-logged-in users to the secure login screen.
    2829* **No-Code Design:** Admin interface that eliminates the need to edit WordPress `functions.php`.
     
    9697== Changelog ==
    9798
     99= 1.0.7 =
     100* Added: Wildcard (*) support in access restriction rules for flexible URL matching.
     101* Improved: Enhanced access rule matching logic while maintaining safe pattern handling.
     102
    98103= 1.0.6 =
    99104* Improved: Migrated API communication method to POST request (wp_remote_post) for enhanced security and data privacy.
Note: See TracChangeset for help on using the changeset viewer.