Skip to content

Commit

Permalink
Fix PHP warning in SettingsBase.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Feb 10, 2024
1 parent 8f46057 commit 8b13743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Yes, you can!
* Added redirect from the cyrillic post title when creating a new post.
* Added description of post types and post statuses on the Converter page.
* Fixed displaying all file descriptions in the Theme Editor in the current locale.
* Fixed PHP warning in SettingsBase.

= 6.0.6 (14.01.2024) =
* Tested with WordPress 6.4.
Expand Down
2 changes: 1 addition & 1 deletion src/php/Settings/Abstracts/SettingsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function setup_sections() {
foreach ( $this->form_fields as $form_field ) {
add_settings_section(
$form_field['section'],
$form_field['title'],
$form_field['title'] ?? '',
[ $tab, 'section_callback' ],
$tab->option_page()
);
Expand Down

0 comments on commit 8b13743

Please sign in to comment.