-
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
Fix: Don't allow synced patterns to be inserted on shuffling. #62422
Fix: Don't allow synced patterns to be inserted on shuffling. #62422
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +20 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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 fixes things for me, thanks @jorgefilipecosta!
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: ndiego <ndiego@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6-rc-1 branch to get it included in the next release: e03c372 |
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: ndiego <ndiego@git.wordpress.org>
Fixes: #62294
Currently, the pattern shuffle inserts synced patterns as unsynced. This PR fixes the issue by applying the suggestion by @talldan, of not allowing to shuffle to a synced pattern.
Testing Instructions
With the 2024 theme I verified there are originally 2 patterns on the testimonials category.
I created two duplicates of the "Annie Steiner CEO, Greenprint" patterns one that is synced and made the text of the pattern say sync and one that is unsync and made the text of the pattern say unsync.
I added a testimonial pattern and verified the pattern shuffle switches between the two patterns that come with the team and the unsync pattern I created, but never shuffles to the sync patterns.