Skip to content

Comments

CS/QA: no need for is_null()#466

Merged
jrfnl merged 1 commit intotrunkfrom
JRF/CSQA/no-is_null
Feb 22, 2026
Merged

CS/QA: no need for is_null()#466
jrfnl merged 1 commit intotrunkfrom
JRF/CSQA/no-is_null

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Feb 22, 2026

Context

  • Improve code consistency & code quality

Summary

This PR can be summarized in the following changelog entry:

  • Improve code consistency & code quality

Relevant technical choices:

No need for a function call when a direct comparison will do. The is_null() function should generally only be used as a callback.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • N/A

No need for a function call when a direct comparison will do. The `is_null()` function should generally only be used as a callback.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 22267707828

Details

  • 6 of 7 (85.71%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 59.933%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ui/classic-editor.php 4 5 80.0%
Totals Coverage Status
Change from base Build 22267156719: 0.0%
Covered Lines: 1614
Relevant Lines: 2693

💛 - Coveralls

@jrfnl jrfnl merged commit ee2ed30 into trunk Feb 22, 2026
28 checks passed
@jrfnl jrfnl deleted the JRF/CSQA/no-is_null branch February 22, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants