Merge pull request #370 from Automattic/fix/php82-dynamic-properties-post

Compat: avoid PHP notices when using PHP 8.2
This commit is contained in:
Matthias Pfefferle 2023-07-26 19:29:19 +02:00 committed by GitHub
commit 35f7b6ab8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -246,8 +246,6 @@ class Post {
}
}
$this->attachments = $images;
return $images;
}

View file

@ -124,6 +124,7 @@ Project maintained on GitHub at [automattic/wordpress-activitypub](https://githu
* Compatibility: add a new conditional, `\Activitypub\is_activitypub_request()`, to allow third-party plugins to detect ActivityPub requests.
* Compatibility: add hooks to allow modifying images returned in ActivityPub requests.
* Compatibility: indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.2.
* Compatibility: avoid PHP notice on sites using PHP 8.2.
= 0.17.0 =