From 8b13743bf44364a4f49f818ea63618a411326f86 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Sat, 10 Feb 2024 21:28:29 +0300 Subject: [PATCH] Fix PHP warning in SettingsBase. --- readme.txt | 1 + src/php/Settings/Abstracts/SettingsBase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index a5e634e..4739e3d 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/src/php/Settings/Abstracts/SettingsBase.php b/src/php/Settings/Abstracts/SettingsBase.php index 9e1e9ca..568ff92 100644 --- a/src/php/Settings/Abstracts/SettingsBase.php +++ b/src/php/Settings/Abstracts/SettingsBase.php @@ -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() );