Plugin Directory

Changeset 3750710


Ignore:
Timestamp:
10/16/2026 03:46:40 PM (2 weeks ago)
Author:
opengraphxyz
Message:

Update to version 1.6.2 from GitHub

Location:
opengraph-xyz
Files:
16 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • opengraph-xyz/tags/1.6.2/opengraph-xyz.php

    r3694570 r3750710  
    44Plugin URI: https://github.com/opengraph-xyz/opengraph-wp
    55Description: Dynamic Open Graph images for your website
    6 Version: 1.6.1
     6Version: 1.6.2
    77Author: OpenGraph.xyz
    88Author URI: https://www.opengraph.xyz
  • opengraph-xyz/tags/1.6.2/readme.txt

    r3694570 r3750710  
    55Tested up to: 7.1
    66Requires PHP: 5.6
    7 Version: 1.6.1
    8 Stable tag: 1.6.1
     7Version: 1.6.2
     8Stable tag: 1.6.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    9191== Changelog ==
    9292
     93= 1.6.2 =
     94* Fix Squirrly SEO compatibility so template images are used for Open Graph and Twitter cards, while preserving standalone Open Graph output when Squirrly social metadata is disabled.
     95* Bundle the updated OpenGraph logo with plugin dialogs so it appears correctly in installed plugin packages.
     96
    9397= 1.6.1 =
    9498* Update feature list
  • opengraph-xyz/tags/1.6.2/src/Renderer.php

    r3591624 r3750710  
    7878    }
    7979
     80    // Squirrly replaces existing social tags in its output buffer. Update its
     81    // tag arrays after generation (10), before they are packed into HTML (99).
     82    add_filter('sq_open_graph', array($this, 'maybe_replace_squirrly_og_tags'), 90, 1);
     83    add_filter('sq_twitter_card', array($this, 'maybe_replace_squirrly_twitter_tags'), 90, 1);
     84    // Keep standalone output available if Squirrly's social output is disabled.
     85    // When enabled, its buffer removes these tags before inserting its own.
     86
    8087    if (!$seo_plugin_active) {
    8188      // If no SEO / Open Graph plugin is active
    … …  
    249256      $tags['twitter:image'] = $og_image_url;
    250257    }
     258
     259    return $tags;
     260  }
     261
     262  /**
     263   * Replace Squirrly's Open Graph image before its tags are packed into HTML.
     264   *
     265   * @param array|false $tags
     266   * @return array|false
     267   */
     268  public function maybe_replace_squirrly_og_tags($tags)
     269  {
     270    if (!is_array($tags) || empty($tags)) {
     271      return $tags;
     272    }
     273
     274    $og_image_url = $this->get_og_image_url();
     275    if (!$og_image_url) {
     276      return $tags;
     277    }
     278
     279    $tags['og:image'] = $og_image_url;
     280    $tags['og:image:secure_url'] = $og_image_url;
     281    $tags['og:image:width'] = $this->og_image_width;
     282    $tags['og:image:height'] = $this->og_image_height;
     283    $tags['og:image:type'] = $this->og_image_type;
     284
     285    return $tags;
     286  }
     287
     288  /**
     289   * Replace Squirrly's Twitter image before its tags are packed into HTML.
     290   *
     291   * @param array|false $tags
     292   * @return array|false
     293   */
     294  public function maybe_replace_squirrly_twitter_tags($tags)
     295  {
     296    if (!is_array($tags) || empty($tags)) {
     297      return $tags;
     298    }
     299
     300    $og_image_url = $this->get_og_image_url();
     301    if (!$og_image_url) {
     302      return $tags;
     303    }
     304
     305    $tags['twitter:image'] = $og_image_url;
     306    $tags['twitter:card'] = 'summary_large_image';
    251307
    252308    return $tags;
  • opengraph-xyz/tags/1.6.2/src/ui/api-key-modal.php

    r3616586 r3750710  
    1111        style="background: white; padding: 2rem; border-radius: 8px; max-width: 500px; width: 90%; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);">
    1212        <div style="margin-bottom: 1rem;">
    13             <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../../assets/icon-128x128.png'); ?>"
    14                 alt="OpenGraph Logo" style="width: 3rem; height: 3rem; margin: 0 auto 1rem; display: block;">
     13            <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../assets/logo.svg'); ?>"
     14                alt="OpenGraph Logo" style="width: 3rem; height: auto; margin: 0 auto 1rem; display: block;">
    1515        </div>
    1616
  • opengraph-xyz/tags/1.6.2/src/ui/loading-overlay.php

    r3316804 r3750710  
    5252    width: 100%;
    5353    height: 100%;
    54     object-fit: cover;
     54    object-fit: contain;
    5555}
    5656
    … …  
    6565        <div class="loading-spinner"></div>
    6666        <div class="loading-logo">
    67             <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../../assets/icon-128x128.png'); ?>" alt="Loading..." />
     67            <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../assets/logo.svg'); ?>" alt="OpenGraph logo" />
    6868        </div>
    6969    </div>
  • opengraph-xyz/trunk/opengraph-xyz.php

    r3694570 r3750710  
    44Plugin URI: https://github.com/opengraph-xyz/opengraph-wp
    55Description: Dynamic Open Graph images for your website
    6 Version: 1.6.1
     6Version: 1.6.2
    77Author: OpenGraph.xyz
    88Author URI: https://www.opengraph.xyz
  • opengraph-xyz/trunk/readme.txt

    r3694570 r3750710  
    55Tested up to: 7.1
    66Requires PHP: 5.6
    7 Version: 1.6.1
    8 Stable tag: 1.6.1
     7Version: 1.6.2
     8Stable tag: 1.6.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    9191== Changelog ==
    9292
     93= 1.6.2 =
     94* Fix Squirrly SEO compatibility so template images are used for Open Graph and Twitter cards, while preserving standalone Open Graph output when Squirrly social metadata is disabled.
     95* Bundle the updated OpenGraph logo with plugin dialogs so it appears correctly in installed plugin packages.
     96
    9397= 1.6.1 =
    9498* Update feature list
  • opengraph-xyz/trunk/src/Renderer.php

    r3591624 r3750710  
    7878    }
    7979
     80    // Squirrly replaces existing social tags in its output buffer. Update its
     81    // tag arrays after generation (10), before they are packed into HTML (99).
     82    add_filter('sq_open_graph', array($this, 'maybe_replace_squirrly_og_tags'), 90, 1);
     83    add_filter('sq_twitter_card', array($this, 'maybe_replace_squirrly_twitter_tags'), 90, 1);
     84    // Keep standalone output available if Squirrly's social output is disabled.
     85    // When enabled, its buffer removes these tags before inserting its own.
     86
    8087    if (!$seo_plugin_active) {
    8188      // If no SEO / Open Graph plugin is active
    … …  
    249256      $tags['twitter:image'] = $og_image_url;
    250257    }
     258
     259    return $tags;
     260  }
     261
     262  /**
     263   * Replace Squirrly's Open Graph image before its tags are packed into HTML.
     264   *
     265   * @param array|false $tags
     266   * @return array|false
     267   */
     268  public function maybe_replace_squirrly_og_tags($tags)
     269  {
     270    if (!is_array($tags) || empty($tags)) {
     271      return $tags;
     272    }
     273
     274    $og_image_url = $this->get_og_image_url();
     275    if (!$og_image_url) {
     276      return $tags;
     277    }
     278
     279    $tags['og:image'] = $og_image_url;
     280    $tags['og:image:secure_url'] = $og_image_url;
     281    $tags['og:image:width'] = $this->og_image_width;
     282    $tags['og:image:height'] = $this->og_image_height;
     283    $tags['og:image:type'] = $this->og_image_type;
     284
     285    return $tags;
     286  }
     287
     288  /**
     289   * Replace Squirrly's Twitter image before its tags are packed into HTML.
     290   *
     291   * @param array|false $tags
     292   * @return array|false
     293   */
     294  public function maybe_replace_squirrly_twitter_tags($tags)
     295  {
     296    if (!is_array($tags) || empty($tags)) {
     297      return $tags;
     298    }
     299
     300    $og_image_url = $this->get_og_image_url();
     301    if (!$og_image_url) {
     302      return $tags;
     303    }
     304
     305    $tags['twitter:image'] = $og_image_url;
     306    $tags['twitter:card'] = 'summary_large_image';
    251307
    252308    return $tags;
  • opengraph-xyz/trunk/src/ui/api-key-modal.php

    r3616586 r3750710  
    1111        style="background: white; padding: 2rem; border-radius: 8px; max-width: 500px; width: 90%; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);">
    1212        <div style="margin-bottom: 1rem;">
    13             <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../../assets/icon-128x128.png'); ?>"
    14                 alt="OpenGraph Logo" style="width: 3rem; height: 3rem; margin: 0 auto 1rem; display: block;">
     13            <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../assets/logo.svg'); ?>"
     14                alt="OpenGraph Logo" style="width: 3rem; height: auto; margin: 0 auto 1rem; display: block;">
    1515        </div>
    1616
  • opengraph-xyz/trunk/src/ui/loading-overlay.php

    r3316804 r3750710  
    5252    width: 100%;
    5353    height: 100%;
    54     object-fit: cover;
     54    object-fit: contain;
    5555}
    5656
    … …  
    6565        <div class="loading-spinner"></div>
    6666        <div class="loading-logo">
    67             <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../../assets/icon-128x128.png'); ?>" alt="Loading..." />
     67            <img src="<?php echo esc_url(plugin_dir_url(__FILE__) . '../assets/logo.svg'); ?>" alt="OpenGraph logo" />
    6868        </div>
    6969    </div>
Note: See TracChangeset for help on using the changeset viewer.