Ticket #46910: 46910.diff
File 46910.diff, 1.1 KB (added by , 6 years ago) |
---|
-
src/wp-includes/functions.php
3089 3089 $message .= "\n<p><a href='javascript:history.back()'>$back_text</a></p>"; 3090 3090 } 3091 3091 3092 if ( ! did_action( 'admin_head' ) ) :3092 if ( ( is_admin() && ! did_action( 'admin_head' ) ) && ! did_action( 'wp_head' ) ) : 3093 3093 if ( ! headers_sent() ) { 3094 3094 header( 'Content-Type: text/html; charset=utf-8' ); 3095 3095 status_header( $r['response'] ); … … 3231 3231 ?> 3232 3232 </style> 3233 3233 </head> 3234 <body id="error-page"> 3235 <?php endif; // ! did_action( 'admin_head' )?>3236 <?php echo $message; ?>3237 </body>3238 </html>3234 <?php endif; // ! did_action( 'admin_head' ) 3235 if ( ( is_admin() && ! did_action( 'admin_head' ) ) || ! did_action( 'wp_body_open' ) ) : ?> 3236 <body id="error-page"> 3237 <?php endif; // ! did_action( 'wp_body_open' ) ?> 3238 <div id="error-page-message"><?php echo $message; ?></div> 3239 3239 <?php 3240 if ( $r['exit'] ) { 3240 if ( $r['exit'] ) { ?> 3241 </body> 3242 </html> 3243 <?php 3241 3244 die(); 3242 3245 } 3243 3246 }