-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Functions: Optimize wp_normalize_path(). #10781
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
base: trunk
Are you sure you want to change the base?
Functions: Optimize wp_normalize_path(). #10781
Conversation
6e218df to
e939742
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
e939742 to
346bef9
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
346bef9 to
ab0d06c
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
ab0d06c to
d064ac9
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
d064ac9 to
4f66df2
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
4f66df2 to
95ad83b
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
95ad83b to
dd0edf7
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
dd0edf7 to
bfa9ae6
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
6f22615 to
0a2b446
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
0a2b446 to
6ff0541
Compare
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
In addition to optimizing, two changes were introduced: - The scheme separators for non-registered stream wrappers will be presered. Previously, these were combined into a single slash. - Windows drive letters which are not found at the start of the string will be upper-cases if they are not. Previously, if a drive letter were found after the first character and was lower-case, it would remain lower-case. Co-Authored-By: Joseph Scott <josephscott@git.wordpress.org> Github-PR: 10781 Github-PR-Url: WordPress#10781 Git-Branch: functions/optimize-wp-normalize-path
6ff0541 to
5e88b26
Compare
| */ | ||
| function wp_normalize_path( $path ) { | ||
| $wrapper = ''; | ||
| $path = (string) $path; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be really good to eliminate this.
In addition to optimizing, two changes were introduced:
The scheme separators for non-registered stream wrappers
will be presered. Previously, these were combined into
a single slash.
Windows drive letters which are not found at the start
of the string will be upper-cases if they are not.
Previously, if a drive letter were found after the first
character and was lower-case, it would remain lower-case.