Skip to content

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

Merged
GaryJones merged 2 commits intodevelopfrom
fix/740-includingfile-prevent-some-false-positives
Aug 23, 2023
Merged

Files/IncludingFile: allow for more path-returning functions#762
GaryJones merged 2 commits intodevelopfrom
fix/740-includingfile-prevent-some-false-positives

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

jrfnl added 2 commits August 23, 2023 01:02
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
@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