Make WordPress Core


Ignore:
Timestamp:
05/26/2019 08:49:04 PM (6 years ago)
Author:
azaozz
Message:

Privacy tools: Organize privacy functions into logical files and classes.

Props xkon, birgire, desrosj, garrett-eclipse, azaozz.
See #43895.

File:
1 edited

Legend:

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

    r44537 r45448  
    15151515    <?php
    15161516}
     1517
     1518/**
     1519 * Previous class for list table for privacy data export requests.
     1520 *
     1521 * @since 4.9.6
     1522 * @deprecated 5.3.0
     1523 */
     1524class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Data_Export_Requests_List_Table {
     1525    function __construct( $args ) {
     1526        _deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Export_Requests_List_Table' );
     1527
     1528        if ( ! isset( $args['screen'] ) || $args['screen'] === 'export_personal_data' ) {
     1529            $args['screen'] = 'export-personal-data';
     1530        }
     1531
     1532        parent::__construct( $args );   
     1533    }
     1534}
     1535
     1536/**
     1537 * Previous class for list table for privacy data erasure requests.
     1538 *
     1539 * @since 4.9.6
     1540 * @deprecated 5.3.0
     1541 */
     1542class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Data_Removal_Requests_List_Table {
     1543    function __construct( $args ) {
     1544        _deprecated_function( __CLASS__, '5.3.0', 'WP_Privacy_Data_Removal_Requests_List_Table' );
     1545
     1546        if ( ! isset( $args['screen'] ) || $args['screen'] === 'remove_personal_data' ) {
     1547            $args['screen'] = 'erase-personal-data';
     1548        }
     1549
     1550        parent::__construct( $args );
     1551    }
     1552}
     1553
     1554/**
     1555 * Was used to add options for the privacy requests screens before they were separate files.
     1556 *
     1557 * @since 4.9.8
     1558 * @access private
     1559 * @deprecated 5.3.0
     1560 */
     1561function _wp_privacy_requests_screen_options() {
     1562    _deprecated_function( __FUNCTION__, '5.3.0' );
     1563}
Note: See TracChangeset for help on using the changeset viewer.