modified file w3-total-cache
This commit is contained in:
@ -3,7 +3,9 @@ namespace Activitypub;
|
||||
|
||||
use Activitypub\Collection\Followers;
|
||||
use Activitypub\Collection\Users as User_Collection;
|
||||
use Activitypub\is_user_type_disabled;
|
||||
|
||||
use function Activitypub\object_to_uri;
|
||||
use function Activitypub\is_user_type_disabled;
|
||||
|
||||
class Blocks {
|
||||
public static function init() {
|
||||
@ -73,7 +75,7 @@ class Blocks {
|
||||
if ( ! is_wp_error( $user ) ) {
|
||||
$attrs['profileData'] = self::filter_array_by_keys(
|
||||
$user->to_array(),
|
||||
array( 'icon', 'name', 'resource' )
|
||||
array( 'icon', 'name', 'webfinger' )
|
||||
);
|
||||
}
|
||||
$wrapper_attributes = get_block_wrapper_attributes(
|
||||
@ -94,7 +96,7 @@ class Blocks {
|
||||
|
||||
$attrs['followerData']['total'] = $follower_data['total'];
|
||||
$attrs['followerData']['followers'] = array_map(
|
||||
function( $follower ) {
|
||||
function ( $follower ) {
|
||||
return self::filter_array_by_keys(
|
||||
$follower->to_array(),
|
||||
array( 'icon', 'name', 'preferredUsername', 'url' )
|
||||
@ -140,7 +142,7 @@ class Blocks {
|
||||
|
||||
return sprintf(
|
||||
$template,
|
||||
esc_url( $data['url'] ),
|
||||
esc_url( object_to_uri( $data['url'] ) ),
|
||||
esc_attr( $data['name'] ),
|
||||
esc_attr( $data['icon']['url'] ),
|
||||
esc_html( $data['name'] ),
|
||||
|
Reference in New Issue
Block a user