Fix author avatar fallback logic to prevent showing admin avatar for users without profile photos
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia individuando il rendering dell’avatar dell’autore nei post-meta del tema, utilizzato nei layout dei singoli post, nelle griglie dell’archivio del blog e negli elenchi dei risultati di ricerca. Traccia il modo in cui l’ID utente o l’e-mail dell’autore del post viene passato al recupero dell’avatar di WordPress, quindi verifica che, in tutti e tre i contesti, per le foto mancanti venga utilizzato il fallback di WordPress configurato anziché l’immagine di un altro utente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Impact: 65 · Confidence: 90 · Complexity: 30
Description
Problem: When displaying post meta with author avatars on single posts, archive pages, or search results, authors who do not have an uploaded profile photo or Gravatar are incorrectly displaying the site administrator's profile picture instead of a generic default avatar or blank fallback.
Desired Behavior: When author avatar rendering is enabled in theme meta controls, each author's post metadata should retrieve their own Gravatar/profile picture by their user email. If no photo exists, it should fall back to the default WordPress Gravatar setting or a neutral fallback icon rather than defaulting to the site administrator user's avatar.
Acceptance Criteria:
- Verify post author avatar fetching strictly uses the post author's user ID / email.
- Ensure users without a custom avatar receive standard WP fallback avatars (e.g. Mystery Person or Default Blank) and never inherit another user's (such as the admin's) profile image.
- Verify across single post layout, blog archive grids, and search result listing pages.
Customer Context
The customer (a Neve Pro user) reported that on articles where authors haven't uploaded a profile picture, the admin user's photo is being displayed in article metadata across single posts, archive pages, and search results.
Root Cause Analysis
The customer's underlying issue is that the theme's post meta author avatar rendering logic falls back to fetching/rendering the administrator's profile image when a post author lacks an uploaded Gravatar or profile photo. The theme should retrieve avatar graphics explicitly based on the post author's email/ID, and rely on standard WordPress default Gravatar fallbacks rather than defaulting or resolving to user ID 1 / admin user metadata.
Reasoning
The customer is reporting a bug/unexpected behavior where single posts, archive pages, and search result pages display the administrator's profile avatar for post authors who have not uploaded a custom profile picture/Gravatar, instead of falling back to a default avatar or the user's generic Gravatar. Upon searching the issue tracking repositories (Codeinwp/neve and Codeinwp/neve-pro-addon) and theme documentation, there is no option or current open issue addressing wrong avatar fallback behavior for post authors. This is a actionable feature request/bug fix for author avatar fallback logic in Neve.
Source: HelpScout #3453459364
Generated by feature-request-triage workflow (ID: feature-request-triage_6aab11d931f269.49024589)
- Lingua principale
- PHP
- Stelle
- 307
- Fork
- 88
- Merge medio
- 1g 6h
- PR unite (30g)
- 10
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Codeinwp/neve
-
bug-report bug-report-triage customer report regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
feature-request-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
feature-request-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
Elementor single-color endpoint returns global_not_found for Neve palette colorsForse già presa @girishpanchal30 l’ha presa 3 giorni fa. Apertabug-report bug-report-triage customer report regression
Codeinwp/neve#4633 · 12 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
customer report feature-request-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Codeinwp/neve
Issue simili
-
domain/crm-after-sales Platform(Default) priority/high
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
component/code document/settings documents duplicate integration/wc/pages/cart integration/woocommerce mod* mod/b* mod/c* mod/d* mod/e* mod/i* product/pro status/needs-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elementor/elementor#37475 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno