Ticket #4766 (reopened defect)

Opened 1 year ago

Last modified 1 year ago

publish_post action called on subsequent post edits

Reported by: YellowSwordfish Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: Administration Version: 2.3.1
Severity: normal Keywords: spam publish_post save_post
Cc:

Description

Well maybe it's intentional but surely you can't 'publish' a post more than once. I would have expected the 'publish_post' action to only be called when the post is first published. Later edits are not 'publishing'. They are handled with the 'save_post' hook.

If this is intentonal can someone explain the rationale?

Change History

08/17/07 13:06:04 changed by westi

  • status changed from new to closed.
  • resolution set to worksforme.
  • milestone deleted.

I believe this is not true on trunk now.

Changes in [5797] for #4620 changed the way post status transition actions occur.

12/06/07 01:55:52 changed by JacquesChester

  • keywords set to spam publish_post save_post.
  • status changed from closed to reopened.
  • version changed from 2.2.2 to 2.3.1.
  • resolution deleted.

This issue is not fixed as of 2.3.1. The cat2email plugin uses the publish_post action to email out posts in selected categories when a post is published. Since 2.2 it has fired every time a post is edited, leading people to accuse our site of spamming. The issue is not resolved.

12/06/07 04:22:43 changed by lloydbudd

  • milestone set to 2.5.