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.

Description

post_form_autocomplete_off(); 

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.


Usage

  1. if ( !function_exists( 'post_form_autocomplete_off' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = post_form_autocomplete_off(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function post_form_autocomplete_off() { 
  2. global $is_safari, $is_chrome; 
  3.  
  4. _deprecated_function( __FUNCTION__, '4.6.0' ); 
  5.  
  6. if ( $is_safari || $is_chrome ) { 
  7. echo ' autocomplete="off"';