-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background image: add support for relative theme path URLs in top-level theme.json styles #61271
Background image: add support for relative theme path URLs in top-level theme.json styles #61271
Commits on May 20, 2024
-
- removes requirement for a `source` property in theme.json as the assumption is that, for now, all paths are paths to image files, whether absolute or relative - checks for existence of "host" in URL and then tries to resolve background image url using get_theme_file_uri - Adds a new public method WP_Theme_JSON_Gutenberg::resolve_theme_file_uris to allow theme devs to optionally resolve relative paths in theme.json to a theme.
Configuration menu - View commit details
-
Copy full SHA for 514e7b9 - Browse repository at this point
Copy the full SHA 514e7b9View commit details -
For testing purposes, resolve in get_merged_data - should it be optio…
…nal? That is, done in the global themes controller and wherever a stylesheet is generated?
Configuration menu - View commit details
-
Copy full SHA for fa9e75f - Browse repository at this point
Copy the full SHA fa9e75fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ba6cfd - Browse repository at this point
Copy the full SHA 2ba6cfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17048c3 - Browse repository at this point
Copy the full SHA 17048c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88aac46 - Browse repository at this point
Copy the full SHA 88aac46View commit details -
Backend resolution of theme file URIs for global styles revisions Ensuring links are preserved when updating global styles.
Configuration menu - View commit details
-
Copy full SHA for 4137b37 - Browse repository at this point
Copy the full SHA 4137b37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57cd28c - Browse repository at this point
Copy the full SHA 57cd28cView commit details -
Changed the relative link to
wp:theme-file-uris
Always adding path to the link object so that it can dynamically resolved.
Configuration menu - View commit details
-
Copy full SHA for 06c2bb0 - Browse repository at this point
Copy the full SHA 06c2bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e283e0 - Browse repository at this point
Copy the full SHA 3e283e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1752858 - Browse repository at this point
Copy the full SHA 1752858View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98de1c6 - Browse repository at this point
Copy the full SHA 98de1c6View commit details -
Switching to using file: prefix, which is an established theme.json c…
…onvention for relative paths to theme assets. E.g., web fonts Adding test image to empty theme Added theme JSON schema update Unit tests for JS helper Using response methods to add links to response collection
Configuration menu - View commit details
-
Copy full SHA for 70c26ba - Browse repository at this point
Copy the full SHA 70c26baView commit details -
Configuration menu - View commit details
-
Copy full SHA for b94a512 - Browse repository at this point
Copy the full SHA b94a512View commit details -
Configuration menu - View commit details
-
Copy full SHA for efae7f2 - Browse repository at this point
Copy the full SHA efae7f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb4ab0f - Browse repository at this point
Copy the full SHA eb4ab0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0fb937 - Browse repository at this point
Copy the full SHA b0fb937View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c083bc - Browse repository at this point
Copy the full SHA 7c083bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17d51bd - Browse repository at this point
Copy the full SHA 17d51bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60c8bb1 - Browse repository at this point
Copy the full SHA 60c8bb1View commit details -
Abstracting getting any resolved URI to separate hook
Updating comments
Configuration menu - View commit details
-
Copy full SHA for dd07557 - Browse repository at this point
Copy the full SHA dd07557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26866fc - Browse repository at this point
Copy the full SHA 26866fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f01dcdf - Browse repository at this point
Copy the full SHA f01dcdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25f8754 - Browse repository at this point
Copy the full SHA 25f8754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fecf34 - Browse repository at this point
Copy the full SHA 7fecf34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d3ba0b - Browse repository at this point
Copy the full SHA 5d3ba0bView commit details