I’ve recently upgraded to WordPress 3.0, and am having a lot of problems with the autocomplete function when editing posts via ‘quick edit’ (e.g. /wp-admin/edit.php) – for example, editing tags. The autocomplete box often obscures the textbox I’m trying to enter text into, and sometimes gets ‘left behind’ once the ‘update’ button has been clicked.
Is there a way to disable the autocomplete?
UPDATE
To clarify, this is a WordPress autocomplete feature, not a browser-based one.
UPDATE 2
It looks as if I need to remove the ‘suggest’ argument to “load-scripts.php”, referenced at the bottom of each admin page like so:
<script type='text/javascript'
src='http://www.example.com/path/to/wordpress/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,suggest,inline-edit-post'>
</script>
That seems to be generated by:
do_action('admin_print_footer_scripts');
but I lose the code trail at that point – anyone?
I have a solution I tested, and it works.
The autocomplete for the tags is currently done via an ajax request to the file admin-ajax.php.
The solution I would suggest is to block the processing of the request so that it does not return any result. I would do :
The previous function verify:
‘ajax-tag-search’
‘/wp-admin/edit.php’ page
If these 3 conditions are meet, no result will be returned and the tag suggestions not displayed.
If you want to remove this autocomplete from all the pages, not the ‘wp-admin/edit.php’ only, you can do:
I would suggest you to look at the code of ‘admin-ajax.php’ to see all the ‘action’ parameters there, thus all the ajax requests you can kill with similar methods.
I hope my explanation was clear. Don’t hesitate to ask me if you want more details or have any question.
Bounty for me? 🙂
You can either disable it in your browser or route around the WP source and slap this
autocomplete
attribute in the offending box:Alternatively you could use greasemonkey to modify the page to disable autocomplete in the way mentioned above.
You can use this plugin:
Tag Uncomplete
http://wordpress.org/extend/plugins/tag-uncomplete/
Its intended for people who have a very large number of tag terms, but it does exactly what your wanting
You can disable a response from the server, as sorich87 has explained, or you could try the (more complicated) way of disabling the javascript that starts the AJAX request. If you just remove the
suggest
library, the various places that call thesuggest
function will probably fail, so you should replace it with a stub function that does nothing.You can pass
attr
in html element.Autocomplete IS a browser function but it is an Input field parameter.
If a website must meet PCI compliance standards it will FAIL PCI if autocomplete is on in the input fields–regardless of anyone’s browser.