Usage of esc_url() invalidates date range links
-
Hi!
I’m using WP-Statistics v12.0.6 and found an issue with the date range links displayed above e.g. statistics diagrams.
There is an additional “https://” added in the middle of the link, right before the “?precat=” URL parameter – see picture: https://imgur.com/a/wQYbi
To me it seems that the usage of esc_url() in the “wp_statistics_date_range_selector()” function (\includes\functions\functions.php) is the culprit: https://imgur.com/a/NCp3Y
When using a previous code snippet without applying esc_url() to the “$extrafields” variable, the links are generated properly.
Please check, report back and fix (if applicable) in any of the next versions!
- The topic ‘Usage of esc_url() invalidates date range links’ is closed to new replies.