The latest ap-admin.css is not being loaded when AnsPress is updated

3.43K viewsUpdatesstyle-issue
0

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

deleted comment
0

Hello,

Everything looks fine in my side and in our test environment. I think this is due to cache. Please hard refresh your browser.

commented on answer

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 );

Ah, yes you are right. Just committed to GitHub. Thanks