Skip to content

Commit

Permalink
Add favicon to password protected login page.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Sep 24, 2020
1 parent bcdaf24 commit 850cd0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Add a Nocache header to the login page redirect to prevent the browser from caching the redirect page. Props [De'Yonte W.](https://github.com/rxnlabs)
- Remove ‘password-protected’ query from redirects on successful login or logout.
- Add favicon to password protected login page.

## [2.3] - 2020-05-17

Expand Down
5 changes: 5 additions & 0 deletions password-protected.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public function __construct() {
add_action( 'password_protected_login_messages', array( $this, 'login_messages' ) );
add_action( 'login_enqueue_scripts', array( $this, 'load_theme_stylesheet' ), 5 );

// Available from WordPress 4.3+
if ( function_exists( 'wp_site_icon' ) ) {
add_action( 'password_protected_login_head', 'wp_site_icon' );
}

add_shortcode( 'password_protected_logout_link', array( $this, 'logout_link_shortcode' ) );

include_once( dirname( __FILE__ ) . '/admin/admin-bar.php' );
Expand Down

0 comments on commit 850cd0d

Please sign in to comment.