Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27218 closed defect (bug) (fixed)

Difficult to select untitled pages in the parent selection box

Reported by: latz's profile Latz Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.8.1
Component: Posts, Post Types Keywords: has-patch commit
Focuses: ui, administration Cc:

Description (last modified by johnbillion)

If you've created a page with no title and want to write another page with the first page (with no title) as the parent page you only find an empty line in the parent selection box. (image 1)

This will definitely become a problem if you have more than one page without a title because there is nothing that allows you to distinguish the various pages in the parent selection box. (image 2)

I've got two solution proposals:
a) Add a checkbox "Hide title"
b) Add an input text field "Internal name" when WordPress detects an empty title while creating the slug.

I'd prefer a).

I marked this ticket as "defect" instead of "enhancement" since it keeps me from using WordPress the way I want to use it.

Attachments (3)

parents.png (8.5 KB) - added by Latz 10 years ago.
parents2.png (8.5 KB) - added by Latz 10 years ago.
27218.patch (670 bytes) - added by SergeyBiryukov 10 years ago.

Download all attachments as: .zip

Change History (8)

@Latz
10 years ago

@Latz
10 years ago

#1 @johnbillion
10 years ago

  • Description modified (diff)
  • Keywords needs-patch ui-feedback added
  • Milestone changed from Awaiting Review to Future Release

I think both of the proposed solutions fall out of scope for core. Publishing pages without titles is exceptionally uncommon, and support for it depends very much on the theme.

The solution would be to display the post ID in the dropdown if the title is empty (e.g. #123).

#2 @Latz
10 years ago

You're right John, displaying the ID would be the best solution. Maybe the ID should be enclosed by parentheses to point out that it's not the actual title or that, in an edge case, the user himself uses titles like #123.

My proposals better fit in a plugin which you can install if you use empty page titles a lot.

#3 @SergeyBiryukov
10 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added
  • Keywords has-patch commit added; needs-patch ui-feedback removed
  • Milestone changed from Future Release to 3.9

27218.patch displays #123 (no title), which is consistent with [24560].

This ticket was mentioned in IRC in #wordpress-dev by Latz. View the logs.


10 years ago

#5 @SergeyBiryukov
10 years ago

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

In 27360:

Display empty-titled pages properly in Walker_PageDropdown, like we do in Walker_Page.

fixes #27218.

Note: See TracTickets for help on using tickets.