Opened 2 years ago
Last modified 2 years ago
#7364 new defect (bug)
Fix missing alt for WordPress.tv video images
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | WordPress.tv | Keywords: | |
| Cc: |
Description
When running my local environment (using wp-env), I get the following notice:
Warning: Undefined variable $post in /var/www/html/wp-content/themes/wptv2/functions.php on line 557 Warning: Attempt to read property "post_title" on null in /var/www/html/wp-content/themes/wptv2/functions.php
This is because the $post variable is not available in the function.
Please find attached a patch using the get_the_title() function instead of $post->post_title here.
Attachments (1)
Change History (3)
This ticket was mentioned in Slack in #meta by kau-boy. View the logs.
2 years ago
This ticket was mentioned in Slack in #meta by courtneyengle. View the logs.
2 years ago
Note: See
TracTickets for help on using
tickets.