Fix Publicize to Facebook for en_AU and en_CA locales #3347
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes an issue where Publicize to Facebook silently fails for blogs in the
en_AU
anden_CA
locales. The failures are due to #2117 and the fix is to revert it. As a bonus this also bringslocales.php
closer to being in sync with WPCOM.If a locale has a
facebook_locale
value, we send that value to Facebook via theog:locale
tag, which, for these two locales, causes Publicize to fail, presumably because neither of these two codes are in Facebook's list of supported locales. Ref: 471-gh-ioWith af8e40f the desired effect of #2117 is still preserved after this change (the Facebook sharing buttons will still show up for these locales).