Skip to content
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

Files/IncludingFile: allow for more path-returning functions #762

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Aug 22, 2023

Files/IncludingFile: alphabetize the list of path functions

Files/IncludingFile: allow for more path-returning functions

As per the thread in #740, these functions all return the full path to a file, so these should all be fine.
As things were, use of these in an include/require statement would throw an unjustified "Absolute include path must be used" warning.

Includes a few extra tests, though I didn't think it would be necessary to have tests with each of these functions.

Fixes #740

As per the thread in 740, these functions all return the full path to a file, so these should all be fine.
As things were, use of these in an `include`/`require` statement would throw an unjustified "Absolute include path must be used" warning.

Includes a few extra tests, though I didn't think it would be necessary to have tests with each of these functions.

Fixes 740
@jrfnl jrfnl added this to the 2.3.4 milestone Aug 22, 2023
@jrfnl jrfnl requested a review from a team as a code owner August 22, 2023 23:15
Copy link
Contributor

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GaryJones GaryJones merged commit c15f4b2 into develop Aug 23, 2023
32 checks passed
@GaryJones GaryJones deleted the fix/740-includingfile-prevent-some-false-positives branch August 23, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_404_template() triggers WordPressVIPMinimum.Files.IncludingFile.NotAbsolutePath
2 participants