HEX
Server: Apache
System: Linux server 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64
User: losadagest (10000)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/aceitunaslosada.com/web/wp-content/plugins/jetpack/modules/shortcodes/sitemap.php
<?php
/**
 * Sitemap shortcode.
 *
 * Usage: [sitemap]
 *
 * @package automattic/jetpack
 */

add_shortcode( 'sitemap', 'jetpack_sitemap_shortcode' );

/**
 * Renders a tree of pages.
 *
 * @since 4.5.0
 *
 * @return string
 */
function jetpack_sitemap_shortcode() {
	$tree = wp_list_pages(
		array(
			'title_li' => '<b><a href="/">' . esc_html( get_bloginfo( 'name' ) ) . '</a></b>',
			'exclude'  => get_option( 'page_on_front' ),
			'echo'     => false,
		)
	);
	return empty( $tree )
		? ''
		: '<ul class="jetpack-sitemap-shortcode">' . $tree . '</ul>';
}