Current Year, Symbols and IP Shortcode changelog

By kgmservizi, on WordPress.org since 2018. 10,000+ active installs.

Browse code

3 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.

  1. 2.7
    • Every text the shortcodes print is now translatable: error messages, “Copyright” and the screen reader labels of the symbols.
    • Screen readers: [c], [t], [tm], [sm], [cy] and [cyy] now carry role=”img”, so their label is read reliably.
    • Tested with WordPress 7.1.
    Source Diff vs 2.6
  2. 2.6
    • Offsets now follow the timezone set in your WordPress settings, on dates and on times.
    • More consistent handling of the year format: [cyy] and friends with format=”y” show a single year when there is nothing to range, same as format=”Y” already did.
    • Stricter check on the year attribute.
    • [show_user_ip] reads forwarded headers only when the request comes through a known proxy. Local reverse proxies and Cloudflare work out of the box, other CDNs can be added with a filter, see the FAQ.
    • Pages using [show_user_ip] are kept out of full page caching.
    • Code revision on the date and copyright shortcodes.

    And 1 more note.

    Source Diff vs 2.5
  3. 2.5
    • Improved accessibility: symbols and copyright shortcodes now include aria-label for screen readers.
    • Security: improved input sanitization and output escaping across all shortcodes.
    • Fixed offset bug with negative values (e.g. [y offset=”-3″]).
    • Fixed loose type comparison in copyright year range shortcodes.
    • Removed duplicate validation code, consolidated into shared functions.
    • Optimized date function calls for better performance.

    And 4 more notes.

    Source