From ed1598c4138e6734781b341a6548c85b533808e8 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 21 Jul 2023 13:35:57 +0100 Subject: [PATCH] Guest Authors: Add labels property Dynamically created class properties are deprecated in PHP 8.2, so this change explicitly defines the property in the class. It needs to be public, as it is used by the list table class when defining the search box label. --- php/class-coauthors-guest-authors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-coauthors-guest-authors.php b/php/class-coauthors-guest-authors.php index 14971837..4ec4837a 100644 --- a/php/class-coauthors-guest-authors.php +++ b/php/class-coauthors-guest-authors.php @@ -8,7 +8,7 @@ class CoAuthors_Guest_Authors { - + public $labels; var $post_type = 'guest-author'; var $parent_page = 'users.php'; var $list_guest_authors_cap = 'list_users';