Golf Handicap & Slope

Changelog

2.1.8

  • Fixed: Critical bug where calculator failed due to incorrect data access (object vs array notation for tee data)
  • Fixed: Wrong option key for plugin settings caused default colors to always be used
  • Fixed: JavaScript referenced non-existent DOM IDs, breaking calculator functionality
  • Fixed: Activation migration never ran because version was updated before version check
  • Fixed: esc_html() on CSS in wp_add_inline_style() broke dynamic color styling
  • Fixed: Consolidated duplicate wp_localize_script calls for golfhs_data
  • Fixed: Custom colors from admin settings not applied on frontend (CSS variable override)
  • Fixed: Admin preview not reflecting custom color choices (CSS variables instead of hardcoded colors)
  • Fixed: “Use Theme Colors” checkbox was misleading — renamed to “Use Plugin Default Colors”
  • Fixed: table_columns setting not saving due to strict type comparison (string vs integer)
  • Fixed: Inline CSS injection in shortcode conflicted with theme color toggle
  • Fixed: Standardized default color to #1e73be across all files
  • Fixed: Hardcoded version strings replaced with GOLFHS_VERSION constant
  • Fixed: Hardcoded Norwegian strings in admin JS now use localized strings
  • Removed: Unused dead code (duplicate calculator JS file, unused PHP method)
  • Improved: Reordered tee form fields — Course Rating now appears before Slope Rating
  • Improved: Full WordPress Coding Standards compliance (PHPCS)
  • Improved: Cleaner JavaScript without unnecessary desktop/mobile DOM splitting
  • Improved: All admin JS strings now internationalized via wp_localize_script
  • Improved: Removed all debug console.log statements from production code
  • Improved: Updated Norwegian translations for new UI text
  • Improved: Regenerated .l10n.php translation cache for WordPress 6.5+ compatibility
  • Security: Added wp_strip_all_tags() to all wp_add_inline_style() calls

2.1.5

  • Fixed: Added missing translations for calculator labels (“Your handicap”, “Which tee?”, “Course handicap:”)

2.1.4

  • Fixed: Norwegian translation not loading – restored load_plugin_textdomain() function

2.1.3

  • Fixed: Removed all inline CSS styles and style blocks per WordPress.org coding standards
  • Fixed: Properly enqueued all CSS using wp_enqueue_style()
  • Fixed: Dynamic colors now injected via wp_add_inline_style()
  • Improved: All styles moved to external CSS file golf-handicap-slope-frontend.css
  • Improved: Updated element IDs in calculator template to match JavaScript expectations
  • Improved: Added CSS classes to replace inline display:none attributes
  • Improved: Full compliance with WordPress coding standards (PHPCS clean)

2.1.2

  • Fixed: Properly escaped all wp_add_inline_style() calls for security compliance
  • Fixed: Removed unnecessary load_plugin_textdomain() call as per WordPress 4.6+ guidelines
  • Fixed: Renamed JavaScript objects to use golfhs_ prefix for better namespace compliance
  • Fixed: Calculator display bug showing incorrect allocated strokes
  • Improved: Mobile responsive layout – input fields now stack vertically on small screens
  • Removed: All debug console.log statements for production readiness
  • Updated: Contributors list to comply with WordPress.org requirements

2.1.1

  • Added translations for all texts in admin and frontend
  • Improved mobile view for tables – always one column on mobile devices
  • Updated plugin name from “WP Slopekalkulator” to “Golf Handicap & Slope”
  • Improved responsive design
  • Added support for theme colors
  • Various bug fixes and performance improvements

2.0.0

  • New feature: Customizable colors
  • Improved administration interface
  • Added drag-and-drop for tee ordering
  • New feature: Adjustable number of columns for table display
  • Improved formula for course handicap according to WHS
  • Added support for plus handicaps

1.0.0

  • First public version
  • Basic course handicap calculator
  • Display of handicap tables
  • Management of tees

Plugin Website
Visit website

Version:
2.1.8
Last Updated
March 27, 2026
Active Installs
10
Requires
WordPress 5.6
Tested Up To
WordPress 6.9.4
Requires PHP
7.0

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.