[wp-trac] [WordPress Trac] #53230: Allow nested arrays to be displayed in site health.

WordPress Trac noreply at wordpress.org
Sun Aug 28 13:37:14 UTC 2022


#53230: Allow nested arrays to be displayed in site health.
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Site Health   |     Version:  5.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui
--------------------------+------------------------------

Comment (by Clorith):

 Been looking at this a bit.

 The debug data is fine, we can throw on a `maybe_serialize()` on the value
 there, and that should take care of it self that way, I think that's a
 good approach for that particular bit of this. I know I mentioned JSON
 earlier, but if an object is passed I'm not confident converting it to
 JSON may not lose something in the process?

 My main hangup right now is deciding on the best visual representation for
 the "human readable" form.

 To provide max flexibility, it would need to be a `<pre> print_r( $value )
 </pre>` (pseudo-code there), but this outputs things like "Array:", which
 may not mean much to end users.

 On the other hand, we can't reasonably provide an infinitely looping set
 of nested arrays in my opinion. I do know that there are plugins that have
 voiced an interest in providing at least 2 levels deep though, would that
 be a reasonable limitation to upgrade to?

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


More information about the wp-trac mailing list