On a clean ClassicPress 2.7.0 install, opening the media uploader from the legacy Widgets screen (Appearance → Widgets) produces a broken “Upload files” tab: the styled “Select Files” button and drag-and-drop area do not render correctly, and uploading does not work. The same media modal works perfectly when opened from the post editor (e.g. Featured Image).
Reproduction
-
Fresh CP 2.7.0, stock theme, no plugins.
-
Go to Appearance → Widgets.
-
Add a Text widget (or Gallery widget) and click “Add Media” / “Add Images”.
-
The modal opens but the Upload files tab renders the bare fallback layout, and the upload image and drag drop does not work properly.
Hi,
At the widgets page I can upload and drag and drop files in the modal. It looks the same as your screenshot.
Do you also have an error in your browser Console?
Only thing that doesn’t work as expected is what happens after file is uploaded, it jumps to the Media Library tab, but the file you’ve just uploaded is not checked (marked) there. That can be improved.
All Add Media modals are being replaced with non-jQuery ones, the one in the Post and Page editor is still the “old” one.
Guido
Yes you are correct. It does get uploaded with drag and drop, But it was not getting updated in the media library tab immediately so it looked as if it was not working. Have to reload the screen again to see it, which is not very ideal at all. I uploaded the screenshots and and diagnosed the issues using Claude Opus 4.8. Claude did many tests and said the issue lies with ClassicPress. The “new” media modal screen looks less modern than the “old” media modal and me as well as Claude thought something is broken and it was not getting rendered properly, meanwhile its actually the new design. In my opinion honestly, the “old” one looks much better and works fine.
The main issues are uploaded files not shown immediately in the media library tab and also the browse link in the upload tab is not working.
Note that any version of AI will think ClassicPress is broken when (a) CP does something differently from WP and (b) you don’t expressly tell it that you are looking at ClassicPress version 2.7. Even then it might not pay attention if you don’t remind it. So-called AI really is incredibly stupid sometimes.