Skip to content

Commit

Permalink
Fix edge case where $classes can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 20, 2024
1 parent 590b679 commit e2020b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Admin/AbstractOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,12 @@ abstract public function localize_script( string $page_slug, string $script_hand
/**
* Add body class.
*
* @param string $classes The body classes.
* @param string|null $classes The body classes.
*
* @return string
*/
public function admin_body_class( string $classes ): string {
public function admin_body_class( ?string $classes ): string {
$classes = $classes ?? '';

$page_parent = get_admin_page_parent();

Expand Down

0 comments on commit e2020b6

Please # to comment.