diff --git a/wp-includes/version.php b/wp-includes/version.php index 7a106bf554..a09530bf85 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41290'; +$wp_version = '4.9-alpha-41291'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 6c5769c4ef..507a122af5 100644 --- a/wp-login.php +++ b/wp-login.php @@ -430,6 +430,15 @@ do_action( "login_form_{$action}" ); $http_post = ('POST' == $_SERVER['REQUEST_METHOD']); $interim_login = isset($_REQUEST['interim-login']); +/** + * Filters the separator used between login form navigation links. + * + * @since 4.9.0 + * + * @param string $login_link_separator The separator used between login form navigation links. + */ +$login_link_separator = apply_filters( 'login_link_separator', ' | ' ); + switch ($action) { case 'postpass' : @@ -555,8 +564,10 @@ case 'retrievepassword' : if ( get_option( 'users_can_register' ) ) : $registration_url = sprintf( '%s', esc_url( wp_registration_url() ), __( 'Register' ) ); + echo esc_html( $login_link_separator ); + /** This filter is documented in wp-includes/general-template.php */ - echo ' | ' . apply_filters( 'register', $registration_url ); + echo apply_filters( 'register', $registration_url ); endif; ?>

@@ -668,8 +679,10 @@ case 'rp' : if ( get_option( 'users_can_register' ) ) : $registration_url = sprintf( '%s', esc_url( wp_registration_url() ), __( 'Register' ) ); + echo esc_html( $login_link_separator ); + /** This filter is documented in wp-includes/general-template.php */ - echo ' | ' . apply_filters( 'register', $registration_url ); + echo apply_filters( 'register', $registration_url ); endif; ?>

@@ -744,7 +757,8 @@ case 'register' : @@ -936,7 +950,9 @@ default: $registration_url = sprintf( '%s', esc_url( wp_registration_url() ), __( 'Register' ) ); /** This filter is documented in wp-includes/general-template.php */ - echo apply_filters( 'register', $registration_url ) . ' | '; + echo apply_filters( 'register', $registration_url ); + + echo esc_html( $login_link_separator ); endif; ?>