[wp-trac] [WordPress Trac] #44598: Main logo won't update when deleted and reuploaded with the same file name

WordPress Trac noreply at wordpress.org
Sat Mar 21 02:25:24 UTC 2026


#44598: Main logo won't update when deleted and reuploaded with the same file name
------------------------------------------------+--------------------------
 Reporter:  mimoho                              |       Owner:  (none)
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
                                                |  Review
Component:  Customize                           |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  dev-feedback close has-screenshots  |     Focuses:
------------------------------------------------+--------------------------
Changes (by gaisma22):

 * keywords:  needs-testing => dev-feedback close has-screenshots


Comment:

 == Reproduction Report

 === Environment
 - WordPress: 7.0-beta3-61849-src
 - PHP: 8.3.30
 - Server: nginx/1.29.5
 - Database: MySQL 8.4.8
 - Browser: Brave
 - OS: Ubuntu
 - Theme: Twenty Twenty-One (twentytwentyone)
 - MU Plugins: None
 - Plugins: None (first test), Hello Dolly 1.7.2 (second test)

 === Steps taken
 1. Navigated to Appearance -> Customize -> Site Identity.
 2. Uploaded first logo (logo.gif - GIF image) via "Select logo".
    Skipped cropping.
 3. Confirmed logo displayed correctly in both Customizer preview
    and frontend at http://localhost:8889.
 4. Navigated to Media Library and permanently deleted the uploaded logo.
 5. Returned to Appearance -> Customize -> Site Identity.
 6. Clicked "Change logo" and uploaded second logo.gif (same filename,
    visually different GIF image). Skipped cropping.
 7. Clicked Publish in Customizer.
 8. Visited frontend at http://localhost:8889 and performed hard
    refresh (Ctrl+Shift+R).
 Result: ❌ Bug is not occurring

 === Expected behavior
 Based on the ticket description, after permanently deleting the first logo
 and reuploading a different image with the same filename, the old logo
 should still appear on the frontend instead of the new one, even after
 page refresh.

 === Additional Notes
 1. Tested first in a clean environment with no plugins active.
 2. Environment was reset and the test was repeated with Hello Dolly
    1.7.2 active.
 3. In both tests, the new logo displayed correctly on the frontend
    immediately after publishing and hard refreshing.
 4. WordPress 7.0 handles same-filename logo replacement correctly
    with no caching issues observed.
 5. Removing **`needs-testing`** as the bug does not reproduce in WordPress
    7.0-beta3-61849-src. Adding **`close`** - the issue appears fixed in a
    previous release.

 === Screenshots/Screencast with results

 **First logo:**

 [[Image(https://i.ibb.co/VPXLzZd/04-second-logo-uploaded-customizer.png)]]

 [[Image(https://i.ibb.co/wF7QpxVt/05-second-logo-frontend-no-bug.png)]]

 **Second logo (with same filename):**

 [[Image(https://i.ibb.co/KjK59jKF/01-first-logo-uploaded-customizer.png)]]

 [[Image(https://i.ibb.co/tp73LrfD/02-first-logo-frontend.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44598#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list