post_form_autocomplete_off

The timeline below displays how wordpress function post_form_autocomplete_off has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.9

/**
 * 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.
 *
 * @since 4.0.0
 * @deprecated 4.6.0
 *
 * @link https://core.trac.wordpress.org/ticket/35852
 *
 * @global bool $is_safari
 * @global bool $is_chrome
 */
function post_form_autocomplete_off()
{
    global $is_safari, $is_chrome;
    _deprecated_function(__FUNCTION__, '4.6.0');
    if ($is_safari || $is_chrome) {
        echo ' autocomplete="off"';
    }
}

WordPress Version: 4.6

/**
 * 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.
 *
 * @since 4.0.0
 * $deprecated 4.6.0
 *
 * @global bool $is_safari
 * @global bool $is_chrome
 */
function post_form_autocomplete_off()
{
    global $is_safari, $is_chrome;
    _deprecated_function(__FUNCTION__, '4.6.0');
    if ($is_safari || $is_chrome) {
        echo ' autocomplete="off"';
    }
}

WordPress Version: 4.4

/**
 * 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
 *
 * @since 4.0.0
 *
 * @global bool $is_safari
 * @global bool $is_chrome
 */
function post_form_autocomplete_off()
{
    global $is_safari, $is_chrome;
    if ($is_safari || $is_chrome) {
        echo ' autocomplete="off"';
    }
}

WordPress Version: 4.3

/**
 * 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
 *
 * @since 4.0
 *
 * @global bool $is_safari
 * @global bool $is_chrome
 */
function post_form_autocomplete_off()
{
    global $is_safari, $is_chrome;
    if ($is_safari || $is_chrome) {
        echo ' autocomplete="off"';
    }
}

WordPress Version: 4.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
 *
 * @since 4.0
 */
function post_form_autocomplete_off()
{
    global $is_safari, $is_chrome;
    if ($is_safari || $is_chrome) {
        echo ' autocomplete="off"';
    }
}