WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/27/2018 10:12:01 AM (3 years ago)
Author:
azaozz
Message:

Privacy: update the method to confirm user requests by email. Use a single CPT to store the requests and to allow logging/audit trail.

Props mikejolley.
See #43443.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r42967 r43008  
    228228
    229229    register_post_type(
    230         'user_export_request', array(
     230        'user_request', array(
    231231            'labels'           => array(
    232                 'name'          => __( 'Export Personal Data Requests' ),
    233                 'singular_name' => __( 'Export Personal Data Request' ),
     232                'name'          => __( 'User Requests' ),
     233                'singular_name' => __( 'User Request' ),
    234234            ),
    235235            'public'           => false,
     
    240240            'can_export'       => false,
    241241            'delete_with_user' => false,
    242         )
    243     );
    244 
    245     register_post_type(
    246         'user_remove_request', array(
    247             'labels'           => array(
    248                 'name'          => __( 'Remove Personal Data Requests' ),
    249                 'singular_name' => __( 'Remove Personal Data Request' ),
    250             ),
    251             'public'           => false,
    252             '_builtin'         => true, /* internal use only. don't use this when registering your own post type. */
    253             'hierarchical'     => false,
    254             'rewrite'          => false,
    255             'query_var'        => false,
    256             'can_export'       => false,
    257             'delete_with_user' => false,
     242            'supports'         => array(),
    258243        )
    259244    );
Note: See TracChangeset for help on using the changeset viewer.