[wp-trac] [WordPress Trac] #44151: Personal data exports - lower priority exporters should place their data after the higher priority ones

WordPress Trac noreply at wordpress.org
Mon May 21 11:08:09 UTC 2018


#44151: Personal data exports - lower priority exporters should place their data
after the higher priority ones
----------------------------+------------------------------
 Reporter:  robobot3000     |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Privacy         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  gdpr has-patch  |     Focuses:
----------------------------+------------------------------

Comment (by robobot3000):

 > But under what circumstance did you see non numeric keys in the
 $response data array?

 @allendav : I was replicating the documented behaviour of
 [http://php.net/manual/en/function.array-merge.php array_merge]. But it's
 possible for any plugin author to define the exported data with non-
 numeric keys, even though it doesn't affect the output. For example:

 {{{#!php
 <?php
 $data_to_export[] = array(
         'group_id'    => 'woocommerce_orders',
         'group_label' => __( 'Orders', 'woocommerce-services' ),
         'item_id'     => 'order-' . $order_id,
         'data'        => array(
                 'abc' => array(
                         'name'  => __( 'Shipping label service',
 'woocommerce-gateway-stripe' ),
                         'value' => $label['service_name'],
                 ),
                 'def' => array(
                         'name'  => __( 'Shipping label tracking number',
 'woocommerce-gateway-stripe' ),
                         'value' => $label['tracking'],
                 ),
         ),
 );
 }}}

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


More information about the wp-trac mailing list