Skip to content

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented Aug 27, 2025

Code quality improvements extracted from #37.

CI checks should pass here.

CI checks should pass also for the code tested agains WordPress core in WordPress/wordpress-develop#9410.

@gziolo gziolo self-assigned this Aug 27, 2025
@gziolo gziolo added the Good First Review Optional review only label label Aug 27, 2025
@gziolo gziolo changed the title Propose filters to use with the registered ability Add code quality improvements to code comments Aug 27, 2025
@gziolo gziolo force-pushed the fix/improve-code-quality branch from 38686eb to 8e8999a Compare August 27, 2025 16:03
Copy link
Contributor

@justlevine justlevine left a comment

Choose a reason for hiding this comment

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

lgtm

(To accommodate the dual falsy false|WP_Error return values, we're gonna want to make sure that usage and docs use if ( true === $ability->has_permissions() ) and not e.g. the shorthand if ( $ability->has_permissions() ) which will also return true for a WP_Error.)

@gziolo gziolo merged commit 3ad7a38 into trunk Aug 27, 2025
15 checks passed
@gziolo gziolo deleted the fix/improve-code-quality branch August 27, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First Review Optional review only label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants