WordPress.org

Make WordPress Core

Changes between Initial Version and Version 12 of Ticket #41373


Ignore:
Timestamp:
09/02/2017 01:37:00 PM (23 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41373

    • Property Keywords needs-testing needs-unit-tests reporter-feedback added
    • Property Component changed from General to Taxonomy
    • Property Summary changed from Wordpress 4.8 and WPML returns NULL on retrieve of translated slugname. Only ID works to WordPress 4.8 and WPML returns NULL on retrieve of translated slugname. Only ID works
  • Ticket #41373 – Description

    initial v12  
    77I have one category for my custom post type "portfolio" called "gallery" the category is translated to "gallerij" for the dutch language. They both have 3 posts attached. Each for their own language.
    88
    9 I have this in my english page. [portfolio category="gallery"] calling the posts from the category gallery and it is showing 3 posts.
     9I have this in my english page. `[portfolio category="gallery"]` calling the posts from the category gallery and it is showing 3 posts.
    1010
    11 The page is duplicated into Dutch but the shortcode is the SAME. So the dutch page also has [portfolio category="gallery"] and NOT [portfolio category="gallerij"]. So the dutch page is calling the English category.
     11The page is duplicated into Dutch but the shortcode is the SAME. So the dutch page also has `[portfolio category="gallery"]` and NOT `[portfolio category="gallerij"]`. So the dutch page is calling the English category.
    1212
    1313Now in wp 4.7.x this works perfectly and the dutch page shows the dutch portfolio items, or if you use a blog shortcode the blog items for each language.
    1414
    15 But the moment wp 4.8 is installed the dutch pages with shortcodes are empty and i need to set the Dutch page with the shortcode to translated independently and change the shortcode manually to [portfolio category="gallerij"] so that it is calling the dutch category called "gallerij"
     15But the moment wp 4.8 is installed the dutch pages with shortcodes are empty and i need to set the Dutch page with the shortcode to translated independently and change the shortcode manually to `[portfolio category="gallerij"]` so that it is calling the dutch category called "gallerij"
    1616
    1717What changed in the wp code? The theme i am using did not change the theme code. Moreover it happens in any theme i try. The return is NULL when calling a slugname.