Commit e9fd8297 authored by John James Jacoby's avatar John James Jacoby
Browse files

Only filter avatars on directory pages.

parent e907aa13
Pipeline #1265 skipped
......@@ -330,7 +330,9 @@ function wp_user_directory_displayed_user_fullname() {
* @return array
*/
function wp_user_directory_filter_avatar_classes( $classes = array() ) {
unset( $classes['avatar'] );
if ( is_page( wp_get_user_directory_slug() ) ) {
unset( $classes['avatar'] );
}
return $classes;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment