Compare commits
1 commit
custom_sum
...
main
Author | SHA1 | Date | |
---|---|---|---|
dddd3e395f |
3 changed files with 13 additions and 1 deletions
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fixed that transformer hook function might also return `null`.
|
||||
|
||||
## [0.2.1] - 2024-11-16
|
||||
|
||||
### Added
|
||||
|
|
|
@ -100,6 +100,12 @@ We're always interested in your feedback. Feel free to reach out to us via [E-Ma
|
|||
|
||||
## Changelog ##
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fixed that transformer hook function might also return `null`.
|
||||
|
||||
### [0.2.1] 2024-11-16 ###
|
||||
|
||||
* Initial release on https://wordpress.org/
|
||||
|
|
|
@ -252,7 +252,7 @@ class Setup {
|
|||
*
|
||||
* @return \Activitypub\Transformer\Base|null
|
||||
*/
|
||||
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
|
||||
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): ?\Activitypub\Transformer\Base {
|
||||
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
||||
if ( 'WP_Post' !== $object_class ) {
|
||||
return $transformer;
|
||||
|
|
Loading…
Reference in a new issue