Skip to content

Commit

Permalink
Fix typo in check_post_types_permissions()
Browse files Browse the repository at this point in the history
  • Loading branch information
theskinnyghost committed Oct 4, 2023
1 parent b47900f commit 2794487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ function check_post_types_permissions() {
$caps = $type->cap;

if ( current_user_can( $caps->edit_posts ) ) {
$response['can_post'][] = $type->name;
$response['can_get'][] = $type->name;
}

if ( current_user_can( $caps->edit_posts ) && current_user_can( $caps->create_posts ) && current_user_can( $caps->publish_posts ) ) {
Expand Down

0 comments on commit 2794487

Please sign in to comment.