Steps to replicate the issue (include links if applicable):
- Upload a file in the file namespace
- Click "Upload a new version of this file", upload a new version
- In "File history", in the table, in the bottom row in the left column, click "delete". The URL of the link will be something like https://test.wikipedia.org/w/index.php?title=File:Novems_test_file.png&action=delete&oldimage=20230630083907%21Novems_test_file.png. As opposed to the "delete all" link which is a little higher and has a URL similar to https://test.wikipedia.org/w/index.php?title=File:Novems_test_file.png&action=delete
What happens?:
- All page history is deleted
- All file history is deleted
What should have happened instead?:
- No page history should be deleted
- Only that particular old version of the file should be deleted
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):