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

WordPress Trac noreply at wordpress.org
Fri Mar 2 15:59:43 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 birgire):

 The patch [attachment:39165.13.diff]:
 - Adds a "sub-fields" support, i.e. field value arrays with structure
 like:
 {{{
 $info['example']['fields'][] = array(
     'label' => __( 'Example' ),
     'value' => array(
         array(
             'label' => __( 'Label 1' ),
             'value' => 'Value 1',
          ),
         array(
             'label' => __( 'Label 2' ),
             'value' => 'Value 2',
          ),
     ),
 );

 }}}
 - Adjusts the {{{$info['wp-media']['fields']}}} array accordingly.

 To consider: Adding a {{{isset()}}} checks for label and value array items
 for both fields and sub-fields.

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


More information about the wp-trac mailing list