'neutral' ), esc( __( 'This network', 'desktop-mode' ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Built by tag(); see above.
}
if ( $site['id'] !== $current ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Built by tag(); see above.
echo tag(
'os-button',
array(
'variant' => 'ghost',
'os-action' => 'open',
'os-arg-id' => $site['id'],
'title' => __( 'Switch to this site', 'desktop-mode' ),
),
esc( __( 'Open', 'desktop-mode' ) )
);
}
if ( $is_member && $can_remove ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Built by tag(); see above.
echo tag(
'os-button',
array(
'variant' => 'ghost',
'os-action' => 'remove',
'os-arg-id' => substr( (string) $site['id'], strlen( 'member:' ) ),
/* translators: %s: site name. */
'os-confirm' => sprintf( __( 'Remove %s from the network? Its switcher will stop listing this network the next time it syncs.', 'desktop-mode' ), $site['name'] ),
'os-confirm-label' => __( 'Remove', 'desktop-mode' ),
),
esc( __( 'Remove', 'desktop-mode' ) )
);
}
?>