Easy-digital-downloads: Browser cache flush required when EDD admin CSS is updated

Created on 26 Feb 2017  路  5Comments  路  Source: easydigitaldownloads/easy-digital-downloads

The 2.7 update included new EDD admin styling via the edd-admin.min.css file. If the user does not clear their browser cache, viewing an order can result in strange styling.

The query string associated with that stylesheet is the current WordPress version rather than the current version of EDD. I'd recommend swapping out the query string for all js/css files to be related to the EDD version instead.

component-administration type-bug

Most helpful comment

That'd do it! Good catch, sometimes we need someone who doesn't look at it every day.

All 5 comments

Thanks for the report - we'll get it addressed in the next point release.

I'm a bit confused on this one. We're defining version for the admin scripts with EDD_VERSION (https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/scripts.php%23L257) @pippinsplugins Any thoughts?

screen shot 2017-03-03 at 11 53 53 am

I'm seeing some things are the EDD version and some are the WordPress version...

@ghost1227 on line 257, it looks like the EDD_VERSION is being set as the third parameter rather than the fourth ... https://codex.wordpress.org/Function_Reference/wp_register_style. This would be the issue.

That'd do it! Good catch, sometimes we need someone who doesn't look at it every day.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mindctrl picture mindctrl  路  4Comments

zackkatz picture zackkatz  路  4Comments

Ismail-elkorchi picture Ismail-elkorchi  路  3Comments

zackkatz picture zackkatz  路  5Comments

SDavisMedia picture SDavisMedia  路  3Comments