Skip to content

Commit

Permalink
fix/all-settings-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Oct 18, 2024
1 parent b5d5706 commit 17ecb6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/admin/class-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ public static function get_settings_pages() {
* For example: if you register a setting page with give-settings menu slug
* then filter will be give-settings_get_settings_pages
*
* @unreleased cast to array
* @since 1.8
*
* @param array $settings Array of settings class object.
*/
self::$settings = apply_filters( self::$setting_filter_prefix . '_get_settings_pages', [] );
self::$settings = (array)apply_filters( self::$setting_filter_prefix . '_get_settings_pages', [] );

return self::$settings;
}
Expand Down

0 comments on commit 17ecb6d

Please sign in to comment.