fix(v1.7.4): portable + cache-busted feed-header wordmark
The header <img> hardcoded https://sami-ahmed.net/... with no version string, so browsers/proxies kept serving the stale corrupted PNG. Load it from BEEP_URL with a ?v=BEEP_VERSION cache-buster and bump it to 30px. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: Beep
|
* Plugin Name: Beep
|
||||||
* Description: A Twitter-style microblog for WordPress, with likes, replies, and Gravatars. Use the [beep_feed] shortcode on any page.
|
* Description: A Twitter-style microblog for WordPress, with likes, replies, and Gravatars. Use the [beep_feed] shortcode on any page.
|
||||||
* Version: 1.7.3
|
* Version: 1.7.4
|
||||||
* Requires at least: 6.0
|
* Requires at least: 6.0
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 7.4
|
||||||
* Author: Sami Ahmed
|
* Author: Sami Ahmed
|
||||||
@@ -14,7 +14,7 @@ if (!defined('ABSPATH')) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define('BEEP_VERSION', '1.7.3');
|
define('BEEP_VERSION', '1.7.4');
|
||||||
define('BEEP_FILE', __FILE__);
|
define('BEEP_FILE', __FILE__);
|
||||||
define('BEEP_DIR', plugin_dir_path(__FILE__));
|
define('BEEP_DIR', plugin_dir_path(__FILE__));
|
||||||
define('BEEP_URL', plugin_dir_url(__FILE__));
|
define('BEEP_URL', plugin_dir_url(__FILE__));
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class Beep_Shortcode {
|
|||||||
<div class="beep-feed" data-beep-feed>
|
<div class="beep-feed" data-beep-feed>
|
||||||
<div class="beep-embed">
|
<div class="beep-embed">
|
||||||
<div class="beep-feed-header">
|
<div class="beep-feed-header">
|
||||||
<div style="display:flex;align-items:center;justify-content:center;gap:8px;"><strong style="color:#FFFFFF;">Messages from </strong><img src="https://sami-ahmed.net/wp-content/plugins/beep/assets/beep-wordmark.png" alt="Beep!" style="height:22px;width:auto;vertical-align:middle;"></div>
|
<div style="display:flex;align-items:center;justify-content:center;gap:8px;"><strong style="color:#FFFFFF;">Messages from </strong><img src="<?php echo esc_url( BEEP_URL . 'assets/beep-wordmark.png?v=' . BEEP_VERSION ); ?>" alt="Beep!" style="height:30px;width:auto;vertical-align:middle;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($has_posts) : ?>
|
<?php if ($has_posts) : ?>
|
||||||
|
|||||||
+5
-1
@@ -4,7 +4,7 @@ Tags: microblog, twitter, tweets, social, comments, polls, elementor
|
|||||||
Requires at least: 6.0
|
Requires at least: 6.0
|
||||||
Tested up to: 6.9
|
Tested up to: 6.9
|
||||||
Requires PHP: 7.4
|
Requires PHP: 7.4
|
||||||
Stable tag: 1.7.3
|
Stable tag: 1.7.4
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
|
|
||||||
A Twitter-style microblog for WordPress. Posts, likes, replies, polls, quotes, GIFs, and Gravatars. Use [beep_feed] shortcode or Elementor widget.
|
A Twitter-style microblog for WordPress. Posts, likes, replies, polls, quotes, GIFs, and Gravatars. Use [beep_feed] shortcode or Elementor widget.
|
||||||
@@ -40,6 +40,10 @@ Features:
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.7.4 =
|
||||||
|
* Feed-header wordmark now loads from the plugin's own URL (was hardcoded to sami-ahmed.net) with a version-based cache-buster, so the clean logo shows immediately instead of a stale/corrupted cached image.
|
||||||
|
* Made the header wordmark a bit larger (30px).
|
||||||
|
|
||||||
= 1.7.3 =
|
= 1.7.3 =
|
||||||
* Replaced the corrupted beep-wordmark.png assets with a clean, transparent render of the 3D "Beep!" logo (fixes the feed-header wordmark image).
|
* Replaced the corrupted beep-wordmark.png assets with a clean, transparent render of the 3D "Beep!" logo (fixes the feed-header wordmark image).
|
||||||
* Gave the inline-SVG wordmark extra descender room so the "p" never clips.
|
* Gave the inline-SVG wordmark extra descender room so the "p" never clips.
|
||||||
|
|||||||
Reference in New Issue
Block a user