Don't run the Title Generation Feature on attachments#1004
Merged
iamdharmesh merged 1 commit intodevelopfrom Sep 11, 2025
Merged
Don't run the Title Generation Feature on attachments#1004iamdharmesh merged 1 commit intodevelopfrom
iamdharmesh merged 1 commit intodevelopfrom
Conversation
iamdharmesh
approved these changes
Sep 11, 2025
Member
iamdharmesh
left a comment
There was a problem hiding this comment.
Looks good and tests well. Thanks for fixing this @dkotter
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.
Description of the Change
Right now the
Generate Titlesbutton will show if you land on the attachment edit screen. At the moment, clicking the button won't work as expected so this PR removes that from showing if the post type is attachment. Also does some minor cleanup to the code to avoid nested conditionals.We could look at adding a new setting to the Title Generation Feature to allow someone to choose which post types should work, similar to a few of our other Features but wanted a quicker fix for now.
Closes #995
How to test the Change
Changelog Entry
Credits
Props @dkotter
Checklist: