Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#42216 new defect (bug)

Facebook embeds use wrong locales

Reported by: Cry0nicS Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Embeds Keywords: close
Focuses: Cc:


Version 4.7 brought awesome support for Facebook embeds. The issue is that the language / locales in wrong and keep changing for no particular reason.

Example: I have a website where Timezone is set to Bucharest, language to english, but the Facebook embeds where for 2 months in Ukrainian and now it's using nl_NL.

Example: https://esportsmedia.ro/highlights/hearthstone-highlights/golakka-winning-move-angeloshaggy/

There's no way to control it.

Issue persists in 4.8

Change History (2)

#1 @Cry0nicS
5 months ago

I tried executing something like this, but with no success.

add_filter( 'the_content', 'facebook_sdk_replace' );
function facebook_sdk_replace( $content ) {
    if ( is_single() ) {
        $content = str_replace("nl_NL", "en_US", $content);
    return $content;

#2 @swissspidy
5 months ago

  • Keywords close added

Hey there,

This looks like a possible duplicate of #40656 to me. Please read the comments there to see how to fix this issue.

Note: See TracTickets for help on using tickets.