Changeset 2888598
- Timestamp:
- 03/28/2023 04:58:03 PM (3 years ago)
- Location:
- super-custom-login/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
super-custom-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
super-custom-login/trunk/readme.txt
r2888590 r2888598 4 4 Tags: admin, branding, custom login, customized login screen, custom page, customization, error, login, login error, login page, login screen, logo, middle ear media, obadiah, security, super custom login 5 5 Requires at least: 3.1 6 Tested up to: 4.07 Stable tag: 0. 76 Tested up to: 6.1.1 7 Stable tag: 0.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin will customize your login screen. It replaces the default WordPress logo with your own supercustom logo.11 This plugin enables users to personalize their WordPress login screen by replacing the default WordPress logo with their own custom logo. 12 12 13 13 == Description == 14 14 15 Customize your login screen. Replace the WordPress logo with your custom logo and make it link to your homepage. Enhance security by removing error messages upon failed login attempts. A template file for your logo is included.15 This plugin offers a range of customization options for the WordPress login screen, including the ability to replace the default WordPress logo with a custom logo that links to the user's homepage. Additionally, the plugin improves login security by removing error messages upon failed login attempts. The plugin also provides a template file to ensure proper logo formatting. 16 16 17 Use the included template to ensure your custom logo fits properly. Your custom logo should be saved as a tranparent PNG named "login_logo.png", and must be located in your theme's images directory. 17 To utilize the custom logo feature, users should save their logo as a transparent PNG named "login_logo.png", and save it to the images directory within their theme. The included template file can be used to ensure proper sizing and placement of the custom logo. 18 18 19 19 Example: YourDomainName.com/wp-content/themes/YourTheme/images/login_logo.png … … 22 22 23 23 1. Uncompress super-custom-login.zip 24 2. Open login_logo.psd in Photoshop (or graphic editing program of choice)and customize logo.24 2. Open login_logo.psd in graphic editing program of choice, and customize logo. 25 25 3. Save as transparent PNG named login_logo.png 26 26 4. Upload entire folder (except image files) to the /wp-content/plugins/ directory. … … 30 30 31 31 == Changelog == 32 33 = 0.8 = 34 * Updated the following code due to fatal errors. 03/28/2023 35 1. Updated get_bloginfo() to get_stylesheet_directory_uri(), which is a more secure way of getting the directory URI. 36 2. Updated get_bloginfo('url') to home_url(), which is a more secure way of getting the home URL. 37 3. Updated create_function() to __return_null(), which is a more secure way of returning a null value. 38 4. Changed login_headertitle to login_headertext, which is the correct filter name for the login header title. 39 * Updated the readme file short description and full description to be easier to read. 03/28/2023 40 * Removed reference to specific photo editing software in Installation instructions in readme file. 03/28/2023 32 41 33 42 = 0.7 = -
super-custom-login/trunk/super-custom-login.php
r995680 r2888598 3 3 Plugin Name: Super Custom Login 4 4 Plugin URI: http://middleearmedia.com/labs/plugins/super-custom-login/ 5 Description: Customize your login screen. Replace the WordPress logo with your custom logo and make it link to your homepage. Enhance security by removing error messages upon failed login attempts. A template file for your logo is included.6 Version: 0. 75 Description: This plugin provides users with the ability to customize their WordPress login screen, including the replacement of the default WordPress logo with a custom logo and the inclusion of a corresponding link to the user's homepage. Additionally, this plugin improves the security of the login process by removing error messages in the event of failed login attempts. A template file is also included to facilitate the customization process. 6 Version: 0.8 7 7 License: GPLv2 or later 8 8 Author: Obadiah Metivier … … 10 10 */ 11 11 12 13 // Displays a custom logo on login screen. 12 // Display a custom logo on the login screen. 14 13 function custom_login_logo() { 14 // Style tag with the custom logo URL and dimensions. 15 15 echo '<style type="text/css"> 16 h1 a { background-image:url('.get_ bloginfo('stylesheet_directory').'/images/login_logo.png) !important; background-size: 328px 84px !important; height: 84px !important; width: 328px !important; }16 h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login_logo.png) !important; background-size: 328px 84px !important; height: 84px !important; width: 328px !important; } 17 17 </style>'; 18 18 } 19 // Add the custom logo to the login head section. 19 20 add_action('login_head', 'custom_login_logo'); 20 21 21 // Custom Login Screen links22 // Return the home URL to be used as the login screen logo link. 22 23 function change_wp_login_url() { 23 return get_bloginfo('url');24 return home_url(); 24 25 } 25 26 27 // Echoe the blog name to be used as the login screen logo title. 26 28 function change_wp_login_title() { 27 29 echo get_option('blogname'); 28 30 } 29 31 32 // Filter the login screen logo link to the home URL. 30 33 add_filter('login_headerurl', 'change_wp_login_url'); 31 add_filter('login_headertitle', 'change_wp_login_title'); 34 // Filter the login screen logo title to the blog name. 35 add_filter('login_headertext', 'change_wp_login_title'); 32 36 33 // remove error messages on failed log-ins34 add_filter('login_errors', create_function('$a', "return null;"));37 // Filter the login error messages to return a null value. 38 add_filter('login_errors', '__return_null'); 35 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.