Repository navigation
Preserve element styles during Query Loop navigation - #15947
ArkaPrabhaChowdhury wants to merge 1 commit into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
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. |
See https://core.trac.wordpress.org/ticket/66633
Summary
Generate hash-based element classes and scope their counters to the innermost Query block. This keeps styles on markup outside client-side pagination stable while retaining unique classes for duplicate blocks.
Testing
rtk proxy php C:\Users\arkop\wordpress-develop\vendor\phpunit\phpunit\phpunit --configuration phpunit.xml.dist tests/phpunit/tests/block-supports/wpRenderElementsSupport.php(16 tests, 23 assertions)rtk proxy php C:\Users\arkop\wordpress-develop\vendor\phpunit\phpunit\phpunit --configuration phpunit.xml.dist tests/phpunit/tests/block-supports/wpRenderElementsSupportStyles.php(9 tests, 10 assertions)Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-6
Used for: Ticket investigation, implementation, and regression tests; the final diff and local checks were reviewed in the workspace.<!--
Hi there! Thanks for contributing to WordPress!
Pull Requests in this GitHub repository must be linked to a ticket in the WordPress Core Trac instance (https://core.trac.wordpress.org), and are only used for code review. No pull requests will be merged on GitHub.
See the WordPress Handbook page on using PRs for Code Review for more information: https://make.wordpress.org/core/handbook/contribute/git/github-pull-requests-for-code-review/
Do not open pull requests for security vulnerabilities. Please follow the responsible disclosure policy instead: https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/
If this is your first time contributing, you may also find reviewing these guides first to be helpful:
-->
Trac ticket:
Use of AI Tools
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.