[wp-trac] [WordPress Trac] #54327: Support wp_die from array print

WordPress Trac noreply at wordpress.org
Thu Oct 28 14:44:36 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                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by myousefi08):

 What if we pass an object to wp_die() function?

 Fatal error: Object of class Sample could not be converted to string.

 why we cant pass any object in wp_die that very used in wp development.

 I think wp_die(print_r($object)) and wp_die(print_r($array)) is very
 boring.

 tanx again.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54327#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list