The latest ap-admin.css is not being loaded when AnsPress is updated
Hello,
The latest /assets/ap-admin.css is not being loaded because in /admin/anspress-admin.php,
wp_enqueue_style( 'ap-admin-css', ANSPRESS_URL . 'assets/ap-admin.css' );
is missing array() and AP_VERSION as parameters.
Thanks,
@awijasa
awijasa deleted comment
Hello,
Everything looks fine in my side and in our test environment. I think this is due to cache. Please hard refresh your browser.
Rahul Aryan commented on answer
Rahul Aryan commented
Ah, yes you are right. Just committed to GitHub. Thanks
A browser hard reset works, but it would be better if in /admin/anspress-admin.php:
wp_enqueue_style( ‘ap-admin-css’, ANSPRESS_URL . ‘assets/ap-admin.css’ );
is changed to:
wp_enqueue_style( ‘ap-admin-css’, ANSPRESS_URL . ‘assets/ap-admin.css’, array(), AP_VERSION );