📁
SKYSHELL MANAGER
PHP v8.4.21
Create
Create
Path:
root
/
home
/
mauriuph
/
jobmaurice.com
/
wp-includes
/
Name
Size
Perm
Actions
📁
ID3
-
0755
🗑️
🏷️
🔒
📁
IXR
-
0755
🗑️
🏷️
🔒
📁
PHPMailer
-
0755
🗑️
🏷️
🔒
📁
Requests
-
0755
🗑️
🏷️
🔒
📁
SimplePie
-
0755
🗑️
🏷️
🔒
📁
Text
-
0755
🗑️
🏷️
🔒
📁
abilities-api
-
0755
🗑️
🏷️
🔒
📁
ai-client
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
block-bindings
-
0755
🗑️
🏷️
🔒
📁
block-patterns
-
0755
🗑️
🏷️
🔒
📁
block-supports
-
0755
🗑️
🏷️
🔒
📁
blocks
-
0755
🗑️
🏷️
🔒
📁
build
-
0755
🗑️
🏷️
🔒
📁
certificates
-
0755
🗑️
🏷️
🔒
📁
collaboration
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
customize
-
0755
🗑️
🏷️
🔒
📁
fonts
-
0755
🗑️
🏷️
🔒
📁
html-api
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
interactivity-api
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
l10n
-
0755
🗑️
🏷️
🔒
📁
php-ai-client
-
0755
🗑️
🏷️
🔒
📁
php-compat
-
0755
🗑️
🏷️
🔒
📁
pomo
-
0755
🗑️
🏷️
🔒
📁
rest-api
-
0755
🗑️
🏷️
🔒
📁
sitemaps
-
0755
🗑️
🏷️
🔒
📁
sodium_compat
-
0755
🗑️
🏷️
🔒
📁
style-engine
-
0755
🗑️
🏷️
🔒
📁
theme-compat
-
0755
🗑️
🏷️
🔒
📁
widgets
-
0755
🗑️
🏷️
🔒
📄
.htaccess
2 KB
0664
🗑️
🏷️
⬇️
✏️
🔒
📄
abilities-api.php
23.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
abilities.php
7.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-bar.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
ai-client.php
2.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
atomlib.php
11.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-bindings.php
7.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-editor.php
28.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-template-utils.php
61.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
cache-compat.php
10.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
capabilities.php
42.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
category.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-feed.php
0.53 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-oembed.php
0.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-phpmailer.php
0.65 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-pop3.php
20.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-snoopy.php
36.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-walker-nav-menu.php
11.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-admin-bar.php
17.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-bindings-source.php
2.92 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-list.php
4.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-metadata-registry.php
11.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-parser-frame.php
1.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-parser.php
11.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-patterns-registry.php
10.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-template.php
1.99 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-type.php
16.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-customize-manager.php
198.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-customize-panel.php
10.46 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-date-query.php
35.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-duotone.php
39.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-embed.php
15.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-exception.php
0.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-fatal-error-handler.php
7.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-feed-cache-transient.php
3.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-http-streams.php
16.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-image-editor-imagick.php
36.11 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-image-editor.php
17.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-locale-switcher.php
6.62 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-meta-query.php
29.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-metadata-lazyloader.php
6.67 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-network-query.php
19.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-network.php
12.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-oembed-controller.php
6.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-oembed.php
30.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-paused-extensions-storage.php
4.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-post.php
6.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-query.php
159.5 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-cookie-service.php
6.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-email-service.php
10.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-key-service.php
4.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode.php
11.18 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-scripts.php
35.93 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-session-tokens.php
7.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-simplepie-sanitize-kses.php
1.87 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-site-query.php
30.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-site.php
7.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-speculation-rules.php
7.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-styles.php
13.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-taxonomy.php
18.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-text-diff-renderer-inline.php
0.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-textdomain-registry.php
10.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-theme-json-data.php
1.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-theme.php
64.22 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-url-pattern-prefixer.php
4.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-user-query.php
43.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-user-request.php
2.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp.php
25.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class.wp-scripts.php
0.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment-template.php
100.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
compat.php
15.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
cron.php
0.14 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default-filters.php
36.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default-widgets.php
2.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
deprecated.php
189.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
18364.36 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
feed-atom-comments.php
5.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
feed.php
24.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
fonts.php
9.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
formatting.php
346.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
functions.php
0.12 KB
0664
🗑️
🏷️
⬇️
✏️
🔒
📄
functions.wp-styles.php
8.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
general-template.php
170.94 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
global-styles-and-settings.php
20.29 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
http.php
26.62 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
https-detection.php
5.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
https-migration.php
4.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
l10n.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
locale.php
0.16 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-template.php
61.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-default-constants.php
4.81 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-files.php
2.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-functions.php
89.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-site.php
40.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
nav-menu-template.php
25.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
nav-menu.php
43.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
pluggable.php
124.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post-formats.php
6.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post-thumbnail-template.php
10.62 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post.php
289.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
query.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
registration-functions.php
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
rest-api.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
revision.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
rss.php
22.66 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
script-loader.php
159.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
session.php
0.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
shortcodes.php
23.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
sitemaps.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
speculative-loading.php
8.4 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
style-engine.php
7.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
taxonomy.php
172.99 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
template-loader.php
4.32 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
template.php
35.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-i18n.json
1.85 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-previews.php
2.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-templates.php
3.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme.json
8.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user.php
174.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
vars.php
6.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
version.php
1.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: class-wp-speculation-rules.php
<?php /** * Class 'WP_Speculation_Rules'. * * @package WordPress * @subpackage Speculative Loading * @since 6.8.0 */ /** * Class representing a set of speculation rules. * * @since 6.8.0 * @access private */ final class WP_Speculation_Rules implements JsonSerializable { /** * Stored rules, as a map of `$mode => $rules` pairs. * * Every `$rules` value is a map of `$id => $rule` pairs. * * @since 6.8.0 * @var array<string, array<string, array<string, mixed>>> */ private $rules_by_mode = array(); /** * The allowed speculation rules modes as a map, used for validation. * * @since 6.8.0 * @var array<string, bool> */ private static $mode_allowlist = array( 'prefetch' => true, 'prerender' => true, ); /** * The allowed speculation rules eagerness levels as a map, used for validation. * * @since 6.8.0 * @var array<string, bool> */ private static $eagerness_allowlist = array( 'immediate' => true, 'eager' => true, 'moderate' => true, 'conservative' => true, ); /** * The allowed speculation rules sources as a map, used for validation. * * @since 6.8.0 * @var array<string, bool> */ private static $source_allowlist = array( 'list' => true, 'document' => true, ); /** * Adds a speculation rule to the speculation rules to consider. * * @since 6.8.0 * * @param string $mode Speculative loading mode. Either 'prefetch' or 'prerender'. * @param string $id Unique string identifier for the speculation rule. * @param array<string, mixed> $rule Associative array of rule arguments. * @return bool True on success, false if invalid parameters are provided. */ public function add_rule( string $mode, string $id, array $rule ): bool { if ( ! self::is_valid_mode( $mode ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: invalid mode value */ __( 'The value "%s" is not a valid speculation rules mode.' ), esc_html( $mode ) ), '6.8.0' ); return false; } if ( ! $this->is_valid_id( $id ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: invalid ID value */ __( 'The value "%s" is not a valid ID for a speculation rule.' ), esc_html( $id ) ), '6.8.0' ); return false; } if ( $this->has_rule( $mode, $id ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: invalid ID value */ __( 'A speculation rule with ID "%s" already exists.' ), esc_html( $id ) ), '6.8.0' ); return false; } /* * Perform some basic speculation rule validation. * Every rule must have either a 'where' key or a 'urls' key, but not both. * The presence of a 'where' key implies a 'source' of 'document', while the presence of a 'urls' key implies * a 'source' of 'list'. */ if ( ( ! isset( $rule['where'] ) && ! isset( $rule['urls'] ) ) || ( isset( $rule['where'] ) && isset( $rule['urls'] ) ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: 1: allowed key, 2: alternative allowed key */ __( 'A speculation rule must include either a "%1$s" key or a "%2$s" key, but not both.' ), 'where', 'urls' ), '6.8.0' ); return false; } if ( isset( $rule['source'] ) ) { if ( ! self::is_valid_source( $rule['source'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: invalid source value */ __( 'The value "%s" is not a valid source for a speculation rule.' ), esc_html( $rule['source'] ) ), '6.8.0' ); return false; } if ( 'list' === $rule['source'] && isset( $rule['where'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: 1: source value, 2: forbidden key */ __( 'A speculation rule of source "%1$s" must not include a "%2$s" key.' ), 'list', 'where' ), '6.8.0' ); return false; } if ( 'document' === $rule['source'] && isset( $rule['urls'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: 1: source value, 2: forbidden key */ __( 'A speculation rule of source "%1$s" must not include a "%2$s" key.' ), 'document', 'urls' ), '6.8.0' ); return false; } } // If there is an 'eagerness' key specified, make sure it's valid. if ( isset( $rule['eagerness'] ) ) { if ( ! self::is_valid_eagerness( $rule['eagerness'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: invalid eagerness value */ __( 'The value "%s" is not a valid eagerness for a speculation rule.' ), esc_html( $rule['eagerness'] ) ), '6.8.0' ); return false; } if ( isset( $rule['where'] ) && 'immediate' === $rule['eagerness'] ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: forbidden eagerness value */ __( 'The eagerness value "%s" is forbidden for document-level speculation rules.' ), 'immediate' ), '6.8.0' ); return false; } } if ( ! isset( $this->rules_by_mode[ $mode ] ) ) { $this->rules_by_mode[ $mode ] = array(); } $this->rules_by_mode[ $mode ][ $id ] = $rule; return true; } /** * Checks whether a speculation rule for the given mode and ID already exists. * * @since 6.8.0 * * @param string $mode Speculative loading mode. Either 'prefetch' or 'prerender'. * @param string $id Unique string identifier for the speculation rule. * @return bool True if the rule already exists, false otherwise. */ public function has_rule( string $mode, string $id ): bool { return isset( $this->rules_by_mode[ $mode ][ $id ] ); } /** * Returns the speculation rules data ready to be JSON-encoded. * * @since 6.8.0 * * @return array<string, array<int, array<string, mixed>>> Speculation rules data. */ #[ReturnTypeWillChange] public function jsonSerialize() { // Strip the IDs for JSON output, since they are not relevant for the Speculation Rules API. return array_map( static function ( array $rules ) { return array_values( $rules ); }, array_filter( $this->rules_by_mode ) ); } /** * Checks whether the given ID is valid. * * @since 6.8.0 * * @param string $id Unique string identifier for the speculation rule. * @return bool True if the ID is valid, false otherwise. */ private function is_valid_id( string $id ): bool { return (bool) preg_match( '/^[a-z][a-z0-9_-]+$/', $id ); } /** * Checks whether the given speculation rules mode is valid. * * @since 6.8.0 * * @param string $mode Speculation rules mode. * @return bool True if valid, false otherwise. */ public static function is_valid_mode( string $mode ): bool { return isset( self::$mode_allowlist[ $mode ] ); } /** * Checks whether the given speculation rules eagerness is valid. * * @since 6.8.0 * * @param string $eagerness Speculation rules eagerness. * @return bool True if valid, false otherwise. */ public static function is_valid_eagerness( string $eagerness ): bool { return isset( self::$eagerness_allowlist[ $eagerness ] ); } /** * Checks whether the given speculation rules source is valid. * * @since 6.8.0 * * @param string $source Speculation rules source. * @return bool True if valid, false otherwise. */ public static function is_valid_source( string $source ): bool { return isset( self::$source_allowlist[ $source ] ); } }
Save