WordPress 4.9 compatability
-
The plugin’s page says AMP plugin is compatible with v4.9 but it doesn’t work. It throws an error looking for i18n, which was added for Gutenberg. Do you plan to maintain compatibility with v4.9 or is the compatibility tag wrong? Maintaining compatibility with v4.9 also ensures the plugin works with the ClassicPress fork, which is where I noticed this issue.
A team member from Beaver Builder shared a polyfill that fixes this issue for now. I’m sharing it for reference in case someone else needs it:
Check and enqueue script:
if ( ! wp_script_is( 'wp-i18n', 'registered' ) ) { wp_enqueue_script( 'fl-wp-i18n', "{$js_vendors}i18n-polyfill.js" ); }
JavaScript file:
window.wp = window.wp || {}; window.wp.i18n = {};
Thanks.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WordPress 4.9 compatability’ is closed to new replies.