I’d like to announce the official release of the updated Text Hover plugin (v2.2) for WordPress.
Add hover text to regular text in posts. Handy for providing explanations of names, terms, phrases, and acronyms mentioned in your blog.
This release introduces various fixes to the pattern matching criteria to allow for things like finding shortcuts that are book-ended by braces, brackets, parentheses, and single and double quotes (plain and curly), not matching text within tag attributes (a recently reported bug). Also, it is now easier to programmatically add/change the text hover shortcuts by using the newly introduced ‘c2c_text_hover_option_text_to_hover’ filter.
The plugin’s official homepage is located at :
Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.
Read more for a detailed ChangeLog of the release.
These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.
- Fixed bug that allowed text within tag attributes to be potentially replaced
- Fixed bug that prevented case sensitivity-related option from being taken into account
- Removed ‘case_sensitive’ argument from text_replace() function since it is controlled by a setting
- Changed pattern matching criteria to allow text-to-be-hovered to be book-ended on either side with single or double quotes (either plain or curly), square brackets, curly braces, or parentheses
- Added ability to filter text hover shortcuts via ‘c2c_text_hover_option_text_to_hover’
- Changed the number of rows for textarea input from 5 to 15
- Changed plugin_basename to be a class variable initialized during constructor
- Removed use of single-use temp variable (and instead directly used the value it was holding)
- Minor code reformatting (mostly spacing)