Skip to content

Commit 75b15ec

Browse files
committed
Update class-wp-posts-list-table.php
1 parent 1dad4e6 commit 75b15ec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/wp-admin/includes/class-wp-posts-list-table.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,8 @@ public function column_title( $post ) {
11461146
* @param string $separator The string used to indicate hierarchy level. Default '— '.
11471147
* @param WP_Post $post The current post object.
11481148
*/
1149-
$separator = str_repeat( apply_filters( 'post_title_child_separator', '— ', $post ), $this->current_level );
1149+
$separator = apply_filters( 'post_title_child_separator', '— ', $post );
1150+
$pad = str_repeat( $separator, $this->current_level );
11501151
echo '<strong>';
11511152

11521153
$title = _draft_or_post_title();
@@ -1155,13 +1156,13 @@ public function column_title( $post ) {
11551156
printf(
11561157
'<a class="row-title" href="%s">%s%s</a>',
11571158
get_edit_post_link( $post->ID ),
1158-
$separator,
1159+
$pad,
11591160
$title
11601161
);
11611162
} else {
11621163
printf(
11631164
'<span>%s%s</span>',
1164-
$separator,
1165+
$pad,
11651166
$title
11661167
);
11671168
}

0 commit comments

Comments
 (0)