Post class: declare $attachments property

This should avoid PHP notices like this one when running PHP 8.2:

PHP Deprecated:  Creation of dynamic property Activitypub\Transformer\Post::$attachments is deprecated in /var/www/html/wp-content/plugins/activitypub/includes/transformer/class-post.php on line 249
This commit is contained in:
Jeremy Herve 2023-07-26 12:02:18 +02:00
parent 3834288922
commit 4ed4143d21
No known key found for this signature in database
GPG key ID: EF65CC7D9AC11920

View file

@ -28,6 +28,13 @@ class Post {
*/ */
protected $wp_post; protected $wp_post;
/**
* Attachment images, used in the content.
*
* @var array
*/
protected $attachments = array();
/** /**
* The Allowed Tags, used in the content. * The Allowed Tags, used in the content.
* *