Post images: fix a typo in the hook name (#429)

* Post images: fix a typo in the hook name

Follow-up to #309

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

* let grunt create the readme.md

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
This commit is contained in:
Jeremy Herve 2023-09-14 19:50:27 +02:00 committed by GitHub
parent 84c3933c78
commit 2568f6651d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -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`)

View file

@ -275,7 +275,7 @@ class Post {
* @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;
}

View file

@ -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`)