diff --git a/includes/admin/class-admin-settings.php b/includes/admin/class-admin-settings.php index c409c39c9e..784c58c25e 100644 --- a/includes/admin/class-admin-settings.php +++ b/includes/admin/class-admin-settings.php @@ -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; }