Make WordPress Core

Opened 19 years ago

Closed 17 years ago

#1577 closed defect (bug) (fixed)

New Hook: future_post

Reported by: skippy's profile skippy Owned by: markjaquith's profile markjaquith
Milestone: 2.1 Priority: low
Severity: normal Version: 1.5.2
Component: General Keywords: bg|has-patch bg|dev-feedback bg|2nd-opinion
Focuses: Cc:

Description

Future-dated posts should really get their own hook, for a variety of reasons.

The attached patches create a new action, 'future_post'. These patches prevent publish_post from being triggered on future-dated posts.

1.5.1.3 and 1.6 patches included.

Attachments (2)

execute-pings.patch (1.8 KB) - added by skippy 18 years ago.
functions-posts.patch (803 bytes) - added by skippy 18 years ago.

Download all attachments as: .zip

Change History (11)

#1 @matt
19 years ago

  • Milestone changed from 1.5.2 to 1.6

#2 @markjaquith
19 years ago

Can you think of anything that would break (plugins maybe?) if publish_post were not called for future-dated posts?

What are your thoughts on building pseudo-cron functionality into WP and having future-pings be handled internally?

#3 @matt
19 years ago

I would like to see psuedo-cron built-in.

#4 @duck1123
19 years ago

publish_post should still be called either on the publish time, (if using psuedo-cron) or on the first pageview after the publish date. (This may be a problem for sites that get very little traffic.)

#5 @markjaquith
19 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned
  • Version changed from 1.5.1.2 to 1.5.2

#6 @matt
18 years ago

  • Priority changed from normal to low

#7 @matt
18 years ago

  • Milestone changed from 2.0 to 2.1

#8 @ryan
18 years ago

post_status = future fixes most of this.

#9 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.