Skip to content

WP Datetime Difference Shortcode — v1.0.1

Latest

Choose a tag to compare

@ccsimmons ccsimmons released this 14 Jan 21:18

Security & Hardening

  • Restricted shortcode output to numeric-only formats (Y, M, D)
  • Removed support for arbitrary DateInterval::format() tokens
  • Added validation for dd.mm.YYYY date parsing
  • Ensured no user-supplied content is rendered unescaped

Stability & Compatibility

  • Normalized shortcode attributes to support WordPress lowercase handling
  • Improved defensive handling of invalid date input
  • Added safe fallbacks for edge cases

Licensing & Packaging

  • Switched license to GPL-2.0-or-later for full WordPress compatibility
  • Aligned plugin name, slug, main file, and text domain
  • Repository prepared for potential WordPress.org submission

Backward Compatibility

  • Shortcode name unchanged: [DatetimeDifference]
  • Existing shortcode usage continues to work without modification

Summary:

This release focuses on security, correctness, and WordPress best practices,
making the plugin a safe, modern replacement for the abandoned Date Counter plugin.