diff --git src/wp-admin/admin.php src/wp-admin/admin.php
index 8e2ce255d1..aa8bd97428 100644
|
|
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
35 | 35 | |
36 | 36 | nocache_headers(); |
37 | 37 | |
| 38 | // Fires once the requested HTTP headers for caching, content type, etc. have been sent. |
| 39 | do_action_ref_array( 'send_headers', array( $wp ) ); |
| 40 | |
38 | 41 | if ( get_option( 'db_upgraded' ) ) { |
39 | 42 | flush_rewrite_rules(); |
40 | 43 | update_option( 'db_upgraded', false ); |
diff --git src/wp-login.php src/wp-login.php
index f7f0fa16ea..6427b59fbd 100644
|
|
nocache_headers(); |
493 | 493 | |
494 | 494 | header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) ); |
495 | 495 | |
| 496 | // Fires once the requested HTTP headers for caching, content type, etc. have been sent. |
| 497 | do_action_ref_array( 'send_headers', array( $wp ) ); |
| 498 | |
496 | 499 | if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set |
497 | 500 | if ( isset( $_SERVER['PATH_INFO'] ) && ( $_SERVER['PATH_INFO'] !== $_SERVER['PHP_SELF'] ) ) { |
498 | 501 | $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); |