Submit
Path:
F:
/
Inetpub
/
vhosts
/
solasmarine.com.tr
/
httpdocs
/
wp-includes
/
File Content:
script-modules.php
<?php /** * Script Modules API: Script Module functions * * @since 6.5.0 * * @package WordPress * @subpackage Script Modules */ /** * Retrieves the main WP_Script_Modules instance. * * This function provides access to the WP_Script_Modules instance, creating one * if it doesn't exist yet. * * @since 6.5.0 * * @global WP_Script_Modules $wp_script_modules * * @return WP_Script_Modules The main WP_Script_Modules instance. */ function wp_script_modules(): WP_Script_Modules { global $wp_script_modules; if ( ! ( $wp_script_modules instanceof WP_Script_Modules ) ) { $wp_script_modules = new WP_Script_Modules(); } return $wp_script_modules; } /** * Registers the script module if no script module with that script module * identifier has already been registered. * * @since 6.5.0 * @since 6.9.0 Added the $args parameter. * * @param string $id The identifier of the script module. Should be unique. It will be used in the * final import map. * @param string $src Optional. Full URL of the script module, or path of the script module relative * to the WordPress root directory. If it is provided and the script module has * not been registered yet, it will be registered. * @param array<string|array<string, string>> $deps { * Optional. List of dependencies. * * @type string|array<string, string> ...$0 { * An array of script module identifiers of the dependencies of this script * module. The dependencies can be strings or arrays. If they are arrays, * they need an `id` key with the script module identifier, and can contain * an `import` key with either `static` or `dynamic`. By default, * dependencies that don't contain an `import` key are considered static. * * @type string $id The script module identifier. * @type string $import Optional. Import type. May be either `static` or * `dynamic`. Defaults to `static`. * } * } * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false. * It is added to the URL as a query string for cache busting purposes. If $version * is set to false, the version number is the currently installed WordPress version. * If $version is set to null, no version is added. * @param array<string, string|bool> $args { * Optional. An array of additional args. Default empty array. * * @type bool $in_footer Whether to print the script module in the footer. Only relevant to block themes. Default 'false'. Optional. * @type 'auto'|'low'|'high' $fetchpriority Fetch priority. Default 'auto'. Optional. * } */ function wp_register_script_module( string $id, string $src, array $deps = array(), $version = false, array $args = array() ) { wp_script_modules()->register( $id, $src, $deps, $version, $args ); } /** * Marks the script module to be enqueued in the page. * * If a src is provided and the script module has not been registered yet, it * will be registered. * * @since 6.5.0 * @since 6.9.0 Added the $args parameter. * * @param string $id The identifier of the script module. Should be unique. It will be used in the * final import map. * @param string $src Optional. Full URL of the script module, or path of the script module relative * to the WordPress root directory. If it is provided and the script module has * not been registered yet, it will be registered. * @param array<string|array<string, string>> $deps { * Optional. List of dependencies. * * @type string|array<string, string> ...$0 { * An array of script module identifiers of the dependencies of this script * module. The dependencies can be strings or arrays. If they are arrays, * they need an `id` key with the script module identifier, and can contain * an `import` key with either `static` or `dynamic`. By default, * dependencies that don't contain an `import` key are considered static. * * @type string $id The script module identifier. * @type string $import Optional. Import type. May be either `static` or * `dynamic`. Defaults to `static`. * } * } * @param string|false|null $version Optional. String specifying the script module version number. Defaults to false. * It is added to the URL as a query string for cache busting purposes. If $version * is set to false, the version number is the currently installed WordPress version. * If $version is set to null, no version is added. * @param array<string, string|bool> $args { * Optional. An array of additional args. Default empty array. * * @type bool $in_footer Whether to print the script module in the footer. Only relevant to block themes. Default 'false'. Optional. * @type 'auto'|'low'|'high' $fetchpriority Fetch priority. Default 'auto'. Optional. * } */ function wp_enqueue_script_module( string $id, string $src = '', array $deps = array(), $version = false, array $args = array() ) { wp_script_modules()->enqueue( $id, $src, $deps, $version, $args ); } /** * Unmarks the script module so it is no longer enqueued in the page. * * @since 6.5.0 * * @param string $id The identifier of the script module. */ function wp_dequeue_script_module( string $id ) { wp_script_modules()->dequeue( $id ); } /** * Deregisters the script module. * * @since 6.5.0 * * @param string $id The identifier of the script module. */ function wp_deregister_script_module( string $id ) { wp_script_modules()->deregister( $id ); } /** * Overrides the text domain and path used to load translations for a script module. * * Translations for script modules are loaded automatically from the default * text domain and language directory. Use this function only when a module's * text domain differs from `'default'` or when translation files live outside * the standard location, for example plugin modules using their own text domain. * * @since 7.0.0 * * @see WP_Script_Modules::set_translations() * * @param string $id The identifier of the script module. * @param string $domain Optional. Text domain. Default 'default'. * @param string $path Optional. The full file path to the directory containing translation files. * @return bool True if the text domain was registered, false if the module is not registered. */ function wp_set_script_module_translations( string $id, string $domain = 'default', string $path = '' ): bool { return wp_script_modules()->set_translations( $id, $domain, $path ); } /** * Registers all the default WordPress Script Modules. * * @since 6.7.0 */ function wp_default_script_modules() { $suffix = defined( 'WP_RUN_CORE_TESTS' ) ? '.min' : wp_scripts_get_suffix(); /* * Expects multidimensional array like: * * 'interactivity/index.js' => array('dependencies' => array(…), 'version' => '…'), * 'interactivity-router/index.js' => array('dependencies' => array(…), 'version' => '…'), * 'block-library/navigation/view.js' => … */ $assets_file = ABSPATH . WPINC . '/assets/script-modules-packages.php'; $assets = file_exists( $assets_file ) ? include $assets_file : array(); foreach ( $assets as $file_name => $script_module_data ) { /* * Build the WordPress Script Module ID from the file name. * Prepend `@wordpress/` and remove extensions and `/index` if present: * - interactivity/index.min.js => @wordpress/interactivity * - interactivity-router/index.min.js => @wordpress/interactivity-router * - block-library/navigation/view.js => @wordpress/block-library/navigation/view */ $script_module_id = '@wordpress/' . preg_replace( '~(?:/index)?(?:\.min)?\.js$~D', '', $file_name, 1 ); /* * The Interactivity API is designed with server-side rendering as its primary goal, so all of its script modules * should be loaded with low fetchpriority and printed in the footer since they should not be needed in the * critical rendering path. Also, the @wordpress/a11y script module is intended to be used as a dynamic import * dependency, in which case the fetchpriority is irrelevant. See <https://make.wordpress.org/core/2024/10/14/updates-to-script-modules-in-6-7/>. * However, in case it is added as a static import dependency, the fetchpriority is explicitly set to be 'low' * since the module should not be involved in the critical rendering path, and if it is, its fetchpriority will * be bumped to match the fetchpriority of the dependent script. */ $args = array(); if ( str_starts_with( $script_module_id, '@wordpress/interactivity' ) || str_starts_with( $script_module_id, '@wordpress/block-library' ) || '@wordpress/a11y' === $script_module_id ) { $args['fetchpriority'] = 'low'; $args['in_footer'] = true; } // Marks all Core blocks as compatible with client-side navigation. if ( str_starts_with( $script_module_id, '@wordpress/block-library' ) ) { wp_interactivity()->add_client_navigation_support_to_script_module( $script_module_id ); } if ( '' !== $suffix ) { $file_name = str_replace( '.js', $suffix . '.js', $file_name ); } $path = includes_url( "js/dist/script-modules/{$file_name}" ); $module_deps = $script_module_data['module_dependencies'] ?? array(); wp_register_script_module( $script_module_id, $path, $module_deps, $script_module_data['version'], $args ); } } /** * Enqueues script modules required by the block editor. * * @since 6.9.0 */ function wp_enqueue_block_editor_script_modules() { /* * Enqueue the LaTeX to MathML loader for the math block editor. * The loader dynamically imports the main LaTeX to MathML module when needed. */ wp_enqueue_script_module( '@wordpress/latex-to-mathml/loader' ); }
Edit
Rename
Chmod
Delete
FILE
DIR
INFO
CMD
Name
Size
Permission
Action
ID3
---
0777
IXR
---
0777
PHPMailer
---
0777
Requests
---
0777
SimplePie
---
0777
Text
---
0777
abilities-api
---
0777
ai-client
---
0777
assets
---
0777
block-bindings
---
0777
block-patterns
---
0777
block-supports
---
0777
blocks
---
0777
build
---
0777
certificates
---
0777
collaboration
---
0777
css
---
0777
customize
---
0777
fonts
---
0777
html-api
---
0777
images
---
0777
interactivity-api
---
0777
js
---
0777
l10n
---
0777
php-ai-client
---
0777
php-compat
---
0777
pomo
---
0777
rest-api
---
0777
sitemaps
---
0777
sodium_compat
---
0777
style-engine
---
0777
theme-compat
---
0777
widgets
---
0777
abilities-api.php
24369bytes
0666
abilities.php
8009bytes
0666
admin-bar.php
39315bytes
0666
ai-client.php
2549bytes
0666
atomlib.php
12181bytes
0666
author-template.php
19844bytes
0666
block-bindings.php
7526bytes
0666
block-editor.php
28724bytes
0666
block-i18n.json
316bytes
0666
block-patterns.php
15606bytes
0666
block-template-utils.php
62804bytes
0666
block-template.php
18261bytes
0666
blocks.php
119442bytes
0666
bookmark-template.php
12768bytes
0666
bookmark.php
15427bytes
0666
cache-compat.php
11021bytes
0666
cache.php
13486bytes
0666
canonical.php
34645bytes
0666
capabilities.php
43633bytes
0666
category-template.php
56985bytes
0666
category.php
12834bytes
0666
class-IXR.php
2616bytes
0666
class-avif-info.php
30008bytes
0666
class-feed.php
539bytes
0666
class-http.php
367bytes
0666
class-json.php
43676bytes
0666
class-oembed.php
401bytes
0666
class-phpass.php
6771bytes
0666
class-phpmailer.php
664bytes
0666
class-pop3.php
21121bytes
0666
class-requests.php
2237bytes
0666
class-simplepie.php
453bytes
0666
class-smtp.php
457bytes
0666
class-snoopy.php
37715bytes
0666
class-walker-category-dropdown.php
2469bytes
0666
class-walker-category.php
8477bytes
0666
class-walker-comment.php
14221bytes
0666
class-walker-nav-menu.php
12044bytes
0666
class-walker-page-dropdown.php
2710bytes
0666
class-walker-page.php
7612bytes
0666
class-wp-admin-bar.php
18004bytes
0666
class-wp-ajax-response.php
5266bytes
0666
class-wp-application-passwords.php
17099bytes
0666
class-wp-block-bindings-registry.php
8263bytes
0666
class-wp-block-bindings-source.php
2992bytes
0666
class-wp-block-editor-context.php
1350bytes
0666
class-wp-block-list.php
4713bytes
0666
class-wp-block-metadata-registry.php
11846bytes
0666
class-wp-block-parser-block.php
2555bytes
0666
class-wp-block-parser-frame.php
1994bytes
0666
class-wp-block-parser.php
11520bytes
0666
class-wp-block-pattern-categories-registry.php
4383bytes
0666
class-wp-block-patterns-registry.php
10312bytes
0666
class-wp-block-processor.php
69959bytes
0666
class-wp-block-styles-registry.php
6419bytes
0666
class-wp-block-supports.php
6551bytes
0666
class-wp-block-template.php
2033bytes
0666
class-wp-block-templates-registry.php
7080bytes
0666
class-wp-block-type-registry.php
5030bytes
0666
class-wp-block-type.php
17233bytes
0666
class-wp-block.php
24720bytes
0666
class-wp-classic-to-block-menu-converter.php
4026bytes
0666
class-wp-comment-query.php
48631bytes
0666
class-wp-comment.php
9371bytes
0666
class-wp-connector-registry.php
14409bytes
0666
class-wp-customize-control.php
26119bytes
0666
class-wp-customize-manager.php
202881bytes
0666
class-wp-customize-nav-menus.php
57968bytes
0666
class-wp-customize-panel.php
10710bytes
0666
class-wp-customize-section.php
11209bytes
0666
class-wp-customize-setting.php
29963bytes
0666
class-wp-customize-widgets.php
72594bytes
0666
class-wp-date-query.php
35970bytes
0666
class-wp-dependencies.php
17089bytes
0666
class-wp-dependency.php
2653bytes
0666
class-wp-duotone.php
40910bytes
0666
class-wp-editor.php
72228bytes
0666
class-wp-embed.php
15908bytes
0666
class-wp-error.php
7502bytes
0666
class-wp-exception.php
253bytes
0666
class-wp-fatal-error-handler.php
8150bytes
0666
class-wp-feed-cache-transient.php
3304bytes
0666
class-wp-feed-cache.php
969bytes
0666
class-wp-hook.php
16636bytes
0666
class-wp-http-cookie.php
7269bytes
0666
class-wp-http-curl.php
13261bytes
0666
class-wp-http-encoding.php
6689bytes
0666
class-wp-http-ixr-client.php
3516bytes
0666
class-wp-http-proxy.php
5980bytes
0666
class-wp-http-requests-hooks.php
2022bytes
0666
class-wp-http-requests-response.php
4243bytes
0666
class-wp-http-response.php
2977bytes
0666
class-wp-http-streams.php
16764bytes
0666
class-wp-http.php
41648bytes
0666
class-wp-icons-registry.php
7857bytes
0666
class-wp-image-editor-gd.php
20705bytes
0666
class-wp-image-editor-imagick.php
36977bytes
0666
class-wp-image-editor.php
17418bytes
0666
class-wp-list-util.php
7443bytes
0666
class-wp-locale-switcher.php
6776bytes
0666
class-wp-locale.php
16848bytes
0666
class-wp-matchesmapregex.php
1828bytes
0666
class-wp-meta-query.php
30507bytes
0666
class-wp-metadata-lazyloader.php
6833bytes
0666
class-wp-navigation-fallback.php
9193bytes
0666
class-wp-network-query.php
19714bytes
0666
class-wp-network.php
12296bytes
0666
class-wp-object-cache.php
17524bytes
0666
class-wp-oembed-controller.php
6905bytes
0666
class-wp-oembed.php
31603bytes
0666
class-wp-paused-extensions-storage.php
5067bytes
0666
class-wp-phpmailer.php
4348bytes
0666
class-wp-plugin-dependencies.php
25182bytes
0666
class-wp-post-type.php
30672bytes
0666
class-wp-post.php
6483bytes
0666
class-wp-query.php
163331bytes
0666
class-wp-recovery-mode-cookie-service.php
6877bytes
0666
class-wp-recovery-mode-email-service.php
11166bytes
0666
class-wp-recovery-mode-key-service.php
4914bytes
0666
class-wp-recovery-mode-link-service.php
3523bytes
0666
class-wp-recovery-mode.php
11453bytes
0666
class-wp-rewrite.php
63693bytes
0666
class-wp-role.php
2523bytes
0666
class-wp-roles.php
9321bytes
0666
class-wp-script-modules.php
40599bytes
0666
class-wp-scripts.php
36789bytes
0666
class-wp-session-tokens.php
7319bytes
0666
class-wp-simplepie-file.php
3552bytes
0666
class-wp-simplepie-sanitize-kses.php
1910bytes
0666
class-wp-site-query.php
31482bytes
0666
class-wp-site.php
7459bytes
0666
class-wp-speculation-rules.php
7554bytes
0666
class-wp-styles.php
13356bytes
0666
class-wp-tax-query.php
19577bytes
0666
class-wp-taxonomy.php
18559bytes
0666
class-wp-term-query.php
40751bytes
0666
class-wp-term.php
5263bytes
0666
class-wp-text-diff-renderer-inline.php
979bytes
0666
class-wp-text-diff-renderer-table.php
18932bytes
0666
class-wp-textdomain-registry.php
10481bytes
0666
class-wp-theme-json-data.php
1809bytes
0666
class-wp-theme-json-resolver.php
35692bytes
0666
class-wp-theme-json-schema.php
7367bytes
0666
class-wp-theme-json.php
173639bytes
0666
class-wp-theme.php
65761bytes
0666
class-wp-token-map.php
28618bytes
0666
class-wp-url-pattern-prefixer.php
4802bytes
0666
class-wp-user-meta-session-tokens.php
2954bytes
0666
class-wp-user-query.php
44102bytes
0666
class-wp-user-request.php
2305bytes
0666
class-wp-user.php
23016bytes
0666
class-wp-walker.php
13322bytes
0666
class-wp-widget-factory.php
3347bytes
0666
class-wp-widget.php
18417bytes
0666
class-wp-xmlrpc-server.php
215020bytes
0666
class-wp.php
26371bytes
0666
class-wpdb.php
118638bytes
0666
class.wp-dependencies.php
373bytes
0666
class.wp-scripts.php
343bytes
0666
class.wp-styles.php
338bytes
0666
collaboration.php
2158bytes
0666
comment-template.php
103211bytes
0666
comment.php
134085bytes
0666
compat-utf8.php
19554bytes
0666
compat.php
16063bytes
0666
connectors.php
24080bytes
0666
cron.php
44996bytes
0666
date.php
400bytes
0666
default-constants.php
11365bytes
0666
default-filters.php
37417bytes
0666
default-widgets.php
2295bytes
0666
deprecated.php
193977bytes
0666
embed-template.php
338bytes
0666
embed.php
38906bytes
0666
error-protection.php
4092bytes
0666
feed-atom-comments.php
5504bytes
0666
feed-atom.php
3121bytes
0666
feed-rdf.php
2668bytes
0666
feed-rss.php
1189bytes
0666
feed-rss2-comments.php
4136bytes
0666
feed-rss2.php
3799bytes
0666
feed.php
25189bytes
0666
fonts.php
9790bytes
0666
formatting.php
354690bytes
0666
functions.php
290326bytes
0666
functions.wp-scripts.php
20492bytes
0666
functions.wp-styles.php
8654bytes
0666
general-template.php
174934bytes
0666
global-styles-and-settings.php
20780bytes
0666
http.php
27255bytes
0666
https-detection.php
5857bytes
0666
https-migration.php
4741bytes
0666
kses.php
82580bytes
0666
l10n.php
71415bytes
0666
link-template.php
160147bytes
0666
load.php
56475bytes
0666
locale.php
162bytes
0666
media-template.php
63275bytes
0666
media.php
223794bytes
0666
meta.php
66739bytes
0666
ms-blogs.php
26331bytes
0666
ms-default-constants.php
4921bytes
0666
ms-default-filters.php
6636bytes
0666
ms-deprecated.php
21750bytes
0666
ms-files.php
2857bytes
0666
ms-functions.php
91842bytes
0666
ms-load.php
20038bytes
0666
ms-network.php
3782bytes
0666
ms-settings.php
4204bytes
0666
ms-site.php
41729bytes
0666
nav-menu-template.php
25990bytes
0666
nav-menu.php
44269bytes
0666
option.php
105079bytes
0666
pluggable-deprecated.php
6324bytes
0666
pluggable.php
127558bytes
0666
plugin.php
36501bytes
0666
post-formats.php
7070bytes
0666
post-template.php
68615bytes
0666
post-thumbnail-template.php
10879bytes
0666
post.php
296525bytes
0666
query.php
37095bytes
0666
registration-functions.php
200bytes
0666
registration.php
200bytes
0666
rest-api.php
100881bytes
0666
revision.php
30712bytes
0666
rewrite.php
19461bytes
0666
robots-template.php
5185bytes
0666
rss-functions.php
255bytes
0666
rss.php
23203bytes
0666
script-loader.php
163126bytes
0666
script-modules.php
11943bytes
0666
session.php
258bytes
0666
shortcodes.php
24034bytes
0666
sitemaps.php
3238bytes
0666
speculative-loading.php
8600bytes
0666
spl-autoload-compat.php
441bytes
0666
style-engine.php
7563bytes
0666
taxonomy.php
177144bytes
0666
template-canvas.php
544bytes
0666
template-loader.php
4267bytes
0666
template.php
36824bytes
0666
theme-i18n.json
1892bytes
0666
theme-previews.php
2887bytes
0666
theme-templates.php
4060bytes
0666
theme.json
9037bytes
0666
theme.php
134631bytes
0666
update.php
38276bytes
0666
user.php
178824bytes
0666
utf8.php
7260bytes
0666
vars.php
6607bytes
0666
version.php
1131bytes
0666
view-transitions.php
602bytes
0666
widgets.php
70828bytes
0666
wp-db.php
445bytes
0666
wp-diff.php
799bytes
0666