Skip to content

Conversation

@adamziel
Copy link
Collaborator

The previous implementation of installWordPress() relied on update_option's return value to determine if pretty permalinks were successfully enabled. However, update_option returns false when the value hasn't changed, e.g. when it already was set to what we need. This led to incorrect detection.

This PR explicitly verifies the final permalink_structure value instead of relying on implicit update_option() return.

Testing Instructions (or ideally a Blueprint)

CI

…stallation

The previous implementation of installWordPress() relied on `update_option`'s return value to determine if pretty permalinks were successfully enabled. However, `update_option` returns false when the value hasn't changed, e.g. when it already was set to what we need. This led to incorrect detection.

This change explicitly verifies the permalink structure was set by reading it back with `get_option` and comparing it to the expected value. This ensures we accurately detect whether pretty permalinks are active, regardless of whether the option already existed or was newly created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants