WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#1835 closed defect (bug) (fixed)

no link to get back to post from subpost if post title is blank

Reported by: stevecooley Owned by: westi
Milestone: 2.3 Priority: normal
Severity: minor Version: 1.6
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

If you create a post with no title, and you import a photo, when you view the post and click on the photo, there is text that says "Belongs to ..." and there's no link back to the post.

Attachments (2)

1835.diff (987 bytes) - added by johnbillion 8 years ago.
Patch to display 'Previous Post' or 'Next Post' when no post title is specified
1835.2.diff (1023 bytes) - added by johnbillion 8 years ago.
Same as patch 1835 but with full path from root

Download all attachments as: .zip

Change History (9)

comment:1 @matt9 years ago

  • Milestone changed from 1.6 to 2.1

This is a general problem with previous and next links.

comment:2 @Nazgul9 years ago

  • Keywords needs-patch added

This begs the question: Should it even be allowed to publish a post without a title?

comment:3 @matt8 years ago

  • Milestone changed from 2.1 to 2.2

@johnbillion8 years ago

Patch to display 'Previous Post' or 'Next Post' when no post title is specified

comment:4 @johnbillion8 years ago

  • Keywords has-patch added; needs-patch removed

I've written a patch for previous_post_link and next_post_link so the words Previous Post and Next post, respectively, are displayed when a post has no title.

Re: comment 2, I don't think it is necessary to force users to specify a post title.

@johnbillion8 years ago

Same as patch 1835 but with full path from root

comment:5 @foolswisdom8 years ago

  • Milestone changed from 2.2 to 2.3

comment:6 @westi8 years ago

  • Owner changed from anonymous to westi
  • Status changed from new to assigned

Patch looks good.

Needs so I18N adding as well.

comment:7 @westi8 years ago

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

(In [6082]) Ensure (next|previous)_post_link always have some content even when the post title is blank. Fixes #1835, props johnbillion

Note: See TracTickets for help on using tickets.