Skip to content

Update PHP linter and fix issues.#1201

Merged
mauteri merged 5 commits intodevelopfrom
fix-phpcs
Oct 13, 2025
Merged

Update PHP linter and fix issues.#1201
mauteri merged 5 commits intodevelopfrom
fix-phpcs

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Oct 13, 2025

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Oct 13, 2025

PR Summary

  • Improved Code Readability in maybe_flush_rewrite_rules Method
    The update done in the conditions of maybe_flush_rewrite_rules method of the class-settings.php has improved readability by making it easier to understand the various logical checks. In simpler terms, we've made some changes that make our own computer code easier to understand and follow.

  • Optimized Data Retrieval in Unit Test
    In the unit test called class-test-export.php, the way we retrieve certain types of data (specifically 'metadata' about posts) has been modified to be more efficient. Previously, it could retrieve multiple results when we only needed one - now it ensures it only retrieves a single, relevant result. This speeds up our testing process, making it more efficient.

@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the recent changes for PR#1201 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri merged commit a0eb82e into develop Oct 13, 2025
17 checks passed
@mauteri mauteri deleted the fix-phpcs branch October 13, 2025 19:45
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.

1 participant