Plugin Directory

Changeset 3361819


Ignore:
Timestamp:
09/15/2025 01:23:26 PM (6 months ago)
Author:
gwin
Message:

Version 1.0.3

Location:
custom-login-url/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-login-url/trunk/custom-login-url.php

    r1229346 r3361819  
    22/*
    33Plugin Name: Custom Login URL
    4 Plugin URI: http://wphelpdesk.com/custom-login-url/
     4Plugin URI: https://simpliko.pl
    55Description: Plugin allows to change: login, registration, lost password URLs to some custom URLs without modifying any files, simple and swift.
    6 Version: 1.0.2
     6Version: 1.0.3
    77Author: Simpliko
    8 Author URI: http://simpliko.pl
     8Author URI: https://simpliko.pl
    99License: GPLv2 or later
    1010*/
  • custom-login-url/trunk/functions-admin.php

    r864241 r3361819  
    2222    $options = get_option('clu_config');
    2323   
     24    if ( ! isset( $_POST['clu_config_nonce'] ) || ! wp_verify_nonce( $_POST['clu_config_nonce'], 'clu-config-nonce' ) ) {
     25        return[];
     26    }
     27
    2428    if(!is_array($options)) {
    2529        $options = array();
     
    5256function clu_login_url_input() {
    5357    $options = get_option('clu_config');
     58
     59    wp_nonce_field( 'clu-config-nonce', 'clu_config_nonce' );
     60
    5461    ?>
    5562        <code><?php esc_html_e(site_url()) ?></code>
    56         <input id='clu_login_url' name='clu_config[login]' size='40' type='text' value='<?php esc_attr_e($options["login"]) ?>' placeholder="/wp-login.php" />
     63        <input id='clu_login_url' name='clu_config[login]' size='40' type='text' value='<?php echo esc_attr($options["login"] ?? "") ?>' placeholder="/wp-login.php" />
    5764    <?php
    5865}
     
    6269    ?>
    6370        <code><?php esc_html_e(site_url()) ?></code>
    64         <input id='clu_register_url' name='clu_config[register]' size='40' type='text' value='<?php esc_attr_e($options["register"]) ?>' placeholder="/wp-login.php?action=register" />
     71        <input id='clu_register_url' name='clu_config[register]' size='40' type='text' value='<?php echo esc_attr($options["register"] ?? "") ?>' placeholder="/wp-login.php?action=register" />
    6572    <?php
    6673}
     
    7077    ?>
    7178        <code><?php esc_html_e(site_url()) ?></code>
    72         <input id='clu_lostpassword_url' name='clu_config[lostpassword]' size='40' type='text' value='<?php esc_attr_e($options["lostpassword"]) ?>' placeholder="/wp-login.php?action=lostpassword" />
     79        <input id='clu_lostpassword_url' name='clu_config[lostpassword]' size='40' type='text' value='<?php echo esc_attr($options["lostpassword"] ?? "") ?>' placeholder="/wp-login.php?action=lostpassword" />
    7380    <?php
    7481}
     
    7885    ?>
    7986        <code><?php esc_html_e(site_url()) ?></code>
    80         <input id='clu_logout_url' name='clu_config[logout]' size='40' type='text' value='<?php esc_attr_e($options["logout"]) ?>' placeholder="/wp-login.php?action=logout" />
     87        <input id='clu_logout_url' name='clu_config[logout]' size='40' type='text' value='<?php echo esc_attr($options["logout"] ?? "") ?>' placeholder="/wp-login.php?action=logout" />
    8188    <?php
    8289}
     
    8693    ?>
    8794        <code><?php esc_html_e(site_url()) ?></code>
    88         <input id='clu_login_redirect' name='clu_config[redirect_login]' size='40' type='text' value='<?php esc_attr_e($options["redirect_login"]) ?>' placeholder="/wp-admin/" />
     95        <input id='clu_login_redirect' name='clu_config[redirect_login]' size='40' type='text' value='<?php echo esc_attr($options["redirect_login"] ?? "") ?>' placeholder="/wp-admin/" />
    8996    <?php
    9097}
     
    94101    ?>
    95102        <code><?php esc_html_e(site_url()) ?></code>
    96         <input id='clu_logout_redirect' name='clu_config[redirect_logout]' size='40' type='text' value='<?php esc_attr_e($options["redirect_logout"]) ?>' placeholder="/" />
     103        <input id='clu_logout_redirect' name='clu_config[redirect_logout]' size='40' type='text' value='<?php echo esc_attr($options["redirect_logout"] ?? "") ?>' placeholder="/" />
    97104    <?php
    98105}
  • custom-login-url/trunk/readme.txt

    r1229346 r3361819  
    22Contributors: gwin
    33Tags: custom login url, custom registration url
    4 Requires at least: 3.8.0
    5 Tested up to: 4.2.2
    6 Stable tag: 1.0.2
     4Requires at least: 6.0
     5Tested up to: 6.8
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515reminder URLs without modifying any files, simple and swift.
    1616
    17 Why would anyone would want to use this plugin? Well, after developing [WPHelpDesk](http://wphelpdesk.com/) it turned
     17Why would anyone would want to use this plugin? Well, after developing some sites it turned
    1818out that site owners do not want to reveal to customers that they are using WordPress, hence the plugin that will mask
    1919original URLs.
     
    4343== Changelog ==
    4444
     45= 1.0.3 =
     46* FIXED: Broken Access Control vulnerability
     47* FIXED: Warnings in the wp-admin -> Settings -> Options when no custom links are set.
    4548= 1.0.2 =
    4649* FIXED: Some 'notices' and 'warnings'
Note: See TracChangeset for help on using the changeset viewer.