Warning: This function has been deprecated.

post_form_autocomplete_off() WordPress Function

The post_form_autocomplete_off() function disables autocomplete for the post form. This can be useful for preventing accidentally overwriting a post when multiple users are editing the same post.

post_form_autocomplete_off() #

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


Description

Replaced with wp_page_reload_on_back_button_js() that also fixes this problem.


Top ↑

Source

File: wp-admin/includes/deprecated.php

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

	_deprecated_function( __FUNCTION__, '4.6.0' );

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


Top ↑

Changelog

Changelog
VersionDescription
4.6.0This function has been deprecated.
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More