Closed greatislander closed 6 years ago
@greatislander Thanks for reporting, will take a look at this
2 issues with this. Fixed the first, trying to determine a solution to the second.
JS file was not being enqueued. Fixed by adding add_action( 'admin_init', array( 'PAnD', 'init' ) );
so now vendor/collizo4sky/persist-admin-notices-dismissal/dismiss-notice.js
is showing up again.
src to the JS file is wrong. Narrowed this down to Bedrock (works fine on PB sans trellis/bedrock) it's looking for the file using the magic constant __FILE__
, making the src look like:https://pressbooks.test/app/plugins/srv/www/pressbooks.test/current/vendor/collizo4sky/persist-admin-notices-dismissal/dismiss-notice.js?ver=4.9.7
@greatislander - I believe this is fixed via https://github.com/BCcampus/pressbooks-openstax-import/commit/7c76fa423f3341a92cf839be863914c98f9584db @alex-418 - I'm going to separate out the file path not working. Some other strange behaviour happening with the plugin affecting other composer dependencies. Not sure I'm a fan at this point.
Description
As a user, I see a notice in the admin interface stating:
I can click the [x] to dismiss this notice, but when I navigate to a new screen it reappears.
Expected behaviour
The dismissal of the notice persists (it stays gone).
Actual behaviour
It returns.
Steps to reproduce the problem
The notice is back.
System Information