WordPress.org

Make WordPress Core

Ticket #19490: filter-howdy.diff

File filter-howdy.diff, 537 bytes (added by griffinjt, 3 years ago)

Apply targeted filter to 'Howdy' text

  • wp-includes/admin-bar.php

     
    138138                return; 
    139139 
    140140        $avatar = get_avatar( $user_id, 16 ); 
    141         $howdy  = sprintf( __('Howdy, %1$s'), $current_user->display_name ); 
     141        $howdy  = sprintf( __('%1$s, %2$s'), apply_filters('edit_howdy_text', 'Howdy'), $current_user->display_name ); 
    142142        $class  = empty( $avatar ) ? '' : 'with-avatar'; 
    143143 
    144144        $wp_admin_bar->add_menu( array(