post_form_autocomplete_off()
Устарела с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers, as they disregard the autocomplete setting on the editor textarea. That can break the editor when the user navigates to it with the browser's Back button. See #28037
Replaced with wp_page_reload_on_back_button_js() that also fixes this problem.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
post_form_autocomplete_off();
Заметки
- Global. true|false. $is_safari
- Global. true|false. $is_chrome
Список изменений
С версии 4.0.0 | Введена. |
Устарела с | 4.6.0 |
Код post_form_autocomplete_off() post form autocomplete off WP 6.4.3
function post_form_autocomplete_off() { global $is_safari, $is_chrome; _deprecated_function( __FUNCTION__, '4.6.0' ); if ( $is_safari || $is_chrome ) { echo ' autocomplete="off"'; } }