Plugin Directory

Changeset 2888598


Ignore:
Timestamp:
03/28/2023 04:58:03 PM (3 years ago)
Author:
Obadiah
Message:

Update to version 0.8

Location:
super-custom-login/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • super-custom-login/trunk/readme.txt

    r2888590 r2888598  
    44Tags: 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
    55Requires at least: 3.1
    6 Tested up to: 4.0
    7 Stable tag: 0.7
     6Tested up to: 6.1.1
     7Stable tag: 0.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin will customize your login screen. It replaces the default WordPress logo with your own super custom logo.
     11This plugin enables users to personalize their WordPress login screen by replacing the default WordPress logo with their own custom logo.
    1212
    1313== Description ==
    1414
    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.
     15This 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.
    1616
    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.
     17To 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.
    1818
    1919Example: YourDomainName.com/wp-content/themes/YourTheme/images/login_logo.png
     
    2222
    23231. Uncompress super-custom-login.zip
    24 2. Open login_logo.psd in Photoshop (or graphic editing program of choice) and customize logo.
     242. Open login_logo.psd in graphic editing program of choice, and customize logo.
    25253. Save as transparent PNG named login_logo.png
    26264. Upload entire folder (except image files) to the /wp-content/plugins/ directory.
     
    3030
    3131== Changelog ==
     32
     33= 0.8 =
     34* Updated the following code due to fatal errors. 03/28/2023
     351. Updated get_bloginfo() to get_stylesheet_directory_uri(), which is a more secure way of getting the directory URI.
     362. Updated get_bloginfo('url') to home_url(), which is a more secure way of getting the home URL.
     373. Updated create_function() to __return_null(), which is a more secure way of returning a null value.
     384. 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
    3241
    3342= 0.7 =
  • super-custom-login/trunk/super-custom-login.php

    r995680 r2888598  
    33Plugin Name: Super Custom Login
    44Plugin 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.7
     5Description: 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.
     6Version: 0.8
    77License: GPLv2 or later
    88Author: Obadiah Metivier
     
    1010*/
    1111
    12 
    13 // Displays a custom logo on login screen.
     12// Display a custom logo on the login screen.
    1413function custom_login_logo() {
     14   // Style tag with the custom logo URL and dimensions.
    1515   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; }   
    1717   </style>';
    1818}
     19// Add the custom logo to the login head section.
    1920add_action('login_head', 'custom_login_logo');
    2021
    21 // Custom Login Screen links
     22// Return the home URL to be used as the login screen logo link.
    2223function change_wp_login_url() {
    23 return get_bloginfo('url');
     24return home_url();
    2425}
    2526
     27// Echoe the blog name to be used as the login screen logo title.
    2628function change_wp_login_title() {
    2729echo get_option('blogname');
    2830}
    2931
     32// Filter the login screen logo link to the home URL.
    3033add_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.
     35add_filter('login_headertext', 'change_wp_login_title');
    3236
    33 // remove error messages on failed log-ins
    34 add_filter('login_errors',create_function('$a', "return null;"));
     37// Filter the login error messages to return a null value.
     38add_filter('login_errors', '__return_null');
    3539?>
Note: See TracChangeset for help on using the changeset viewer.