Skip to content

Commit

Permalink
Fixes #63 - change in line with WordPress TRAC 37794
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jan 17, 2017
1 parent 046fabd commit e43b004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oik.php
Expand Up @@ -274,8 +274,8 @@ function oik_admin_bar_menu( &$wp_admin_bar ) {
if ( $replace ) {
$node = $wp_admin_bar->get_node( 'my-account' );
$current_user = wp_get_current_user();
$howdy = sprintf( __('Howdy, %1$s'), $current_user->display_name );
//bw_trace2( $node, "node" );
$howdy = sprintf( __('Howdy, %s'), $current_user->display_name );
//bw_trace2( $node, "node: $howdy" );
$replace = $replace . " " . $current_user->display_name;
if ( $node && $node->title ) {
$node->title = str_replace( $howdy, $replace, $node->title );
Expand Down

0 comments on commit e43b004

Please sign in to comment.