_acf_maybe_kses_internal_post_settings()
Sanitizes the settings of an ACF internal post being saved, when the current user can't use unfiltered HTML and sanitization isn't skipped with acf_skip_internal_post_sanitization().
Settings are stored exactly as given, so this does what kses on post_content otherwise do for these users, without corrupting the serialized data.
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
array.
Использование
_acf_maybe_kses_internal_post_settings( $settings );
- $settings(массив) (обязательный)
- The unslashed settings.
Список изменений
| С версии 6.8.11 | Введена. |
Код _acf_maybe_kses_internal_post_settings() acf maybe kses internal post settings ACF 6.8.11
function _acf_maybe_kses_internal_post_settings( $settings ) {
if ( ! _acf_should_sanitize_internal_post_settings() ) {
return $settings;
}
return _acf_kses_post_deep_with_keys( $settings );
}