Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#10715 closed defect (bug) (fixed)

Press This: Can't post without title

Reported by: christoph179's profile christoph179 Owned by: noel's profile noel
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: Press This Keywords: has-patch
Focuses: Cc:

Description

It is not possible to save or publish a post with an empty title using the press this-bookmarklet.

The post_content-field on line 48 is empty before calling wp_insert_post() on line 51, resulting in an empty_content error when the title-field is left empty.

Attachments (2)

patch.diff (654 bytes) - added by christoph179 15 years ago.
press-this-patch.patch (1.3 KB) - added by noel 14 years ago.
This fixes titles and also the order of delete and die

Download all attachments as: .zip

Change History (8)

@christoph179
15 years ago

#1 @scribu
15 years ago

  • Keywords has-patch added; posting removed
  • Milestone changed from Unassigned to 2.9

@noel
14 years ago

This fixes titles and also the order of delete and die

#2 @markjaquith
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12361]) Allow for saving Press This entries with blank titles. props noel, christoph179. fixes #10715

#3 @markjaquith
14 years ago

(In [12370]) Reverting [12361] due to logic issue. see #10715

#4 @markjaquith
14 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @markjaquith
14 years ago

The logic issue is that if it is an error, it can't also be a post ID.

#6 @azaozz
14 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [12371]) Press This empty title fix, props noel, see #11390, fixes #10715

Note: See TracTickets for help on using tickets.