Archived topic
Save Button Missing on Discussion Page
2 replies · Started by Chris on April 5, 2019
Hello,
As you can see in this screenshot the save button is missing on my Discussion page.
https://www.screencast.com/t/YdxfxiMtBUJ
When I change to any other theme the button returns. I deleted all custom css and still the button is nowhere to be seen.
Any idea what is going on here?
Never mind - I figured it out - it was some code in my functions file
add_filter( 'get_avatar_url', function( $url, $id_or_email, $args ){
if ( is_email( $id_or_email ) ) {
$user = get_user_by( 'email', $id_or_email );
$user_id = $user->ID;
} else {
$user_id = $id_or_email;
}
if ( has_wp_user_avatar( $user_id ) ) {
return get_wp_user_avatar_src( $user_id );
}
return $url;
}, 10, 3);
Glad to hear you found the issue.