WordPress/wp-includes
gziolo 54bdc31c99 Editor: Fix broken asset URLs when using WP outside of the regular directory
Both CSS and JS URLs were totally broken for some of the newer blocks (e.g. the navigation block in the 2022 theme) when WP core is outside of the current directory using a different prefix.

Props pgpagely, Mamaduka.
Fixes #55311.



Built from https://develop.svn.wordpress.org/trunk@52939


git-svn-id: http://core.svn.wordpress.org/trunk@52528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-16 10:22:03 +00:00
..
assets
block-patterns
block-supports Formatting: Use safecss_filter_attr in wp_get_layout_style(). 2022-03-12 00:29:04 +00:00
blocks
certificates
css
customize Customizer: Remove Menus panel when a theme does not support menus 2022-01-24 05:34:04 +00:00
fonts
ID3 External Libraries: Update getID3 to version 1.9.21. 2021-11-26 03:06:03 +00:00
images
IXR
js jquery-query 2022-03-10 18:54:02 +00:00
php-compat
PHPMailer External Libraries: Upgrade PHPMailer to version 6.6.0. 2022-02-28 21:38:09 +00:00
pomo Code Modernization: Use stream_get_contents() in POMO_FileReader::read_all(). 2022-02-09 12:33:05 +00:00
random_compat
Requests HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
rest-api REST API: Correct the wording for show_in_nav_menus property description in post type visibility settings. 2022-03-08 14:51:07 +00:00
SimplePie
sitemaps Sitemaps: Pass term object to wp_sitemaps_taxonomies_entry filter. 2022-03-10 04:01:05 +00:00
sodium_compat
Text
theme-compat
widgets
admin-bar.php
atomlib.php
author-template.php Coding Standards: Remove an extra variable in get_author_posts_url(). 2022-01-12 11:17:08 +00:00
block-editor.php Global Styles: Load the global styles before the theme styles in the editor. 2022-02-17 14:14:01 +00:00
block-i18n.json
block-patterns.php
block-template-utils.php Site Editor: Rename the default attachment template from "Media" to "Attachment". 2022-03-11 23:30:07 +00:00
block-template.php
blocks.php Editor: Fix broken asset URLs when using WP outside of the regular directory 2022-03-16 10:22:03 +00:00
bookmark-template.php General: Add "noopener" to wp_list_bookmarks() output. 2021-11-08 23:06:58 +00:00
bookmark.php General: Ensure consistent type for integer properties of a bookmark object. 2021-05-20 00:04:56 +00:00
cache-compat.php Cache API: Add wp_cache_flush_runtime function 2022-02-18 12:06:03 +00:00
cache.php
canonical.php Canonical: Check if the URL scheme exists in strip_fragment_from_url(). 2022-03-09 15:08:06 +00:00
capabilities.php Users: Prevent infinite loop when using capability checks during determine_current_user on multisite. 2021-11-15 01:09:59 +00:00
category-template.php
category.php
class-feed.php
class-http.php
class-IXR.php
class-json.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
class-oembed.php
class-phpass.php External Libraries: Update the phpass library to version 0.5. 2021-05-25 18:47:59 +00:00
class-phpmailer.php
class-pop3.php
class-requests.php
class-simplepie.php
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-nav-menu.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php
class-wp-ajax-response.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-application-passwords.php Application Passwords: Various docblock improvements. 2021-10-30 20:26:59 +00:00
class-wp-block-editor-context.php
class-wp-block-list.php Code Modernization: Silence the deprecation warnings for missing return type in WP_Block_List. 2021-08-03 11:12:55 +00:00
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php Docs: Improve the documentation for registering block patterns and block pattern categories. 2021-11-19 19:05:59 +00:00
class-wp-block-patterns-registry.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-styles-registry.php
class-wp-block-supports.php
class-wp-block-template.php Editor: Explicitly declare $post_types and $area properties in WP_Block_Template class. 2021-12-21 00:28:00 +00:00
class-wp-block-type-registry.php Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls. 2021-06-15 15:22:58 +00:00
class-wp-block-type.php
class-wp-block.php
class-wp-comment-query.php
class-wp-comment.php
class-wp-customize-control.php Coding Standards: Escape id attributes in WP_Customize_Control::render_content() and ::print_template(). 2021-10-22 16:09:59 +00:00
class-wp-customize-manager.php
class-wp-customize-nav-menus.php Docs: Miscellaneous inline documentation improvements, including: 2021-10-04 20:44:02 +00:00
class-wp-customize-panel.php Customizer: Remove Menus panel when a theme does not support menus 2022-01-24 05:34:04 +00:00
class-wp-customize-section.php Docs: Update some @var tags per the documentation standards. 2021-12-11 19:50:59 +00:00
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php
class-wp-dependency.php
class-wp-editor.php Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases. 2021-09-08 23:29:58 +00:00
class-wp-embed.php
class-wp-error.php
class-wp-fatal-error-handler.php
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php Docs: Fix typos in some DocBlocks. 2022-01-18 20:29:06 +00:00
class-wp-http-ixr-client.php Coding Standards: Use strict comparison in wp-includes/class-wp-http-ixr-client.php. 2021-10-01 15:00:58 +00:00
class-wp-http-proxy.php
class-wp-http-requests-hooks.php HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
class-wp-http-requests-response.php HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
class-wp-http-response.php
class-wp-http-streams.php
class-wp-http.php
class-wp-image-editor-gd.php Media: Store attachment’s file size in metadata. 2022-03-10 13:10:02 +00:00
class-wp-image-editor-imagick.php Media: Store attachment’s file size in metadata. 2022-03-10 13:10:02 +00:00
class-wp-image-editor.php
class-wp-list-util.php
class-wp-locale-switcher.php
class-wp-locale.php Docs: Use third-person singular verbs for function descriptions in wp-includes/class-wp-locale.php. 2022-03-13 21:06:01 +00:00
class-wp-matchesmapregex.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-meta-query.php
class-wp-metadata-lazyloader.php
class-wp-network-query.php
class-wp-network.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-object-cache.php
class-wp-oembed-controller.php Docs: Document the usage of $wp_embed global in WP_oEmbed_Controller::get_proxy_item(). 2021-06-15 10:24:57 +00:00
class-wp-oembed.php
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php Query: Make sure WP_Query::get_queried_object() works for author_name before ::get_posts() is run. 2022-03-05 15:35:04 +00:00
class-wp-recovery-mode-cookie-service.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php Docs: Remove unnecessary variables names from @return tags. 2020-06-19 22:55:12 +00:00
class-wp-recovery-mode-link-service.php Docs: Document the usage of $pagenow global in a few functions. 2021-02-22 19:18:12 +00:00
class-wp-recovery-mode.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php
class-wp-simplepie-file.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
class-wp-simplepie-sanitize-kses.php Docs: Typo corrections in various API docblocks. 2022-02-04 16:28:00 +00:00
class-wp-site-query.php
class-wp-site.php Docs: Various docblock corrections and improvements. 2021-02-20 17:10:11 +00:00
class-wp-tax-query.php Query: Improve sanitization within WP_Meta_Query. 2022-01-06 17:05:02 +00:00
class-wp-taxonomy.php
class-wp-term-query.php Taxonomy: Only store term_ids and object_ids in WP_Term_Query query caches. 2022-03-10 10:58:09 +00:00
class-wp-term.php Docs: Various docblock corrections. 2020-12-10 23:53:07 +00:00
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php
class-wp-theme-json-resolver.php
class-wp-theme-json-schema.php Docs: Docblock typo correction in WP_Theme_JSON_Schema. 2021-12-02 20:45:01 +00:00
class-wp-theme-json.php
class-wp-theme.php i18n: Define List item separator as a WP_Locale property. 2022-03-13 20:03:01 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php
class-wp-user.php Docs: Use third-person singular verbs for function descriptions in wp-includes/class-wp-user.php. 2022-03-07 13:07:03 +00:00
class-wp-walker.php Docs: Add missing descriptions for some parameters of WP_Walker::paged_walk(). 2022-02-24 13:33:01 +00:00
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php XML-RPC: Fix typos in some XMLRPC related docblocks. 2022-01-14 14:45:05 +00:00
class-wp.php Docs: Add a @since note for WP::parse_request() about the new return value. 2022-03-02 15:40:01 +00:00
class.wp-dependencies.php
class.wp-scripts.php I18N, Script Loader: Don't register empty locale data objects. 2022-03-15 16:00:02 +00:00
class.wp-styles.php
comment-template.php Comments: Guard against potential PHP notices in get_comment_author and get_comment_ID. 2022-03-03 20:33:59 +00:00
comment.php
compat.php
cron.php
date.php
default-constants.php
default-filters.php
default-widgets.php
deprecated.php
embed-template.php
embed.php Embeds: Fix oEmbed host script enqueueing on block-based themes. 2022-01-04 15:23:59 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss.php
feed.php
formatting.php Docs: Add inline comments for non-visible characters in sanitize_title_with_dashes(). 2022-03-04 14:11:02 +00:00
functions.php I18N: Move wp_get_list_item_separator() to a more appropriate place. 2022-03-14 18:01:02 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php
global-styles-and-settings.php
http.php HTTP API: Fix typo in and improve readability of wp_parse_url() docblock. 2022-03-10 16:02:01 +00:00
https-detection.php
https-migration.php
kses.php Block Editor: Improve Global Styles filtering order. 2022-03-10 23:27:04 +00:00
l10n.php I18N: Move wp_get_list_item_separator() to a more appropriate place. 2022-03-14 18:01:02 +00:00
link-template.php Database: Add missing AS after INNER JOIN in some queries. 2022-01-11 04:12:05 +00:00
load.php
locale.php Docs: Add missing @deprecated tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
media-template.php
media.php Media: Store attachment’s file size in metadata. 2022-03-10 13:10:02 +00:00
meta.php
ms-blogs.php Docs: Fix and upgrade various object docblock notations. 2020-10-17 16:05:09 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php
ms-load.php
ms-network.php
ms-settings.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:42:12 +00:00
ms-site.php Docs: Update the DocBlock for the wpmu_new_blog action to suggest wp_initialize_site as an alternative. 2022-03-03 16:13:03 +00:00
nav-menu-template.php
nav-menu.php
option.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
pluggable-deprecated.php
pluggable.php
plugin.php Plugins: Correct the documented allowable types for to the $callback parameter of various hook related functions. 2021-12-01 13:22:01 +00:00
post-formats.php
post-template.php Docs: Misc. fixes in wp-includes/post-template.php and wp-includes/post-thumbnail-template.php. 2022-03-15 15:22:05 +00:00
post-thumbnail-template.php Docs: Misc. fixes in wp-includes/post-template.php and wp-includes/post-thumbnail-template.php. 2022-03-15 15:22:05 +00:00
post.php Media: Store attachment’s file size in metadata. 2022-03-10 13:10:02 +00:00
query.php
registration-functions.php
registration.php
rest-api.php
revision.php
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php jquery-query 2022-03-10 18:54:02 +00:00
session.php
shortcodes.php
sitemaps.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
spl-autoload-compat.php
taxonomy.php Taxonomy: Use get_terms instead of a database lookup in term_exists(). 2022-03-11 11:07:05 +00:00
template-canvas.php
template-loader.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:37:10 +00:00
template.php
theme-i18n.json
theme-templates.php
theme.json
theme.php Themes: Correct the logic for displaying a _doing_it_wrong() notice for add_theme_support( 'html5' ). 2022-03-07 14:44:01 +00:00
update.php Docs: Replace "Current theme" with "Active theme" in various DocBlocks. 2022-01-20 23:53:05 +00:00
user.php
vars.php General: Improve MS Edge user-agent sniff. 2022-03-07 02:38:01 +00:00
version.php Editor: Fix broken asset URLs when using WP outside of the regular directory 2022-03-16 10:22:03 +00:00
widgets.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00
wlwmanifest.xml
wp-db.php
wp-diff.php