Commit f87eac70 authored by Damien McKenna's avatar Damien McKenna
Browse files

Issue #2941632 by bgilhome, rokzabukovec, DamienMcKenna, yannickoo,...

Issue #2941632 by bgilhome, rokzabukovec, DamienMcKenna, yannickoo, thejimbirch: og:latitude/longitude have been replaced by place:location:latitude/longitude.
parent a4f69689
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  1,024 characters.
#3202865 by stmh, DamienMcKenna: logic in generateRawElements does not work with
  hreflangs.
#2941632 by bgilhome, rokzabukovec, DamienMcKenna, yannickoo, thejimbirch:
  og:latitude/longitude have been replaced by place:location:latitude/longitude.


Metatag 8.x-1.15, 2020-12-05
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
 *   id = "og_latitude",
 *   label = @Translation("Latitude"),
 *   description = @Translation(""),
 *   name = "og:latitude",
 *   name = "place:location:latitude",
 *   group = "open_graph",
 *   weight = 16,
 *   type = "string",
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
 *   id = "og_longitude",
 *   label = @Translation("Longitude"),
 *   description = @Translation(""),
 *   name = "og:longitude",
 *   name = "place:location:longitude",
 *   group = "open_graph",
 *   weight = 16,
 *   type = "string",
+7 −0
Original line number Diff line number Diff line
@@ -98,6 +98,13 @@ class MetatagOpenGraphTagsTest extends MetatagTagsTestBase {
   * Each of these meta tags has a different tag name vs its internal name.
   */
  protected function getTestTagName($tag_name) {
    if ($tag_name == 'og_latitude') {
      $tag_name = 'place:location:latitude';
    }
    elseif ($tag_name == 'og_longitude') {
      $tag_name = 'place:location:longitude';
    }

    // Replace the first underline with a colon.
    $tag_name = str_replace('og_', 'og:', $tag_name);
    $tag_name = str_replace('article_', 'article:', $tag_name);