Changeset 3361819
- Timestamp:
- 09/15/2025 01:23:26 PM (6 months ago)
- Location:
- custom-login-url/trunk
- Files:
-
- 3 edited
-
custom-login-url.php (modified) (1 diff)
-
functions-admin.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-login-url/trunk/custom-login-url.php
r1229346 r3361819 2 2 /* 3 3 Plugin Name: Custom Login URL 4 Plugin URI: http ://wphelpdesk.com/custom-login-url/4 Plugin URI: https://simpliko.pl 5 5 Description: Plugin allows to change: login, registration, lost password URLs to some custom URLs without modifying any files, simple and swift. 6 Version: 1.0. 26 Version: 1.0.3 7 7 Author: Simpliko 8 Author URI: http ://simpliko.pl8 Author URI: https://simpliko.pl 9 9 License: GPLv2 or later 10 10 */ -
custom-login-url/trunk/functions-admin.php
r864241 r3361819 22 22 $options = get_option('clu_config'); 23 23 24 if ( ! isset( $_POST['clu_config_nonce'] ) || ! wp_verify_nonce( $_POST['clu_config_nonce'], 'clu-config-nonce' ) ) { 25 return[]; 26 } 27 24 28 if(!is_array($options)) { 25 29 $options = array(); … … 52 56 function clu_login_url_input() { 53 57 $options = get_option('clu_config'); 58 59 wp_nonce_field( 'clu-config-nonce', 'clu_config_nonce' ); 60 54 61 ?> 55 62 <code><?php esc_html_e(site_url()) ?></code> 56 <input id='clu_login_url' name='clu_config[login]' size='40' type='text' value='<?php e sc_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" /> 57 64 <?php 58 65 } … … 62 69 ?> 63 70 <code><?php esc_html_e(site_url()) ?></code> 64 <input id='clu_register_url' name='clu_config[register]' size='40' type='text' value='<?php e sc_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" /> 65 72 <?php 66 73 } … … 70 77 ?> 71 78 <code><?php esc_html_e(site_url()) ?></code> 72 <input id='clu_lostpassword_url' name='clu_config[lostpassword]' size='40' type='text' value='<?php e sc_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" /> 73 80 <?php 74 81 } … … 78 85 ?> 79 86 <code><?php esc_html_e(site_url()) ?></code> 80 <input id='clu_logout_url' name='clu_config[logout]' size='40' type='text' value='<?php e sc_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" /> 81 88 <?php 82 89 } … … 86 93 ?> 87 94 <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 e sc_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/" /> 89 96 <?php 90 97 } … … 94 101 ?> 95 102 <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 e sc_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="/" /> 97 104 <?php 98 105 } -
custom-login-url/trunk/readme.txt
r1229346 r3361819 2 2 Contributors: gwin 3 3 Tags: custom login url, custom registration url 4 Requires at least: 3.8.05 Tested up to: 4.2.26 Stable tag: 1.0. 24 Requires at least: 6.0 5 Tested up to: 6.8 6 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 reminder URLs without modifying any files, simple and swift. 16 16 17 Why would anyone would want to use this plugin? Well, after developing [WPHelpDesk](http://wphelpdesk.com/)it turned17 Why would anyone would want to use this plugin? Well, after developing some sites it turned 18 18 out that site owners do not want to reveal to customers that they are using WordPress, hence the plugin that will mask 19 19 original URLs. … … 43 43 == Changelog == 44 44 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. 45 48 = 1.0.2 = 46 49 * FIXED: Some 'notices' and 'warnings'
Note: See TracChangeset
for help on using the changeset viewer.