Make WordPress Core

Changeset 34358


Ignore:
Timestamp:
09/20/2015 04:53:32 PM (9 years ago)
Author:
johnbillion
Message:

Implement some more uses of wp_login_url() in places where wp-login.php is hard-coded.

See #31495

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r33774 r34358  
    191191if ( is_blog_installed() ) {
    192192    display_header();
    193     die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="../wp-login.php" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );
     193    die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="' . esc_url( wp_login_url() ) . '" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );
    194194}
    195195
     
    342342</table>
    343343
    344 <p class="step"><a href="../wp-login.php" class="button button-large"><?php _e( 'Log In' ); ?></a></p>
     344<p class="step"><a href="<?php echo esc_url( wp_login_url() ); ?>" class="button button-large"><?php _e( 'Log In' ); ?></a></p>
    345345
    346346<?php
Note: See TracChangeset for help on using the changeset viewer.