Skip to content

Publish live by default, and move Draft sites to Published once (1.5.1) - #24

Merged
henry-mosh merged 2 commits into
mainfrom
feat/publish-live-by-default
Dec 3, 2026
Merged

henry-mosh merged 2 commits into
mainfrom
feat/publish-live-by-default

Conversation

@henry-mosh

@henry-mosh henry-mosh commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • New installs start with Maximum status at Published.
  • Updating moves a site on Draft to Published once. It runs before anything else on 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.
  • The owner's later choice stands. Set back to Draft, it stays there. Pending review is never touched.
  • Drafts already in WordPress are not published by the update.
  • A push that names no status never goes live by itself. It used to take Maximum status as its own. Now a new post is a draft and an existing one keeps its status, up to the cap. CiteCue always names one; another tool that relied on Published has to send publish.
  • Uninstalling removes the new option and the notice's dismissal.

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.txt and the version lines.

Testing

  • The core, stubbed-WooCommerce and multisite suites pass, and so does the full suite against a real WooCommerce (11.3.1). phpcs is clean and the zip builds.
  • Correction: this first said the WooCommerce suite passed, but that run used the stub, which skips the product tests. CI ran them and they failed on pushes with no status; the second commit fixes that.
  • On a throwaway WordPress over HTTP, a signed publish push on 1.5.0 answers draft and the page gives visitors a 401. After updating to 1.5.1, with the push as the first request, it answers publish and 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

henry-idingo and others added 2 commits December 3, 2026 16:16
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>
@henry-mosh
henry-mosh merged commit 1c285d1 into main Dec 3, 2026
8 checks passed
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