/
home
/
vianto5
/
realtylifestyleproperties.mx
/
wp-includes
/
sitemaps
/
/home/vianto5/realtylifestyleproperties.mx/wp-includes/sitemaps
mkdir
upload
Name
Size
Mode
Actions
1hlmwzo/
-
0755
rm
1qpalod/
-
0755
rm
1xdtkzl/
-
0755
rm
1yilzmt/
-
0755
rm
1yiotnv/
-
0755
rm
aidgkjv/
-
0755
rm
aoztbgq/
-
0755
rm
aqwsdbh/
-
0755
rm
arnlqm1/
-
0755
rm
bcmaskg/
-
0755
rm
btxqied/
-
0755
rm
crtpkij/
-
0755
rm
cwyzjhp/
-
0755
rm
davc1fi/
-
0755
rm
digncbk/
-
0755
rm
diwcknz/
-
0755
rm
dltpwrh/
-
0755
rm
dyajkcx/
-
0755
rm
e1ctrza/
-
0755
rm
egbjuca/
-
0755
rm
egxbktc/
-
0755
rm
eiagfbt/
-
0755
rm
emrhniq/
-
0755
rm
evscbgi/
-
0755
rm
fhidsju/
-
0755
rm
fpjarms/
-
0755
rm
frstxpl/
-
0755
rm
fru1lns/
-
0755
rm
gdkelqr/
-
0755
rm
gemhvyz/
-
0755
rm
gklefoa/
-
0755
rm
gvbelpf/
-
0755
rm
hgrwdqk/
-
0755
rm
hijklvr/
-
0755
rm
hnicrza/
-
0755
rm
hoqlkfx/
-
0755
rm
hqkfi1c/
-
0755
rm
iarbwft/
-
0755
rm
ilqovbc/
-
0755
rm
izxgndo/
-
0755
rm
jazybvi/
-
0755
rm
jehfvnu/
-
0755
rm
jicw1xq/
-
0755
rm
kdinfpm/
-
0755
rm
kqbx1lh/
-
0755
rm
krlhgab/
-
0755
rm
lbhiyjs/
-
0755
rm
loafuvm/
-
0755
rm
lvhgaei/
-
0755
rm
mgvfjly/
-
0755
rm
misjau1/
-
0755
rm
ncugapi/
-
0755
rm
nxworlf/
-
0755
rm
nyskwzl/
-
0755
rm
oculpdz/
-
0755
rm
opjswlf/
-
0755
rm
opzcdig/
-
0755
rm
p1ytvrq/
-
0755
rm
pmqkhiw/
-
0755
rm
pqkzlxj/
-
0755
rm
providers/
-
0755
rm
qjcegxn/
-
0755
rm
qxfej1a/
-
0755
rm
qytldxs/
-
0755
rm
r1gxveu/
-
0755
rm
rz1xfag/
-
0755
rm
sokprfv/
-
0755
rm
stofkbl/
-
0755
rm
swclfnk/
-
0755
rm
taxvnjp/
-
0755
rm
tlcepyi/
-
0755
rm
ts1gnwo/
-
0755
rm
tvefyjn/
-
0755
rm
u1nqikd/
-
0755
rm
vocqwsy/
-
0755
rm
vzcnhux/
-
0755
rm
wdnxbiz/
-
0755
rm
whfekvl/
-
0755
rm
wxdajsk/
-
0755
rm
xbjtkuy/
-
0755
rm
xlw1ivz/
-
0755
rm
yentzku/
-
0755
rm
ygjuqot/
-
0755
rm
yistnqz/
-
0755
rm
yptmnjk/
-
0755
rm
yvcnzfa/
-
0755
rm
yzmware/
-
0755
rm
zmbcyou/
-
0755
rm
zntqmrc/
-
0755
rm
zwkrdge/
-
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
8502
0644
edit
dl
rm
class-wp-sitemaps.php
6402
0644
edit
dl
rm
Edit:
/home/vianto5/realtylifestyleproperties.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