[wp-trac] [WordPress Trac] #43438: Add filters and Ajax support for personal data export

WordPress Trac noreply at wordpress.org
Thu Aug 23 20:45:18 UTC 2018


#43438: Add filters and Ajax support for personal data export
--------------------------------------+-----------------------
 Reporter:  azaozz                    |       Owner:  desrosj
     Type:  enhancement               |      Status:  assigned
 Priority:  low                       |   Milestone:  4.9.9
Component:  Privacy                   |     Version:  4.9.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+-----------------------

Comment (by desrosj):

 [attachment:"43438.15.2.diff"] has a few small changes. (ignore
 [attachment:"43438.15.diff"], uploaded the patch wrong file).

 - Make the test method names more precise.
 - Remove `$_POST = array()` in the `tearDown()` method (this is handled in
 `parent::tearDown()`).
 - Add a test method in both classes to validate the correct error is
 encountered when a nonce does not properly validate.
 - Add a test method validating a `WP_Error` returned by a data exporter
 callback is correctly passed as the response.
 - Consolidated repetitive code that unset exporter/eraser indexes and
 changed exporter/eraser callback values into one method each.

 I think these tests are good to go.

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


More information about the wp-trac mailing list