User story: N/A
We have this:
hascaption (including hascaption:*) currently returns all files that ever had a caption, even if that caption has been removed via reversion or edit.
As an example, see the history of https://commons.wikimedia.org/wiki/File:ESRB_2013_Mature.svg as an example. Despite no longer having captions, it shows up in the results for this hascaption search
We want this:
The index needs to properly updated when data is removed, and hascaption/inlabel/incaption need to reflect those changes.
Screenshots (if possible):
During development, please test the following:
- Test this feature while logged in AND logged out
- Test this feature on at least one mobile browser
- Test that this feature works on the file page AND the Add Data step on UploadWizard (if applicable, some features only exist on one or the other)