Skip to content

1.3.0 — Resend, update check & visual alignment

Choose a tag to compare

@gioxx gioxx released this 03 Jun 18:31
fe54b37

What's new in 1.3.0

✉️ Resend API support

A third email delivery method joins PHP mail() and SMTP: Resend. No SMTP configuration needed — just an API key and a verified sender address. Falls back to PHP mail() automatically if the API call fails.

🔔 Automatic update check

The plugin now checks GitHub Releases for new versions and shows a banner on the settings page and a badge next to the page title when an update is available. The check is cached for 12 hours and uses in-process memoization to avoid redundant database reads.

🎨 Visual alignment

The admin interface has been overhauled to match the shared YOURLS plugin design standard:

  • Consistent panel palette (#fff background, #d9e6ef border, border-radius: 10px)
  • Gradient applied to the title text only, never to the emoji
  • All action buttons converted to <button> elements with the aligned style
  • Section headings (h3/h4/h5) now have explicit font-size and font-weight to prevent YOURLS base styles from shrinking them
  • All inline style="" attributes replaced with dedicated CSS classes
  • Asset cache-busting via filemtime() instead of the static version string
  • Footer redesigned: left-aligned, official plugin page link + GitHub link on the left, ↑ Back to top on the right

🐛 Bug fixes

  • CSS specificity: .reset-button (danger zone) was being overridden by the higher-specificity .form-section .button rule — reset buttons were appearing white instead of red
  • Update cache: API failures were previously cached for 12 hours, silencing valid update notices after a transient network error
  • use_smtp boolean: radio value was coerced to 0/1 boolean on save, making it impossible to extend to a third method

🗂️ Structural

  • require_once moved to the top of plugin.php before function definitions
  • .gitattributes added for LF line-ending normalization
  • languages/yourls-change-notifier.pot template added