WordPress at Your Fingertips
function is not described

post_form_autocomplete_off() WP 4.0.0

Deprecated from version 4.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

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.

No Hooks.

Return

null. Nothing.

Usage

post_form_autocomplete_off();

Notes

  • Global. true|false. $is_safari
  • Global. true|false. $is_chrome

Changelog

Since 4.0.0 Introduced.
Deprecated 4.6.0

Code of post_form_autocomplete_off() WP 5.8.2

function post_form_autocomplete_off() {
	global $is_safari, $is_chrome;

	_deprecated_function( __FUNCTION__, '4.6.0' );

	if ( $is_safari || $is_chrome ) {
		echo ' autocomplete="off"';
	}
}