From 2568f6651dd09b46847e3f7ea0a5959e3f673812 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 14 Sep 2023 19:50:27 +0200 Subject: [PATCH] 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 --- README.md | 4 ++++ includes/transformer/class-post.php | 2 +- readme.txt | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ce0fe4..b82a9ba 100644 --- a/README.md +++ b/README.md @@ -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`) diff --git a/includes/transformer/class-post.php b/includes/transformer/class-post.php index 09b79e4..0267e2e 100644 --- a/includes/transformer/class-post.php +++ b/includes/transformer/class-post.php @@ -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; } diff --git a/readme.txt b/readme.txt index 804b229..8f144c8 100644 --- a/readme.txt +++ b/readme.txt @@ -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`)