Skip to content

Commit 18b6ac8

Browse files
herewithmeclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 49cacc2 commit 18b6ac8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Réécriture de `Animation` avec des `IntersectionObserver` partagés au lieu d’une boucle au scroll (mêmes options et callbacks)
99
- Ajout de l’utilitaire JS `deferInitialization()` pour exécuter du code non critique à idle (INP)
1010
- Documentation de la base Core Web Vitals dans le README (dont compatibilité ARI / `is_lcp`)
11+
- Passage du lien de partage Facebook (`sharer.php`) en HTTPS
1112

1213
# 5.3.2
1314

‎inc/Helpers/Formatting/Share.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
/**
9-
* @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' => ''] );
9+
* @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' => ''] );
1010
*
1111
* @param string $name The network name ( example : "facebook", "linkedin", etc....).
1212
* @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
5151
'facebook' => [
5252
'accessible_name' => __( 'Share on Facebook', 'beapi-frontend-framework' ),
5353
'attributes' => [
54-
'href' => 'http://www.facebook.com/sharer.php',
54+
'href' => 'https://www.facebook.com/sharer.php',
5555
'class' => 'share__link',
5656
],
5757
'icon' => 'social/facebook',
@@ -163,7 +163,7 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
163163
}
164164

165165
/**
166-
* @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' => ''] );
166+
* @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' => ''] );
167167
*
168168
* @param string $name The network name ( example : "facebook", "linkedin", etc....).
169169
* @param string $link_to_share The sharing link.

0 commit comments

Comments
 (0)