-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use wp_unique_id()
instead of uniqid()
to generate CSS class names
#38891
Merged
Conversation
This file contains 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
westonruter
requested review from
TimothyBJacobs,
spacedmonkey,
tellthemachines and
ajitbohra
as code owners
February 17, 2022 19:10
gziolo
added
[Type] Performance
Related to performance efforts
CSS Styling
Related to editor and front end styles, CSS-specific issues.
labels
Feb 17, 2022
Mamaduka
approved these changes
Feb 18, 2022
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 looks good 👍
On the client-side, we're using useInstanceId
to generate unique class names, which works in similar manner as wp_unique_id
Should this get ported into core trunk for the next maintenance release (i.e. 5.9.2)? |
Mamaduka
added
the
Backport to WP Minor Release
Pull request that needs to be backported to a WordPress minor release
label
Feb 25, 2022
Added label for backporting. |
2 tasks
Mamaduka
removed
the
Backport to WP Minor Release
Pull request that needs to be backported to a WordPress minor release
label
Mar 29, 2022
Mamaduka
pushed a commit
that referenced
this pull request
Mar 29, 2022
#38891) * Use wp_unique_id() instead of uniqid() to generate CSS class names * Fix elements test by upadting pattern in make_unique_id_one
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Mar 29, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. See #55474. Built from https://develop.svn.wordpress.org/trunk@53012 git-svn-id: http://core.svn.wordpress.org/trunk@52601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
pento
pushed a commit
to WordPress/wordpress-develop
that referenced
this pull request
Mar 29, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. Merges [53012] to the 5.9 branch. See #55474. git-svn-id: https://develop.svn.wordpress.org/branches/5.9@53013 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Mar 29, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. Merges [53012] to the 5.9 branch. See #55474. Built from https://develop.svn.wordpress.org/branches/5.9@53013 git-svn-id: http://core.svn.wordpress.org/branches/5.9@52602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
gMagicScott
pushed a commit
to gMagicScott/core.wordpress-mirror
that referenced
this pull request
Mar 29, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. See #55474. Built from https://develop.svn.wordpress.org/trunk@53012 git-svn-id: https://core.svn.wordpress.org/trunk@52601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
gMagicScott
pushed a commit
to gMagicScott/core.wordpress-mirror
that referenced
this pull request
Mar 29, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. Merges [53012] to the 5.9 branch. See #55474. Built from https://develop.svn.wordpress.org/branches/5.9@53013 git-svn-id: https://core.svn.wordpress.org/branches/5.9@52602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This was referenced Apr 1, 2022
36 tasks
2 tasks
whereiscodedude
pushed a commit
to whereiscodedude/wpss
that referenced
this pull request
Sep 18, 2022
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. Merges [53012] to the 5.9 branch. See #55474. Built from https://develop.svn.wordpress.org/branches/5.9@53013
VenusPR
added a commit
to VenusPR/Wordpress_Richard
that referenced
this pull request
Mar 9, 2023
…ass names. Backports changes from WordPress/gutenberg#38891. See WordPress/gutenberg#38889. Props westonruter, mamaduka. Merges [53012] to the 5.9 branch. See #55474. Built from https://develop.svn.wordpress.org/branches/5.9@53013 git-svn-id: http://core.svn.wordpress.org/branches/5.9@52602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Performance
Related to performance efforts
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.
Fixes #38889.
Description
Testing Instructions
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).