Changeset 43073
- Timestamp:
- 05/01/2018 11:48:21 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/user.php
r43071 r43073 753 753 'username_or_email_to_export', 754 754 'username_or_email_to_export', 755 __( 'Unable to add exportrequest. A valid email address or username must be supplied.' ),755 __( 'Unable to add this request. A valid email address or username must be supplied.' ), 756 756 'error' 757 757 ); … … 940 940 * Action name for the requests this table will work with. Classes 941 941 * which inherit from WP_Privacy_Requests_Table should define this. 942 * e.g. ' user_export_request'942 * e.g. 'export_personal_data' 943 943 * 944 944 * @since 5.0.0 … … 947 947 */ 948 948 protected $request_type = 'INVALID'; 949 950 /** 951 * Post type to be used. 952 * 953 * @since 5.0.0 954 * 955 * @var string $post_type The post type. 956 */ 957 protected $post_type = 'INVALID'; 949 958 950 959 /** … … 1001 1010 $views = array(); 1002 1011 $admin_url = admin_url( 'tools.php?page=' . $this->request_type ); 1003 $counts = wp_count_posts( $this-> request_type );1012 $counts = wp_count_posts( $this->post_type ); 1004 1013 1005 1014 $current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : ''; … … 1096 1105 $posts_per_page = 20; 1097 1106 $args = array( 1098 'post_type' => $this-> request_type,1107 'post_type' => $this->post_type, 1099 1108 'posts_per_page' => $posts_per_page, 1100 1109 'offset' => isset( $_REQUEST['paged'] ) ? max( 0, absint( $_REQUEST['paged'] ) - 1 ) * $posts_per_page: 0, … … 1283 1292 class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 1284 1293 /** 1285 * Action name for the requests this table will work with. Classes 1286 * which inherit from WP_Privacy_Requests_Table should define this. 1287 * e.g. 'user_export_request' 1294 * Action name for the requests this table will work with. 1288 1295 * 1289 1296 * @since 5.0.0 … … 1291 1298 * @var string $request_type Name of action. 1292 1299 */ 1293 protected $request_type = 'user_export_request'; 1300 protected $request_type = 'export_personal_data'; 1301 1302 /** 1303 * Post type for the requests. 1304 * 1305 * @since 5.0.0 1306 * 1307 * @var string $post_type The post type. 1308 */ 1309 protected $post_type = 'user_export_request'; 1294 1310 1295 1311 /** … … 1346 1362 class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { 1347 1363 /** 1348 * Action name for the requests this table will work with. Classes 1349 * which inherit from WP_Privacy_Requests_Table should define this. 1350 * e.g. 'user_remove_request' 1364 * Action name for the requests this table will work with. 1351 1365 * 1352 1366 * @since 5.0.0 … … 1354 1368 * @var string $request_type Name of action. 1355 1369 */ 1356 protected $request_type = 'user_remove_request'; 1370 protected $request_type = 'remove_personal_data'; 1371 1372 /** 1373 * Post type for the requests. 1374 * 1375 * @since 5.0.0 1376 * 1377 * @var string $post_type The post type. 1378 */ 1379 protected $post_type = 'user_remove_request'; 1357 1380 1358 1381 /**
Note: See TracChangeset
for help on using the changeset viewer.