WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 9 days ago

#39106 assigned enhancement

Make hierarchy level indicator text changeable [WP List]

Reported by: gk.loveweb Owned by:
Milestone: Future Release Priority: low
Severity: minor Version: 4.6.1
Component: Posts, Post Types Keywords: good-first-bug has-patch
Focuses: ui, administration Cc:

Description

In WP_Posts_List_Table class, dashes(—) used to indicate the hierarchy level of post item, which is not changeble by any filter, we can add a new filter to replace this string.

$pad = str_repeat( '— ', $this->current_level );

https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-posts-list-table.php#L918-L919

Source: http://wordpress.stackexchange.com/questions/248405/replace-dashes-before-title-in-page-list

Attachments (1)

39106.patch (1.1 KB) - added by rebasaurus 9 days ago.
Adding filter 'post_title_child_separator'

Download all attachments as: .zip

Change History (5)

#1 @gk.loveweb
3 years ago

  • Type changed from feature request to defect (bug)

#2 @valentinbora
13 days ago

  • Keywords good-first-bug needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Owner set to valentinbora
  • Priority changed from normal to low
  • Severity changed from normal to minor
  • Status changed from new to accepted
  • Type changed from defect (bug) to enhancement

#3 @valentinbora
11 days ago

  • Component changed from Administration to Posts, Post Types
  • Owner valentinbora deleted
  • Status changed from accepted to assigned

Thanks for the ticket @gkloveweb. I believe it makes sense to allow this to be tweakable so I've marked it accordingly.

It also seems like an easy to do change, so I've marked it as good-first-bug for new contributors to tackle.

@rebasaurus
9 days ago

Adding filter 'post_title_child_separator'

#4 @rebasaurus
9 days ago

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.