WordPress.org

Make WordPress Core

Ticket #31682: 31682.2.diff

File 31682.2.diff, 970 bytes (added by iamfriendly, 5 years ago)

Added a filter to the message shown for the registration confirmation information

  • wp-login.php

    diff --git wp-login.php wp-login.php
    index 5b3daaa..b2bb70b 100644
    case 'register' : 
    762762         * @since 2.1.0
    763763         */
    764764        do_action( 'register_form' );
     765
     766        /**
     767         * Filter the content of the message for the registration confirmation.
     768         *
     769         * @since 4.4.0
     770         *
     771         * @param string $reg_conf_message The registration confirmation message
     772         */
     773        $reg_conf_message = apply_filters( 'registration_confirmation_msg', __( 'Registration confirmation will be emailed to you.' ) );
    765774        ?>
    766         <p id="reg_passmail"><?php _e( 'Registration confirmation will be emailed to you.' ); ?></p>
     775        <p id="reg_passmail"><?php echo esc_html( $reg_conf_message ); ?></p>
    767776        <br class="clear" />
    768777        <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    769778        <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p>