Skip to content

Commit d4f0b33

Browse files
committed
fix #36
1 parent f437688 commit d4f0b33

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

opengraph.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Adds Open Graph metadata to your pages
66
* Author: Will Norris
77
* Author URI: https://willnorris.com/
8-
* Version: 1.12.0
8+
* Version: 1.12.1
99
* License: Apache License, Version 2.0
1010
* License URI: http://www.apache.org/licenses/LICENSE-2.0.html
1111
* Text Domain: opengraph
@@ -499,7 +499,7 @@ function fediverse_default_creator( $creator ) {
499499
}
500500

501501
$webfinger = ltrim( $webfinger, '@' );
502-
$webfinger = ltrim( $webfinger, 'acct:' );
502+
$webfinger = str_replace( 'acct:', '', $webfinger );
503503

504504
return $webfinger;
505505
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: willnorris, pfefferle
33
Tags: social, opengraph, ogp, facebook
44
Requires at least: 2.3
55
Tested up to: 6.5
6-
Stable tag: 1.12.0
6+
Stable tag: 1.12.1
77
License: Apache License, Version 2.0
88
License URI: https://www.apache.org/licenses/LICENSE-2.0.html
99

@@ -62,6 +62,9 @@ The plugin populates the meta 'name' attribute alongside the 'property' attribut
6262

6363
Project maintained on github at [willnorris/wordpress-opengraph](https://github.com/willnorris/wordpress-opengraph).
6464

65+
= version 1.12.1 (Jul 15, 2024) =
66+
- fix fediverse account normalization
67+
6568
= version 1.12.0 (Jul 3, 2024) =
6669
- support `<meta name="fediverse:creator" />`
6770

0 commit comments

Comments
 (0)