David Garcia Watkins
David Garcia Watkins
This pull request adds support for translating Brizy with any of WPML's translation editors. - Adds 'suppress_filters => false' to `get_posts` calls so that WPML's filters can do their job...
Relates to https://wordpress.org/support/topic/single-event-page-duplicate-query/ [TEC-4428] [TEC-4428]: https://theeventscalendar.atlassian.net/browse/TEC-4428?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
WPML appends the language code to the result of home_url, ie: http://localhost/es/wp-json This breaks the comparison with the result of rest_url and won't let us save events using the block...
The idea is to add the ids for the translation when querying the database. It is done in a way that we can reuse the code for WooCommerce, EDD &...
This gives WPML the chance to translate admin options. This was reported it here and confirmed the fix works: https://wpml.org/forums/topic/plugin-has-2-part-string-only-one-part-translating/#post-955596
The idea is to add the ids for the translation when querying the database. It is done in a way that we can reuse the code for WooCommerce, EDD &...
I had a chat with @andrasguseo over Slack and I created this PR to show a possible fix.
* [x] I've read and understood the [contribution guidelines](https://github.com/Yoast/wordpress-seo/blob/trunk/.github/CONTRIBUTING.md). * [x] I've searched for any related issues and avoided creating a duplicate issue. ### Please give us a description of...