Build/Test Tools: Avoid an empty "title" heading if no title is set in _wp_die_handler_exit()
and _wp_die_handler_txt()
.
Fixes #50297. git-svn-id: https://develop.svn.wordpress.org/trunk@47882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a6b6e1153
commit
2fed7bf581
@ -205,8 +205,12 @@ function _wp_die_handler_filter_exit() {
|
||||
*/
|
||||
function _wp_die_handler_txt( $message, $title, $args ) {
|
||||
echo "\nwp_die called\n";
|
||||
echo "Message : $message\n";
|
||||
echo "Title : $title\n";
|
||||
echo "Message: $message\n";
|
||||
|
||||
if ( ! empty( $title ) ) {
|
||||
echo "Title: $title\n";
|
||||
}
|
||||
|
||||
if ( ! empty( $args ) ) {
|
||||
echo "Args: \n";
|
||||
foreach ( $args as $k => $v ) {
|
||||
@ -224,8 +228,12 @@ function _wp_die_handler_txt( $message, $title, $args ) {
|
||||
*/
|
||||
function _wp_die_handler_exit( $message, $title, $args ) {
|
||||
echo "\nwp_die called\n";
|
||||
echo "Message : $message\n";
|
||||
echo "Title : $title\n";
|
||||
echo "Message: $message\n";
|
||||
|
||||
if ( ! empty( $title ) ) {
|
||||
echo "Title: $title\n";
|
||||
}
|
||||
|
||||
if ( ! empty( $args ) ) {
|
||||
echo "Args: \n";
|
||||
foreach ( $args as $k => $v ) {
|
||||
|
Loading…
Reference in New Issue
Block a user