Skip to content

Commit

Permalink
Post images: fix a typo in the hook name (Automattic#429)
Browse files Browse the repository at this point in the history
* Post images: fix a typo in the hook name

Follow-up to Automattic#309

It should be '_post', not twice '_pre'.

* let grunt create the readme.md

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
  • Loading branch information
jeherve and pfefferle authored Sep 14, 2023
1 parent 84c3933 commit 2568f66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.

Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).

### Next ###

* Fixed: fix a typo in a hook name.

### 1.0.0 ###

* Add: blog-wide Account (catchall, like `example.com@example.com`)
Expand Down
2 changes: 1 addition & 1 deletion includes/transformer/class-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected function get_image( $id, $image_size = 'full' ) {
* @param int $id The attachment ID.
* @param string $image_size The image size to retrieve. Set to 'full' by default.
*/
do_action( 'activitypub_get_image_pre', $id, $image_size );
do_action( 'activitypub_get_image_post', $id, $image_size );

return $thumbnail;
}
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides.

Project maintained on GitHub at [automattic/wordpress-activitypub](https://github.com/automattic/wordpress-activitypub).

= Next =

* Fixed: fix a typo in a hook name.

= 1.0.0 =

* Add: blog-wide Account (catchall, like `example.com@example.com`)
Expand Down

0 comments on commit 2568f66

Please sign in to comment.