Skip to content

Releases

v2.0.1

Choose a tag to compare

@gfazioli gfazioli released this 26 Nov 16:56
  • Translations load through WP Bones 3.4.1, which reads the plugin's Text Domain and Domain Path; the plugin no longer loads them itself. The Domain Path header now has the leading slash WordPress documents. The translations a site sees do not change.

v2.0.0

Choose a tag to compare

@gfazioli gfazioli released this 26 Nov 09:10

A rewrite. The plugin keeps its purpose and its folder and file names, so an update does not deactivate it, and everything else is new. It now needs WordPress 6.6 and PHP 8.1 (1.x was written for WordPress 2.6).

What changes for a site that used 1.x:

  • Your settings are migrated. On the first load the 1.x settings (wp_abs_settings) are moved into the new ones and the old option is deleted. Name, description, contact, tags, the icon (the 64 pixel image if you set one, else a favicon of your own), the search address and the search page all come across. Values that were the site's own defaults (title, tagline, favicon.ico in the site root, /?s={searchTerms}, the home page) become empty fields, so they follow your site from now on. The settings page tells you once that this happened.
  • The address stays /opensearch.xml. It is now a proper rewrite rule (flushed on activation and deactivation) and is served as application/opensearchdescription+xml, not as text/html. The old plugin had no template tag; the constants OPENSEARCH_XML and WPABS_VERSION still exist.
  • The settings page moved and was rewritten. It is Settings › Add Browser Search. The 1.x page had no nonce and no sanitising; this one checks the capability and a nonce, sanitises every field, and tells you which field it refused and why.
  • The administrator's email is no longer the default contact. 1.x published it by default. The contact is empty unless you fill it in: a 1.x contact equal to the site's administration email is dropped by the migration, and any other address you entered comes across as it was.
  • A name over 16 characters is cut, as OpenSearch requires (a longer name made the description invalid).
  • The icon: your site icon is advertised at 16 and 64 pixels, with width, height and type, instead of a guessed /favicon.ico.
  • New: search suggestions in the browser's address bar, from a small public REST route (on by default, can be turned off).
  • New: the description declares InputEncoding, a self link and moz:SearchForm, and the output is escaped (1.x printed the settings as they were typed).
  • New: Italian, Spanish, French, German and Brazilian Portuguese translations.
  • New: unit tests and a live check on WordPress 7.2.
  • The plugin's options are removed when you delete it from the Plugins screen, not when you deactivate it.