Skip to content

Commit

Permalink
Merge pull request #151 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in InsertPostHandler
  • Loading branch information
roborourke authored Jul 22, 2024
2 parents 9aa2a96 + 24f6981 commit 2d4e2e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ This endpoint allows:

### `authorship` field

This field is added to the endpoint for all suported post types (by default, ones which that have post type support for `author`), for example `wp/v2/posts`. This field is readable and writable and accepts and provides an array of IDs of users attributed to the post.
This field is added to the endpoint for all supported post types (by default, ones which that have post type support for `author`), for example `wp/v2/posts`. This field is readable and writable and accepts and provides an array of IDs of users attributed to the post.

In addition, user objects are embedded in the `_embedded['wp:authorship']` field in the response if `_embed` is set and the authenticated user can list users.

Expand Down
2 changes: 1 addition & 1 deletion inc/class-insert-post-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function action_wp_insert_post( int $post_ID, WP_Post $post, bool $update ) : vo
$authors = $unsanitized_postarr[ POSTS_PARAM ];
} else {
/**
* Set the default authorship author. Defaults to the orignal post author.
* Set the default authorship author. Defaults to the original post author.
*
* @param array $authors Authors to add to a post on insert if none have been passed. Default to post author.
* @param WP_Post $post Post object.
Expand Down

0 comments on commit 2d4e2e3

Please sign in to comment.