✨ | Node Revision Delete | Enhancement & Update Drush command to allow specifying content types for deletion
🇮🇳India dharmendraqed42
✨ | Node Revision Delete | Enhancement & Update Drush command to allow specifying content types for deletion
🇮🇳India dharmendraqed42
I have implemented the requested changes and attached the patch file.
✨ | Node Revision Delete | Enhancement & Update Drush command to allow specifying content types for deletion
🇮🇳India dharmendraqed42
dharmendraqed42 → created an issue.
🇮🇳India dharmendraqed42
I got an error that said, 'Uncaught DOMException: Failed to execute 'remove' on 'DOMTokenList': The token provided ('not available') contains HTML space characters, which are not valid in tokens.'
I fixed it by changing this part of the code in yoast_seo.js file:
Before:
scoreDisplay.classList.remove(scoreLabel.innerHTML.toLowerCase());
scoreDisplay.classList.add(newLabelText.toLowerCase());
After:
scoreDisplay.classList.remove(scoreLabel.innerHTML.toLowerCase().replace(' ', '-'));
scoreDisplay.classList.add(newLabelText.toLowerCase().replace(' ', '-'));
This change fixed the problem.