Changeset 37619 for trunk/src/wp-admin/includes/deprecated.php
- Timestamp:
- 06/02/2016 01:29:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/deprecated.php
r37193 r37619 1374 1374 return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_utility_menu); 1375 1375 } 1376 1377 /** 1378 * Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers, 1379 * as they disregard the autocomplete setting on the editor textarea. That can break the editor 1380 * when the user navigates to it with the browser's Back button. See #28037 1381 * 1382 * Replaced with wp_page_reload_on_back_button_js() that also fixes this problem. 1383 * 1384 * @since 4.0.0 1385 * $deprecated 4.6.0 1386 * 1387 * @global bool $is_safari 1388 * @global bool $is_chrome 1389 */ 1390 function post_form_autocomplete_off() { 1391 global $is_safari, $is_chrome; 1392 1393 _deprecated_function( __FUNCTION__, '4.6' ); 1394 1395 if ( $is_safari || $is_chrome ) { 1396 echo ' autocomplete="off"'; 1397 } 1398 }
Note: See TracChangeset
for help on using the changeset viewer.