Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#10715 closed defect (bug) (fixed)

Press This: Can't post without title

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

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 17 years ago.
press-this-patch.patch (1.3 KB ) - added by noel 17 years ago.
This fixes titles and also the order of delete and die

Download all attachments as: .zip

Change History (8)

@christoph179
17 years ago

#1 @scribu
17 years ago

  • Keywords has-patch added; posting removed
  • Milestone Unassigned2.9

@noel
17 years ago

This fixes titles and also the order of delete and die

#2 @markjaquith
17 years ago

  • Resolutionfixed
  • Status newclosed

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

#3 @markjaquith
17 years ago

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

#4 @markjaquith
17 years ago

  • Resolution fixed
  • Status closedreopened

#5 @markjaquith
17 years ago

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

#6 @azaozz
17 years ago

  • Resolutionfixed
  • Status reopenedclosed

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

Note: See TracTickets for help on using tickets.