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:
parent
3834288922
commit
4ed4143d21
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,13 @@ class Post {
|
|||
*/
|
||||
protected $wp_post;
|
||||
|
||||
/**
|
||||
* Attachment images, used in the content.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $attachments = array();
|
||||
|
||||
/**
|
||||
* The Allowed Tags, used in the content.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue