-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Remove support for IE conditional scripts and styles #9497
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
Closed
Closed
Changes from 30 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9eb5041
Remove support for IE conditional scripts and styles
joedolson caf0887
Update scripts.php
joedolson 1bd20ae
Update tests to expect empty results for conditional scripts and thei…
joedolson e4d1717
Update conditional inline styles test
joedolson 5fb72b7
Unset dependencies for conditional scripts.
joedolson 22fe20c
Restore concat_and_core_dependency test
joedolson f2011cd
Remove ticket ref
joedolson f4b1ccb
Update src/wp-includes/class-wp-scripts.php
joedolson 69b243a
Update src/wp-includes/class-wp-styles.php
joedolson b0cfbc8
Update tests/phpunit/tests/dependencies/scripts.php
joedolson 9d5da03
Update tests/phpunit/tests/dependencies/scripts.php
joedolson 141b5bc
Move dependency exits earlier per suggestion
joedolson 0df6ba1
Code style
joedolson 64f11e1
Fix test_wp_script_add_data_with_conditional_key
joedolson ede759b
Remove space
joedolson 3834934
Add comment about removal of conditional dependencies
joedolson 1b5181a
Add a deprecated argument for conditional keys
joedolson d083a48
Add expect deprecation to tests.
joedolson ab365f1
expectDeprecation is not the appropriate method.
joedolson 63dd8a7
Remove translator comment; this string does not require arguments.
joedolson 21934fd
Update src/wp-includes/class-wp-styles.php
joedolson bf35196
Update class-wp-styles.php
joedolson 35e7fae
Merge branch 'trunk' into remove-ie-conditionals
joedolson bcc8917
Remove that.
joedolson cae85c8
Add @expectedDeprecated annotation to tests
sirreal 7e91911
Update deprecation notice text
joedolson 9541e3c
Restore json2.js, register with backward compatibility comment.
joedolson 73d0913
Merge branch 'trunk' into remove-ie-conditionals
joedolson 56682c3
Remove extra empty line
sirreal 681b3b6
Add bypass mechanism for doing it wrong
sirreal e302164
Merge branch 'trunk' into remove-ie-conditionals
joedolson 104c076
Empty json2
joedolson 14c196b
Restore empty wp-embed-template-ie.css and enqueue with exempted cond…
joedolson 185f311
Merge branch 'trunk' into remove-ie-conditionals
joedolson 33811f9
Merge branch 'trunk' into remove-ie-conditionals
joedolson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this should only be the case if the conditional script is the only dependency pulling it in, right?
or at this point in the code will that be handled because the deps here are only for the condition script itself and not all scripts?
Uh oh!
There was an error while loading. Please reload this page.
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.
There are details here: #9497 (comment)
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.
Each script that has a dependency enqueues its dependencies separately; so any dependency will still be enqueued by other scripts.