WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2018 01:00:46 AM (22 months ago)
Author:
SergeyBiryukov
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.
Merges [43008] to the 4.9 branch.
See #43443.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/post.php

    r43071 r43083  
    211211    ) );
    212212
    213     register_post_type( 'user_export_request', array(
     213    register_post_type( 'user_request', array(
    214214        'labels'           => array(
    215             'name'          => __( 'Export Personal Data Requests' ),
    216             'singular_name' => __( 'Export Personal Data Request' ),
     215            'name'          => __( 'User Requests' ),
     216            'singular_name' => __( 'User Request' ),
    217217        ),
    218218        'public'           => false,
     
    223223        'can_export'       => false,
    224224        'delete_with_user' => false,
    225     ) );
    226 
    227     register_post_type( 'user_remove_request', array(
    228         'labels'           => array(
    229             'name'          => __( 'Remove Personal Data Requests' ),
    230             'singular_name' => __( 'Remove Personal Data Request' ),
    231         ),
    232         'public'           => false,
    233         '_builtin'         => true, /* internal use only. don't use this when registering your own post type. */
    234         'hierarchical'     => false,
    235         'rewrite'          => false,
    236         'query_var'        => false,
    237         'can_export'       => false,
    238         'delete_with_user' => false,
     225        'supports'         => array(),
    239226    ) );
    240227
Note: See TracChangeset for help on using the changeset viewer.