PluginProbe
ActivityPub / 9.2.0
ActivityPub v9.2.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
activitypub / build / followers / render.php

render.php in ActivityPub 9.2.0, at build/followers/render.php

21 lines 528 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Server-side rendering of the followers block.
4 *
5 * @package Activitypub
6 */
7
8 use Activitypub\Blocks;
9
10 /* @var array $attributes Block attributes. */
11 $attributes = $attributes ?? array();
12
13 /* @var WP_Block $block Current block. */
14 $block = $block ?? null;
15
16 /* @var string $content Block content. */
17 $content = $content ?? '';
18
19 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output is escaped in render method.
20 echo Blocks::render_actor_list_block( 'followers', $attributes, $block, $content );
21