Plugin Directory

Changeset 3128968


Ignore:
Timestamp:
07/31/2024 05:44:30 PM (20 months ago)
Author:
pluginsandsnippets
Message:

trunk 1.0.29

Location:
simple-page-access-restriction/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-page-access-restriction/trunk/changelog.txt

    r3118664 r3128968  
     1= Version 1.0.29 - July 31, 2024 =
     2* Fix: Allow query parameters in the redirect URL
     3
    14= Version 1.0.28 - July 15, 2024 =
    25* Fix: Rating notice
  • simple-page-access-restriction/trunk/readme.txt

    r3119414 r3128968  
    88Tested up to: 6.5
    99Requires PHP: 5.6
    10 Stable Tag: 1.0.28
     10Stable Tag: 1.0.29
    1111License: GPL v2 or later
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    116116
    117117== Changelog ==
     118= Version 1.0.29 - July 31, 2024 =
     119* Fix: Allow query parameters in the redirect URL
     120
    118121= Version 1.0.28 - July 15, 2024 =
    119122* Fix: Rating notice
  • simple-page-access-restriction/trunk/simple-page-access-restriction.php

    r3118664 r3128968  
    44 * Plugin URI:        https://www.pluginsandsnippets.com/downloads/simple-page-access-restriction/
    55 * Description:       This plugin offers a simple way to restrict visits to select pages only to logged-in users and allows for page redirection to a defined (login) page of your choice.
    6  * Version:           1.0.28
     6 * Version:           1.0.29
    77 * Author:            Plugins & Snippets
    88 * Author URI:        https://www.pluginsandsnippets.com/
     
    8080
    8181            // Plugin related constants
    82             define( 'SIMPLE_PAGE_ACCESS_RESTRICTION_VER', '1.0.28' );
     82            define( 'SIMPLE_PAGE_ACCESS_RESTRICTION_VER', '1.0.29' );
    8383            define( 'SIMPLE_PAGE_ACCESS_RESTRICTION_NAME', 'Simple Page Access Restriction' );
    8484            define( 'SIMPLE_PAGE_ACCESS_RESTRICTION_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
     
    170170                    $settings['redirect_parameter'] = str_replace( '?', '', $settings['redirect_parameter'] );
    171171                   
    172                     $redirect_url = add_query_arg( $settings['redirect_parameter'], home_url() . $_SERVER['REQUEST_URI'], $redirect_url );
     172                    $redirect_url = add_query_arg( $settings['redirect_parameter'], urlencode( home_url() . $_SERVER['REQUEST_URI'] ), $redirect_url );
    173173                }
    174174
Note: See TracChangeset for help on using the changeset viewer.