MediaVerify auto update media object names #12610#997
Open
riskysnail wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves 12610
Updated the MediaVerify plugin so that it sets the media title after the
Fixmedia button is pressed.Changes
By default media objects inherit the title of the media path filename (without extension). The current behavior of the
fix_media()method changes media path filename but not the media title resulting in a mismatch.This update fixes that by automatically setting the media title to the new path filename but only if the old title matches the old path filename. This ensures that user-modified media titles are never changed accidentally by the MediaVerify tool.
Examples
Repro steps:
photoA.jpgphotoA.jpgto both of themPhoto A examplephotoA.jpgtophotoA_renamed.jpgon your filesystemOld titles:
New titles: