Ticket #46950: 46950.diff
| File 46950.diff, 592 bytes (added by , 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 { 173 173 } 174 174 175 175 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 176 180 if ( ! function_exists( 'wp_generate_password' ) ) { 177 181 require_once ABSPATH . WPINC . '/pluggable.php'; 178 182 }