Skip to content

Misc fixes for WordPress-Develop 7.0 merges#75985

Open
peterwilsoncc wants to merge 8 commits intotrunkfrom
fix/75984-misc-fixes
Open

Misc fixes for WordPress-Develop 7.0 merges#75985
peterwilsoncc wants to merge 8 commits intotrunkfrom
fix/75984-misc-fixes

Conversation

@peterwilsoncc
Copy link
Contributor

What?

Miscellaneous fixes for WordPress-Develop merges during the 7.0.0 release cycle.

Anyone should feel free to push to this branch/ping me with things I've missed.

See #75984

Why?

Various code quality fixes.

How?

Code quality

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

@github-actions github-actions bot added the [Package] Block library /packages/block-library label Feb 26, 2026
@github-actions
Copy link

github-actions bot commented Feb 27, 2026

Flaky tests detected in 9ae2dad.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22467984223
📝 Reported issues:

Copy link
Contributor Author

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes on actions docs inline cc @youknowriad

@westonruter are you able to confirm I've got the sourceURL syntax for the inline styles correct.

/**
* Fires as the {{PAGE_SLUG}} screen is initialized.
*/
do_action( '{{PAGE_SLUG}}-wp-admin_init' );
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be better as a wp-admin_init-{$page_slug} so it can be documented once as a dynamic hook. Otherwise the docs parser will be full of near identical items. With generated files an approach will need to be figured out to avoid duplicate docs within the code base.

MIght also need a generic version that passes the page slug as a parameter.


// Fire init action for extensions to register routes and menu items
/**
* Fire init action for extensions to register routes and menu items.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite correct but I am having trouble figuring out the difference between page and admin page templates.

@peterwilsoncc peterwilsoncc marked this pull request as ready for review February 27, 2026 01:01
@github-actions
Copy link

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.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: peterwilsoncc <peterwilsoncc@git.wordpress.org>

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

@peterwilsoncc peterwilsoncc added the [Type] Code Quality Issues or PRs that relate to code quality label Feb 27, 2026
@peterwilsoncc peterwilsoncc changed the title Fix/75984 misc fixes Misc fixes for WordPress-Develop 7.0 merges Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block library /packages/block-library [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant