Skip to content

Commit

Permalink
Guest Authors: Add labels property
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GaryJones authored Jul 21, 2023
1 parent fd94f7d commit ed1598c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/class-coauthors-guest-authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit ed1598c

Please sign in to comment.