From c10866bffd0c065a5c88e1b951dc62e85c5afa8a Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Wed, 12 Aug 2026 11:40:06 -0500 Subject: [PATCH] Inline icon SVG dimensions + style + cache-bust plugin version - Add inline width/height attributes AND style='width:20px;height:20px; display:block' to each social-share SVG. Inline styles have higher specificity than any CSS rule, so the icons should now size correctly regardless of theme CSS or specificity quirks. - Bump PROJECTS_PORTFOLIO_VERSION to 1.1.9 (and plugin header) so WordPress invalidates the cached stylesheet URL. --- projects-portfolio.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/projects-portfolio.php b/projects-portfolio.php index bef89fc..df71359 100644 --- a/projects-portfolio.php +++ b/projects-portfolio.php @@ -11,7 +11,7 @@ * Plugin Name: Projects Portfolio * Description: Create a showcase directory for projects (plugins, themes, patterns) with custom post types, taxonomies, and download functionality. * Plugin URI: https://git.keithsolomon.net/Solo-Web-Works/Projects-Portfolio - * Version: 1.1.1 + * Version: 1.1.9 * Author: Keith Solomon * Author URI: https://keithsolomon.net * License: GPL-2.0+ @@ -39,7 +39,7 @@ $myUpdateChecker = PucFactory::buildUpdateChecker( // PUC's plain JSON metadata mode, so we skip the call rather than throw. // Current plugin version. -define( 'PROJECTS_PORTFOLIO_VERSION', '1.1.1' ); +define( 'PROJECTS_PORTFOLIO_VERSION', '1.1.9' ); // Add the required files. require 'admin/admin-settings.php'; @@ -352,37 +352,37 @@ function projects_portfolio_social_sharing_buttons( $project_id ) { // Facebook. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // X (Twitter). $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // LinkedIn. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Reddit. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // WhatsApp. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Pinterest. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; // Email. $html .= ''; - $html .= ''; + $html .= ''; $html .= ''; $html .= ''; @@ -401,6 +401,7 @@ function projects_portfolio_social_sharing_buttons( $project_id ) { 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, + 'style' => true, 'aria-hidden' => true, 'focusable' => true, );