• Resolved qtranslateteam

    (@qtranslateteam)


    Please, take a look at the following line in /wp-admin/admin-header.php:

    $admin_title = get_bloginfo( 'name' );

    The value of name is fetched with the purpose of display in the title attribute, which most of browsers show as a page tab label.

    Function get_bloginfo has the second argument, with default value ‘raw’. Alternative value can be ‘display’:

    $admin_title = get_bloginfo( 'name', 'display' );

    which seems more applicable in this case.

    Similar problem is in /wp-admin/customize.php:

    echo sprintf( __( 'You are customizing %s' ), '<strong class="theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' );

    Is this an overlook, or there is a deep reason for this? It does not make difference in the most of the cases, but ‘display’ argument provides additional filters inside get_bloginfo, which allow to customize the value, while ‘raw’ argument does not.

    Thank you very much.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_bloginfo argument in admin-header.php’ is closed to new replies.