Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image tags and alt text to search #134

Merged
merged 2 commits into from
Sep 24, 2019
Merged

Conversation

helen
Copy link
Contributor

@helen helen commented Sep 19, 2019

Description of the Change

Allow image searches to search tags and alt text. This is modeled after the core function _filter_query_attachment_filenames()

Alternate Designs

n/a

Benefits

More intuitive finding of your media.

Possible Drawbacks

Slow queries. It would be a good place to suggest usage of Elasticsearch/ElasticPress if you find that this is becoming slow.

Verification Process

Tested searches for unique keywords in alt text and generated tag meta.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

See #75

This is modeled after the core function `_filter_query_attachment_filenames()`
@helen helen added this to the 1.4.0 milestone Sep 19, 2019
@jeffpaul jeffpaul added the type:enhancement New feature or request. label Sep 20, 2019
ryanwelcher
ryanwelcher previously approved these changes Sep 20, 2019
Copy link
Contributor

@ryanwelcher ryanwelcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@helen looks good to me - I just added a question.

It's key-specific anyway and was causing linting issues in Helpers.php.
@helen helen merged commit 56ca22c into develop Sep 24, 2019
@helen helen deleted the add/image-tag-meta-search branch September 24, 2019 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants