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

Search for array value.

parent e9fd8297
Pipeline #1266 skipped
......@@ -330,9 +330,13 @@ function wp_user_directory_displayed_user_fullname() {
* @return array
*/
function wp_user_directory_filter_avatar_classes( $classes = array() ) {
if ( is_page( wp_get_user_directory_slug() ) ) {
unset( $classes['avatar'] );
}
if ( is_page( wp_get_user_directory_slug() ) ) {
$index = array_search( 'avatar', $classes );
if ( false !== $index ) {
unset( $classes[ $index ] );
}
}
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