Supertext / polylang-supertext

Supertext Plugin for the Wordpress Polylang Multilingual Add-On
7 stars 3 forks source link

PLL_PREFIX constant does not exist #14

Closed ocean90 closed 3 years ago

ocean90 commented 4 years ago

It seems like Polylang no longer defines a PLL_PREFIX constant causing a PHP warning

Use of undefined constant PLL_PREFIX - assumed 'PLL_PREFIX' (this will throw an Error in a future version of PHP) wp-content/plugins/polylang-supertext/src/Supertext/Polylang/Core.php:154

This was recently changed in https://github.com/Supertext/polylang-supertext/commit/76cc852ba0ae7b1fa31847a5dce18c407019eb53, cc @hmuralt

Current workaround: Add define( 'PLL_PREFIX', 'pll_' ); to wp-config.php.

rblaettler commented 4 years ago

Thanks for the hint. We built a new version of our plugin that is compatible with Polylang and WPML. But it's not 100% ready yet. Will make sure it's fixed there.

hmuralt commented 3 years ago

19 Fix