Make WordPress Core

Ticket #39106: 39106.patch

File 39106.patch, 1.1 KB (added by rebasaurus, 5 years ago)

Adding filter 'post_title_child_separator'

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

    diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
    index 5587e8ecf4..c71bbec871 100644
    a b class WP_Posts_List_Table extends WP_List_Table { 
    10091009                        echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></div>\n";
    10101010                }
    10111011
    1012                 $pad = str_repeat( '&#8212; ', $this->current_level );
     1012                $pad = str_repeat( apply_filters( 'post_title_child_separator', '&#8212; ' ), $this->current_level );
    10131013                echo '<strong>';
    10141014
    10151015                $title = _draft_or_post_title();
    class WP_Posts_List_Table extends WP_List_Table { 
    10201020                                get_edit_post_link( $post->ID ),
    10211021                                /* translators: %s: Post title. */
    10221022                                esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
    1023                                 $pad,
     1023                                esc_html( $pad ),
    10241024                                $title
    10251025                        );
    10261026                } else {
    10271027                        printf(
    10281028                                '<span>%s%s</span>',
    1029                                 $pad,
     1029                                esc_html( $pad ),
    10301030                                $title
    10311031                        );
    10321032                }