[wp-trac] [WordPress Trac] #31689: Media player not working with 302 redirects

WordPress Trac noreply at wordpress.org
Sun Mar 29 00:03:41 UTC 2026


#31689: Media player not working with 302 redirects
-------------------------------------------------+-------------------------
 Reporter:  hlashbrooke                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:  4.1.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-screenshots dev-   |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by gaisma22):

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


Comment:

 == Reproduction Report

 === Environment
 - WordPress: 7.0-beta6-62085-src
 - PHP: 8.3.30
 - Server: nginx/1.29.7
 - Database: MySQL 8.4.8
 - Browser: Brave
 - OS: Ubuntu
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None
 - Plugins: None (first test), Classic Editor 1.6.7 (second test)

 === Steps taken
 1. Created a new page and added an Audio block.
 2. Clicked Insert from URL and pasted a OneDrive
    public share URL (302 redirect to an audio file).
 3. Audio player appeared but showed **`0:00 / 0:00`** -
    no duration, controls do nothing.
 4. Published the page and checked the frontend.
    Same result.
 5. Reset environment. Activated Classic Editor.
 6. Created a new page. Clicked Add Media >
    Insert from URL with the same OneDrive URL.
    Rendered as a plain HTML link, no player.
 7. Switched to Text/Code view and inserted:
    **`[audio src="onedrive-url"]`**
    Frontend showed the URL as a plain link, no player.
 🐞 Bug is occurring

 === Expected behavior
 A OneDrive public share URL (302 redirect) should load and play correctly
 in the WordPress audio player in both the block editor and Classic Editor.

 === Additional Notes
 1. Right-clicking the audio block and opening the URL
    directly in a new tab confirms the OneDrive URL is
    valid and accessible - the player just can't
    resolve the redirect.
 2. Behavior consistent with comment #2 by @desrosj.
    Bug still reproduces on 7.0-beta6.


 === Screenshots/Screencast with results

 **Block Editor:**

 [[Image(https://i.ibb.co/pBvxKGmM/01-block-editor.png)]]

 [[Image(https://i.ibb.co/0Rvv4SFD/02-block-frontend.png)]]

 **Classic Editor:**

 [[Image(https://i.ibb.co/1G17mKXJ/03-classic-editor.png)]]

 [[Image(https://i.ibb.co/fzNqknMy/04-classic-frontend.png)]]

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


More information about the wp-trac mailing list