[wp-trac] [WordPress Trac] #42216: Facebook embeds use wrong locales

WordPress Trac noreply at wordpress.org
Fri Oct 13 23:46:57 UTC 2017


#42216: Facebook embeds use wrong locales
--------------------------+------------------------------
 Reporter:  Cry0nicS      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Cry0nicS):

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

 {{{#!php
 <?php
 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;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42216#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list