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

Fix useMedia() example #304

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

Soean
Copy link
Contributor

@Soean Soean commented Mar 7, 2024

Description of the Change

Fixes the example for the useMedia() hook. Now uses media.alt_text to show the correct alt text of the media file.

Changelog Entry

Fixed - Fix example for useMedia() hook

Credits

Props @Soean

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Use `media.alt_text` to show the correct alt text of the mediafile.
Copy link
Member

@fabiankaegy fabiankaegy left a comment

Choose a reason for hiding this comment

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

Good catch :)

@fabiankaegy fabiankaegy merged commit 376e81f into 10up:develop Mar 7, 2024
1 of 2 checks passed
@Soean Soean deleted the fix-usemedia-docs branch March 7, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants