PluginProbe
ActivityPub / 2.6.0
ActivityPub v2.6.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/class-blocks.php +6 -0 2.0.12.6.0 View file →
@@ -77,8 +77,14 @@
77 77 $user->to_array(),
78 78 array( 'icon', 'name', 'webfinger' )
79 79 );
80 80 }
81 +
82 + // add `@` prefix if it's missing
83 + if ( '@' !== substr( $attrs['profileData']['webfinger'], 0, 1 ) ) {
84 + $attrs['profileData']['webfinger'] = '@' . $attrs['profileData']['webfinger'];
85 + }
86 +
81 87 $wrapper_attributes = get_block_wrapper_attributes(
82 88 array(
83 89 'aria-label' => __( 'Follow me on the Fediverse', 'activitypub' ),
84 90 'class' => 'activitypub-follow-me-block-wrapper',