Skip to content

Commit

Permalink
Fix error on System Info tab when post types or post statuses are not…
Browse files Browse the repository at this point in the history
… set.
  • Loading branch information
kagg-design committed Feb 20, 2024
1 parent b58ec76 commit 9e514e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ Yes, you can!

== Changelog ==

= 6.0.9 (XX.XX.2024) =
* Fixed error on System Info tab when post types or post statuses are not set.

= 6.0.8 (14.02.2024) =
* Improved detection of the Gutenberg editor.
* Fixed processing of product attributes.
Expand Down
4 changes: 2 additions & 2 deletions src/php/Settings/SystemInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ static function ( $tab ) {

$data .= $this->header( '--- Post Types and Statuses ---' );

$post_types = $settings->get( 'background_post_types' );
$post_statuses = $settings->get( 'background_post_statuses' );
$post_types = (array) $settings->get( 'background_post_types', [] );
$post_statuses = (array) $settings->get( 'background_post_statuses', [] );

$data .= $this->data( 'Post types', implode( ', ', $post_types ) );
$data .= $this->data( 'Post statuses', implode( ', ', $post_statuses ) );
Expand Down

0 comments on commit 9e514e8

Please sign in to comment.