Repository navigation
Publish live by default, and move Draft sites to Published once (1.5.1) - #24
Merged
Merged
Conversation
Publish in CiteCue asks for a live page, but Maximum status started at Draft, so every first publish was kept as a draft until the owner found the setting. Maximum status now starts at Published. Every earlier version saved its defaults, so a stored Draft can't be told from a chosen one: updating moves it to Published once, with a dismissible notice that says how to go back. Pending review was never a default and is left alone, as are posts already waiting as drafts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Maximum status now starting at Published, a push without a status took the cap as its own and was published. Maximum status is a ceiling, so a new post is now a draft and an existing one keeps the status it has, up to the cap. CiteCue always names a status. The product tests, which only run against a real WooCommerce, caught it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publish in CiteCue always asks WordPress for a live page, but the plugin caps every push at Maximum status, which started at Draft in every version. So a first publish showed as published in CiteCue and then turned into "Draft in WordPress".
What changes
init, so the first push after the update already goes live. The Plugins and settings screens show a dismissible notice that says how to go back.publish.Please know before merging
Earlier versions saved their defaults, so a Draft someone chose can't be told from the default. Those sites are moved too and have to set it back. Many connected when CiteCue's connect page still said nothing would be published without their review. The notice and the readme's upgrade notice are how they find out.
Calendar posts still follow CiteCue's own "Publish live on WordPress" switch as well.
Version
1.5.1. #23 claims 1.6.0 and #20 claims 1.4.0, so whichever merges later has to merge
readme.txtand the version lines.Testing
publishpush on 1.5.0 answersdraftand the page gives visitors a 401. After updating to 1.5.1, with the push as the first request, it answerspublishand the page gives a 200. The old draft was left alone.The matching CiteCue change (badge, connect page and docs) should ship with this release or after it.
🤖 Generated with Claude Code