[wp-trac] [WordPress Trac] #54327: Support wp_die from array print
WordPress Trac
noreply at wordpress.org
Wed Oct 27 07:05:34 UTC 2021
#54327: Support wp_die from array print
-----------------------------+-----------------------------
Reporter: myousefi08 | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.8.1
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
I think wp_die() function is very used in wordpress plugin and theme
developement and that is better to support array when pass an array to
this and prevent from array to string notice.
in wp-includes/functions.php
line ~3800
before:
{{{
echo $message;
}}}
after:
{{{
if(is_array($message)) {
print_r($message);
}else {
echo $message;
}
}}}
tanx.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54327>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list