From 99fa687d4abade1fd5a4738b95469db5dea7818a Mon Sep 17 00:00:00 2001 From: "BestNa.me Labs" Date: Sun, 8 Mar 2015 19:38:59 +0100 Subject: [PATCH] Correction in yourls_die(): 'html_head' should be 'html_footer' Now checking for html_footer action before the call to yourls_html_footer() (code was checking for html_head action instead, which is wrong). --- includes/functions-html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions-html.php b/includes/functions-html.php index 67e53b4..ac3a67e 100644 --- a/includes/functions-html.php +++ b/includes/functions-html.php @@ -432,7 +432,7 @@ function yourls_die( $message = '', $title = '', $header_code = 200 ) { echo yourls_apply_filter( 'die_title', "

$title

" ); echo yourls_apply_filter( 'die_message', "

$message

" ); yourls_do_action( 'yourls_die' ); - if( !yourls_did_action( 'html_head' ) ) { + if( !yourls_did_action( 'html_footer' ) ) { yourls_html_footer(); } die(); -- 2.45.0