Changeset 42977 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 04/13/2018 04:14:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r42967 r42977 794 794 'username_or_email_to_export', 795 795 'username_or_email_to_export', 796 __( 'Unable to add exportrequest. A valid email address or username must be supplied.' ),796 __( 'Unable to add this request. A valid email address or username must be supplied.' ), 797 797 'error' 798 798 ); … … 981 981 * Action name for the requests this table will work with. Classes 982 982 * which inherit from WP_Privacy_Requests_Table should define this. 983 * e.g. ' user_export_request'983 * e.g. 'export_personal_data' 984 984 * 985 985 * @since 5.0.0 … … 988 988 */ 989 989 protected $request_type = 'INVALID'; 990 991 /** 992 * Post type to be used. 993 * 994 * @since 5.0.0 995 * 996 * @var string $post_type The post type. 997 */ 998 protected $post_type = 'INVALID'; 990 999 991 1000 /** … … 1042 1051 $views = array(); 1043 1052 $admin_url = admin_url( 'tools.php?page=' . $this->request_type ); 1044 $counts = wp_count_posts( $this-> request_type );1053 $counts = wp_count_posts( $this->post_type ); 1045 1054 1046 1055 $current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : ''; … … 1137 1146 $posts_per_page = 20; 1138 1147 $args = array( 1139 'post_type' => $this-> request_type,1148 'post_type' => $this->post_type, 1140 1149 'posts_per_page' => $posts_per_page, 1141 1150 'offset' => isset( $_REQUEST['paged'] ) ? max( 0, absint( $_REQUEST['paged'] ) - 1 ) * $posts_per_page: 0, … … 1324 1333 class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 1325 1334 /** 1326 * Action name for the requests this table will work with. Classes 1327 * which inherit from WP_Privacy_Requests_Table should define this. 1328 * e.g. 'user_export_request' 1335 * Action name for the requests this table will work with. 1329 1336 * 1330 1337 * @since 5.0.0 … … 1332 1339 * @var string $request_type Name of action. 1333 1340 */ 1334 protected $request_type = 'user_export_request'; 1341 protected $request_type = 'export_personal_data'; 1342 1343 /** 1344 * Post type for the requests. 1345 * 1346 * @since 5.0.0 1347 * 1348 * @var string $post_type The post type. 1349 */ 1350 protected $post_type = 'user_export_request'; 1335 1351 1336 1352 /** … … 1387 1403 class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { 1388 1404 /** 1389 * Action name for the requests this table will work with. Classes 1390 * which inherit from WP_Privacy_Requests_Table should define this. 1391 * e.g. 'user_remove_request' 1405 * Action name for the requests this table will work with. 1392 1406 * 1393 1407 * @since 5.0.0 … … 1395 1409 * @var string $request_type Name of action. 1396 1410 */ 1397 protected $request_type = 'user_remove_request'; 1411 protected $request_type = 'remove_personal_data'; 1412 1413 /** 1414 * Post type for the requests. 1415 * 1416 * @since 5.0.0 1417 * 1418 * @var string $post_type The post type. 1419 */ 1420 protected $post_type = 'user_remove_request'; 1398 1421 1399 1422 /**
Note: See TracChangeset
for help on using the changeset viewer.