diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php
index ce88c102cfade..bc06eb9e50bf0 100644
a
|
b
|
public function send_headers() { |
545 | 545 | if ( $post && pings_open( $post ) ) { |
546 | 546 | $headers['X-Pingback'] = get_bloginfo( 'pingback_url', 'display' ); |
547 | 547 | } |
| 548 | |
| 549 | // Send nocache headers for password protected posts to avoid reverse-proxy or CDNs caching. |
| 550 | if ( post_password_required( $post ) ) { |
| 551 | $headers = array_merge( $headers, wp_get_nocache_headers() ); |
| 552 | } |
548 | 553 | } |
549 | 554 | |
550 | 555 | /** |