Skip to content

Update documentation for gallery_style and use_default_gallery_style filters#12060

Closed
sabernhardt wants to merge 5 commits into
WordPress:trunkfrom
sabernhardt:gallery-style-docs
Closed

Update documentation for gallery_style and use_default_gallery_style filters#12060
sabernhardt wants to merge 5 commits into
WordPress:trunkfrom
sabernhardt:gallery-style-docs

Conversation

@sabernhardt
Copy link
Copy Markdown

  • Mentions the opening div in the summary for gallery_style filter.
  • Encourages using the use_default_gallery_style filter to remove styles.
  • Adds @since annotations for both the gallery_style and use_default_gallery_style filters.

Trac 65317

Use of AI Tools: none


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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props sabernhardt, westonruter.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Test using WordPress Playground

The 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

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@sabernhardt
Copy link
Copy Markdown
Author

Changesets and their WordPress release numbers:

* trunk:
  Administration: Improve admin color scheme contrast for the editor chrome.
  Editor: add support for style states on block instances.
  Blocks: Include the offending block name in registration error notices.
pento pushed a commit that referenced this pull request Jun 3, 2026
…ters.

* Note that the `gallery_style` filter receives the opening HTML `DIV` container in addition to the default CSS.
* Point to the `use_default_gallery_style` filter as the way to remove the styles entirely.
* Add the missing `@since` changelog entries describing how the filtered markup has evolved.

Developed in #12060.
Follow-up to r16865, r27396, r46164, r61411.

Props sabernhardt, ov3rfly, westonruter.
See #64442.
Fixes #65317.


git-svn-id: https://develop.svn.wordpress.org/trunk@62455 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Jun 3, 2026
…ters.

* Note that the `gallery_style` filter receives the opening HTML `DIV` container in addition to the default CSS.
* Point to the `use_default_gallery_style` filter as the way to remove the styles entirely.
* Add the missing `@since` changelog entries describing how the filtered markup has evolved.

Developed in WordPress/wordpress-develop#12060.
Follow-up to r16865, r27396, r46164, r61411.

Props sabernhardt, ov3rfly, westonruter.
See #64442.
Fixes #65317.

Built from https://develop.svn.wordpress.org/trunk@62455


git-svn-id: http://core.svn.wordpress.org/trunk@61736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
@westonruter
Copy link
Copy Markdown
Member

Committed in r62455 (3f1fbe7)

@westonruter westonruter closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants