WordPress.org

Make WordPress Core

Ticket #35774: 35774-option2.patch

File 35774-option2.patch, 926 bytes (added by ramiy, 5 years ago)

New title structure page-title separator site-name

  • wp-admin/admin-header.php

     
    3232
    3333get_admin_page_title();
    3434$title = esc_html( strip_tags( $title ) );
     35$separator = '—';
    3536
    3637if ( is_network_admin() )
    3738        $admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
     
    4142        $admin_title = get_bloginfo( 'name' );
    4243
    4344if ( $admin_title == $title )
    44         $admin_title = sprintf( __( '%1$s — WordPress' ), $title );
     45        $admin_title = sprintf( '%1$s %2$s %3$s', $title, $separator, __( 'WordPress' ) );
    4546else
    46         $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title );
     47        $admin_title = sprintf( '%1$s %2$s %3$s', $title, $separator, $admin_title );
    4748
    4849/**
    4950 * Filter the title tag content for an admin page.