January 17, 2017 at 4:15 pm
#18371
frz
Participant
Thanks to Droleba I made a script to make fixing Yoast SEO Premium easier.
Unzip the plugin, run this bash script in the same folder. Tested on Ubuntu 16.04.
#!/bin/sh
version=grep "Version: " ./wordpress-seo-premium/wp-seo-premium.php | rev | cut -d " " -f1 | rev
sed -i ‘s/\! $this->license_is_valid()/$this->license_is_valid()/’ ./wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php
zip -r -9 wordpress-seo-premium-$version-fixed.zip ./wordpress-seo-premium
The forum mangled it, see the pastebin instead.