Opened 7 years ago
Closed 7 years ago
#40802 closed enhancement (fixed)
Allow filtering of the hard coded pipe character in wp-login.php
Reported by: | henry.wright | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
<p id="nav"> <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> </p>
The pipe character is hard coded in wp-login.php as can be seen from the snippet above.
It would be nice to have the ability to remove or modify the character.
Attachments (3)
Change History (13)
#1
@
7 years ago
- Summary changed from Allow filtering of the hard coded pipe character on wp.login.php to Allow filtering of the hard coded pipe character in wp-login.php
#4
@
7 years ago
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to 4.9
Only one instance of the hook needs the full DocBlock, others should have a duplicate hook reference.
#6
@
7 years ago
- Keywords needs-refresh removed
40802.2.diff documents the primary filter hook only. My thinking is the login form filter should serve as the primary but I can amend if needed.
Note: See
TracTickets for help on using
tickets.
The | pipe character actually appears 4 times inside wp-login.php. 40802.diff makes the character filterable by adding a
login_divider
filter.This can be tested visually with something like: