From 18b6ac88915310f344c95106316e7ca5fbec21d7 Mon Sep 17 00:00:00 2001 From: Amaury Balmer Date: Mon, 23 Nov 2026 09:19:57 +0100 Subject: [PATCH] fix(share): use HTTPS for Facebook share link Switch the Facebook sharer href from http:// to https:// in the share helper, and update the two @usage PHPDoc examples accordingly. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 1 + inc/Helpers/Formatting/Share.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e8801b0..cea19589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Réécriture de `Animation` avec des `IntersectionObserver` partagés au lieu d’une boucle au scroll (mêmes options et callbacks) - Ajout de l’utilitaire JS `deferInitialization()` pour exécuter du code non critique à idle (INP) - Documentation de la base Core Web Vitals dans le README (dont compatibilité ARI / `is_lcp`) +- Passage du lien de partage Facebook (`sharer.php`) en HTTPS # 5.3.2 diff --git a/inc/Helpers/Formatting/Share.php b/inc/Helpers/Formatting/Share.php index c5660576..56b63a1d 100644 --- a/inc/Helpers/Formatting/Share.php +++ b/inc/Helpers/Formatting/Share.php @@ -6,7 +6,7 @@ /** - * @usage BEA\Theme\Framework\Helpers\Formatting\Share\get_share_link( 'facebook', "https://......", ['title' => 'My title', 'class' => "...", 'href' => 'http://www.facebook.com/sharer.php' ], ['title' => 'My title', 'class' => "...", 'href' => 'http://www.facebook.com/sharer.php' ], [ 'before' => '', 'after' => ''] ); + * @usage BEA\Theme\Framework\Helpers\Formatting\Share\get_share_link( 'facebook', "https://......", ['title' => 'My title', 'class' => "...", 'href' => 'https://www.facebook.com/sharer.php' ], ['title' => 'My title', 'class' => "...", 'href' => 'https://www.facebook.com/sharer.php' ], [ 'before' => '', 'after' => ''] ); * * @param string $name The network name ( example : "facebook", "linkedin", etc....). * @param string $link_to_share The sharing link. @@ -51,7 +51,7 @@ function get_share_link( string $name, string $link_to_share, array $share_attri 'facebook' => [ 'accessible_name' => __( 'Share on Facebook', 'beapi-frontend-framework' ), 'attributes' => [ - 'href' => 'http://www.facebook.com/sharer.php', + 'href' => 'https://www.facebook.com/sharer.php', 'class' => 'share__link', ], 'icon' => 'social/facebook', @@ -163,7 +163,7 @@ function get_share_link( string $name, string $link_to_share, array $share_attri } /** - * @usage BEA\Theme\Framework\Helpers\Formatting\Share\get_share_link( 'facebook', "https://......", ['title' => 'My title', 'class' => "...", 'href' => 'http://www.facebook.com/sharer.php' ], ['title' => 'My title', 'class' => "...", 'href' => 'http://www.facebook.com/sharer.php' ], [ 'before' => '', 'after' => ''] ); + * @usage BEA\Theme\Framework\Helpers\Formatting\Share\get_share_link( 'facebook', "https://......", ['title' => 'My title', 'class' => "...", 'href' => 'https://www.facebook.com/sharer.php' ], ['title' => 'My title', 'class' => "...", 'href' => 'https://www.facebook.com/sharer.php' ], [ 'before' => '', 'after' => ''] ); * * @param string $name The network name ( example : "facebook", "linkedin", etc....). * @param string $link_to_share The sharing link.