-
Notifications
You must be signed in to change notification settings - Fork 3.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
Like default theme use get_theme_file_uri function instead of get_template_directory_uri #1141
Comments
Wouldn't |
Before we started using new functions 2 major version back if I remember correctly. That means that those functions can be used in version 4.9 because they arrived in 4.7. |
I dropped some similar comments to @samikeijonen on the PR since I saw that first. |
We can proceed this now. |
I second that we can proceed here. PRs welcome, if one of the maintainers doesn't get to it first. |
Note for whoever creates the PR for this: |
To clarify, is |
|
I was actually thinking the opposite. 😯 Asset files can easily be |
That's only my opinion because for novice site owners that's the easier way, talking only about public themes here. |
I agree with m-e-h using get_parent_theme_file_path and get_parent_theme_file_uri would be the ideal functions to use. Many people like to use the same names for scripts/files in their child themes (no matter what the parent theme is) without having to look into the parent to see if it will create a conflict. |
Use newly introduced function get_theme_file_uri that makes it easy to overwrite files in child theme. The Twenty Seventeen theme already uses this function.
The text was updated successfully, but these errors were encountered: