Changeset 42967 for trunk/src/wp-includes/post.php
- Timestamp:
- 04/10/2018 06:01:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r42876 r42967 227 227 ); 228 228 229 register_post_type( 230 'user_export_request', array( 231 'labels' => array( 232 'name' => __( 'Export Personal Data Requests' ), 233 'singular_name' => __( 'Export Personal Data Request' ), 234 ), 235 'public' => false, 236 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 237 'hierarchical' => false, 238 'rewrite' => false, 239 'query_var' => false, 240 'can_export' => false, 241 'delete_with_user' => false, 242 ) 243 ); 244 245 register_post_type( 246 'user_remove_request', array( 247 'labels' => array( 248 'name' => __( 'Remove Personal Data Requests' ), 249 'singular_name' => __( 'Remove Personal Data Request' ), 250 ), 251 'public' => false, 252 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 253 'hierarchical' => false, 254 'rewrite' => false, 255 'query_var' => false, 256 'can_export' => false, 257 'delete_with_user' => false, 258 ) 259 ); 260 229 261 register_post_status( 230 262 'publish', array( … … 293 325 'inherit', array( 294 326 'label' => 'inherit', 327 'internal' => true, 328 '_builtin' => true, /* internal use only. */ 329 'exclude_from_search' => false, 330 ) 331 ); 332 333 register_post_status( 334 'request-pending', array( 335 'label' => _x( 'Pending', 'request status' ), 336 'internal' => true, 337 '_builtin' => true, /* internal use only. */ 338 'exclude_from_search' => false, 339 ) 340 ); 341 342 register_post_status( 343 'request-confirmed', array( 344 'label' => _x( 'Confirmed', 'request status' ), 345 'internal' => true, 346 '_builtin' => true, /* internal use only. */ 347 'exclude_from_search' => false, 348 ) 349 ); 350 351 register_post_status( 352 'request-failed', array( 353 'label' => _x( 'Failed', 'request status' ), 354 'internal' => true, 355 '_builtin' => true, /* internal use only. */ 356 'exclude_from_search' => false, 357 ) 358 ); 359 360 register_post_status( 361 'request-completed', array( 362 'label' => _x( 'Completed', 'request status' ), 295 363 'internal' => true, 296 364 '_builtin' => true, /* internal use only. */ … … 781 849 782 850 return $status; 851 } 852 853 /** 854 * Return statuses for privacy requests. 855 * 856 * @since 5.0.0 857 * 858 * @return array 859 */ 860 function _wp_privacy_statuses() { 861 return array( 862 'request-pending' => __( 'Pending' ), // Pending confirmation from user. 863 'request-confirmed' => __( 'Confirmed' ), // User has confirmed the action. 864 'request-failed' => __( 'Failed' ), // User failed to confirm the action. 865 'request-completed' => __( 'Completed' ), // Admin has handled the request. 866 ); 783 867 } 784 868
Note: See TracChangeset
for help on using the changeset viewer.