Dynamic properties are deprecated in PHP 8.2. This PR explicitly defines a class property. It needs to stay public as it is referenced in other classes directly.
Deploy Notes
None
Steps to Test
With PHP 8.2, a message of:
PHP message: Deprecated: Creation of dynamic property CoAuthors_Plus::$guest_authors is deprecated in /var/www/wp-content/plugins/co-authors-plus/co-authors-plus.php on line 158
...would be logged. After applying the patch, this will no longer appear.
Description
Dynamic properties are deprecated in PHP 8.2. This PR explicitly defines a class property. It needs to stay public as it is referenced in other classes directly.
Deploy Notes
None
Steps to Test
With PHP 8.2, a message of:
...would be logged. After applying the patch, this will no longer appear.