Changeset 12103 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-user-tweaks.php
- Timestamp:
- 10/06/2022 01:52:36 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-user-tweaks.php
r10589 r12103 22 22 return $name; 23 23 }, 1, 3 ); 24 25 // Filter `get_the_author_meta()`. 26 add_filter( 'get_the_author_display_name', function( $name, $user_id ) { 27 if ( '' === $name ) { 28 $name = get_user_by( 'id', $user_id )->user_nicename; 29 } 30 31 $name = maybe_replace_blocked_user_name( $name, $user_id ); 32 33 return $name; 34 }, 1, 2 ); 24 35 25 36 // bbPress skips user filtering and does it's own
Note: See TracChangeset
for help on using the changeset viewer.