Make WordPress Core

Ticket #46950: 46950.diff

File 46950.diff, 592 bytes (added by TimothyBlynJacobs, 7 years ago)
  • src/wp-includes/class-wp-recovery-mode.php

    diff --git a/src/wp-includes/class-wp-recovery-mode.php b/src/wp-includes/class-wp-recovery-mode.php
    index 6ac1a09569..fc38afdb54 100644
    a b class WP_Recovery_Mode { 
    173173                }
    174174
    175175                if ( ! $this->is_active() ) {
     176                        if ( ! is_protected_endpoint() ) {
     177                                return new WP_Error( 'non_protected_endpoint', __( 'Error occurred on a non-protected endpoint.' ) );
     178                        }
     179
    176180                        if ( ! function_exists( 'wp_generate_password' ) ) {
    177181                                require_once ABSPATH . WPINC . '/pluggable.php';
    178182                        }