Changeset 43257 for branches/4.9
- Timestamp:
- 05/14/2018 03:11:58 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/user.php
r43231 r43257 547 547 * 548 548 * @param int $request_id Request ID. 549 * @return bool|WP_Error 549 * @return bool|WP_Error Returns true/false based on the success of sending the email, or a WP_Error object. 550 550 */ 551 551 function _wp_privacy_resend_request( $request_id ) { … … 714 714 /** This filter is documented in wp-includes/user.php */ 715 715 $expires = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS ); 716 716 717 $requests_query = new WP_Query( array( 717 718 'post_type' => 'user_request', … … 971 972 /** 972 973 * WP_Privacy_Requests_Table class. 974 * 975 * @since 4.9.6 973 976 */ 974 977 abstract class WP_Privacy_Requests_Table extends WP_List_Table { … … 977 980 * Action name for the requests this table will work with. Classes 978 981 * which inherit from WP_Privacy_Requests_Table should define this. 979 * e.g. 'export_personal_data' 982 * 983 * Example: 'export_personal_data'. 980 984 * 981 985 * @since 4.9.6 … … 999 1003 * @since 4.9.6 1000 1004 * 1001 * @ paramarray Array of columns.1005 * @return array Array of columns. 1002 1006 */ 1003 1007 public function get_columns() { … … 1017 1021 * @since 4.9.6 1018 1022 * 1019 * @return array 1023 * @return array Default sortable columns. 1020 1024 */ 1021 1025 protected function get_sortable_columns() { … … 1028 1032 * @since 4.9.6 1029 1033 * 1030 * @return string 1034 * @return string Default primary column name. 1031 1035 */ 1032 1036 protected function get_default_primary_column_name() { … … 1072 1076 1073 1077 /** 1074 * Get an associative array ( id => link ) with the list 1075 * of views available on this table. 1076 * 1077 * @since 4.9.6 1078 * 1079 * @return array 1078 * Get an associative array ( id => link ) with the list of views available on this table. 1079 * 1080 * @since 4.9.6 1081 * 1082 * @return array Associative array of views in the format of $view_name => $view_markup. 1080 1083 */ 1081 1084 protected function get_views() { … … 1102 1105 * @since 4.9.6 1103 1106 * 1104 * @return array 1107 * @return array List of bulk actions. 1105 1108 */ 1106 1109 protected function get_bulk_actions() { … … 1216 1219 * 1217 1220 * @param WP_User_Request $item Item being shown. 1218 * @return string 1221 * @return string Checkbox column markup. 1219 1222 */ 1220 1223 public function column_cb( $item ) { … … 1228 1231 * 1229 1232 * @param WP_User_Request $item Item being shown. 1230 * @return string 1233 * @return string Status column markup. 1231 1234 */ 1232 1235 public function column_status( $item ) { … … 1265 1268 * 1266 1269 * @param int $timestamp Event timestamp. 1267 * @return string 1270 * @return string Human readable date. 1268 1271 */ 1269 1272 protected function get_timestamp_as_date( $timestamp ) { … … 1287 1290 * @since 4.9.6 1288 1291 * 1289 * @param WP_User_Request $item 1292 * @param WP_User_Request $item Item being shown. 1290 1293 * @param string $column_name Name of column being shown. 1291 * @return string 1294 * @return string Default column output. 1292 1295 */ 1293 1296 public function column_default( $item, $column_name ) { … … 1302 1305 1303 1306 /** 1304 * Actions column. Overrid en by children.1307 * Actions column. Overridden by children. 1305 1308 * 1306 1309 * @since 4.9.6 1307 1310 * 1308 1311 * @param WP_User_Request $item Item being shown. 1309 * @return string 1312 * @return string Email column markup. 1310 1313 */ 1311 1314 public function column_email( $item ) { … … 1314 1317 1315 1318 /** 1316 * Next steps column. Overrid en by children.1319 * Next steps column. Overridden by children. 1317 1320 * 1318 1321 * @since 4.9.6 … … 1323 1326 1324 1327 /** 1325 * Generates content for a single row of the table 1326 * 1327 * @since 4.9.6 1328 * 1329 * @param WP_User_Request $item The current item 1328 * Generates content for a single row of the table, 1329 * 1330 * @since 4.9.6 1331 * 1332 * @param WP_User_Request $item The current item. 1330 1333 */ 1331 1334 public function single_row( $item ) { … … 1338 1341 1339 1342 /** 1340 * Embed scripts used to perform actions. Overrid en by children.1343 * Embed scripts used to perform actions. Overridden by children. 1341 1344 * 1342 1345 * @since 4.9.6 … … 1375 1378 * 1376 1379 * @param WP_User_Request $item Item being shown. 1377 * @return string 1380 * @return string Email column markup. 1378 1381 */ 1379 1382 public function column_email( $item ) { … … 1404 1407 1405 1408 /** 1406 * Next steps column.1409 * Displays the next steps column. 1407 1410 * 1408 1411 * @since 4.9.6 … … 1455 1458 * WP_Privacy_Data_Removal_Requests_Table class. 1456 1459 * 1457 1460 * @since 4.9.6 1458 1461 */ 1459 1462 class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { … … 1482 1485 * 1483 1486 * @param WP_User_Request $item Item being shown. 1484 * @return string 1487 * @return string Email column markup. 1485 1488 */ 1486 1489 public function column_email( $item ) { -
branches/4.9/src/wp-includes/user.php
r43237 r43257 2739 2739 * @access private 2740 2740 * 2741 * @return array 2741 * @return array List of core privacy action types. 2742 2742 */ 2743 2743 function _wp_privacy_action_request_types() { … … 3204 3204 * 3205 3205 * @param string $action_name Action name of the request. 3206 * @return string 3206 * @return string Human readable action name. 3207 3207 */ 3208 3208 function wp_user_request_action_description( $action_name ) { … … 3330 3330 * Data relating to the account action email. 3331 3331 * 3332 * @type WP_User_Request $request User request object.3332 * @type WP_User_Request $request User request object. 3333 3333 * @type string $email The email address this is being sent to. 3334 3334 * @type string $description Description of the action being performed so the user knows what the email is for. … … 3375 3375 3376 3376 /** 3377 * Val date a user request by comparing the key with the request's key.3377 * Validate a user request by comparing the key with the request's key. 3378 3378 * 3379 3379 * @since 4.9.6
Note: See TracChangeset
for help on using the changeset viewer.