[wp-trac] [WordPress Trac] #40656: WordPress Facebook integration does not obey locale

WordPress Trac noreply at wordpress.org
Wed May 3 22:40:00 UTC 2017


#40656: WordPress Facebook integration does not obey locale
--------------------------+-----------------------------
 Reporter:  ChrisBAshton  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It appears that the Facebook integration uses the location of the server
 WordPress is running on to determine which locale to request from
 Facebook, rather than obeying the locale configured in the WordPress
 settings.

 ---

 A client site of mine is hosted in Europe, though its language is set to
 "en_US", verified by calling:

 {{{#!php
 <?php echo get_locale(); ?>
 }}}

 Despite this, when pulling in a Facebook post, the generated embed code
 uses the "da_DK" locale.

 https://www.facebook.com/loopinglive/posts/426403944363449

 =>

 https://www.facebook.com/v2.3/plugins/post.php?app_id=&channel=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2F87XNE1PC38r.js%3Fversion%3D42%23cb%3Dfd2d9487a2d664%26domain%3Dwww.loopinglive.com%26origin%3Dhttp%253A%252F%252Fwww.loopinglive.com%252Ff21c512628fd3e8%26relation%3Dparent.parent&container_width=798&href=https%3A%2F%2Fwww.facebook.com%2Floopinglive%2Fposts%2F426403944363449&locale=da_DK&sdk=joey&width=500

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list