Changeset 55177 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
- Timestamp:
- 02/01/2023 06:36:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r54817 r55177 432 432 * 433 433 * @since 5.9.0 434 * @since 6.2.0 Added 'edit-css' action. 434 435 * 435 436 * @return array List of link relations. … … 441 442 if ( current_user_can( $post_type->cap->publish_posts ) ) { 442 443 $rels[] = 'https://api.w.org/action-publish'; 444 } 445 446 if ( current_user_can( 'edit_css' ) ) { 447 $rels[] = 'https://api.w.org/action-edit-css'; 443 448 } 444 449
Note: See TracChangeset
for help on using the changeset viewer.