Ticket #19490: filter-howdy.diff

File filter-howdy.diff, 537 bytes (added by griffinjt, 18 months ago)

Apply targeted filter to 'Howdy' text

Line 
1Index: wp-includes/admin-bar.php
2===================================================================
3--- wp-includes/admin-bar.php   (revision 19578)
4+++ wp-includes/admin-bar.php   (working copy)
5@@ -138,7 +138,7 @@
6                return;
7 
8        $avatar = get_avatar( $user_id, 16 );
9-       $howdy  = sprintf( __('Howdy, %1$s'), $current_user->display_name );
10+       $howdy  = sprintf( __('%1$s, %2$s'), apply_filters('edit_howdy_text', 'Howdy'), $current_user->display_name );
11        $class  = empty( $avatar ) ? '' : 'with-avatar';
12 
13        $wp_admin_bar->add_menu( array(