[wp-trac] [WordPress Trac] #39165: Add page to assist with debugging and support

WordPress Trac noreply at wordpress.org
Fri Mar 2 12:42:14 UTC 2018


#39165: Add page to assist with debugging and support
-----------------------------------+-----------------------
 Reporter:  jorbin                 |       Owner:  Clorith
     Type:  task (blessed)         |      Status:  reopened
 Priority:  normal                 |   Milestone:  5.0
Component:  Administration         |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  ui-feedback has-patch  |     Focuses:
-----------------------------------+-----------------------

Comment (by Clorith):

 Ahh yes, we've been running this in the health check plugin for a bit, and
 I did add support for this there ahead of time so plugins could utilize it
 if they wanted.

 {{{
 foreach ( $details['fields'] as $field ) {
         if ( is_array( $field['value'] ) ) {
                 $values = '';
                 foreach ( $field['value'] as $name => $value ) {
                         $values .= sprintf(
                                 '<li>%s: %s</li>',
                                 esc_html( $name ),
                                 esc_html( $value )
                         );
                 }
         } else {
                 $values = esc_html( $field['value'] );
         }

         printf(
                 '<tr><td>%s</td><td>%s</td></tr>',
                 esc_html( $field['label'] ),
                 $values
         );
 }
 }}}

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


More information about the wp-trac mailing list