Skip to content

Settings: Post: Defaults: Use 0 instead of blank string#1145

Draft
n7studios wants to merge 1 commit into
mainfrom
set-correct-post-defaults
Draft

Settings: Post: Defaults: Use 0 instead of blank string#1145
n7studios wants to merge 1 commit into
mainfrom
set-correct-post-defaults

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

This mirrors how settings are saved when adding/editing a Page, Post or CPT in WordPress and setting Landing Page, Add a Tag and/or Member Content functionality to ‘None’ / ‘Don’t restrict’, which would store these settings as 0, not a blank string.

Required for the Abilities API / MCP schema, so we consistently use '0' when setting 'None' values on a Post's settings.

Testing

Existing tests pass.

Checklist

This mirrors how settings are saved when adding/editing a Page, Post or CPT in WordPress and setting Landing Page, Add a Tag and/or Member Content functionality to ‘None’ / ‘Don’t restrict’, which would store these settings as 0, not a blank string.
@n7studios n7studios added this to the 3.4.0 milestone Jul 24, 2026
@n7studios n7studios self-assigned this Jul 24, 2026
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.

1 participant