Opened 10 months ago
Last modified 9 months ago
#7364 new defect (bug)
Fix missing alt for WordPress.tv video images
Reported by: | Kau-Boy | 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.
9 months ago
This ticket was mentioned in Slack in #meta by courtneyengle. View the logs.
9 months ago
Note: See
TracTickets for help on using
tickets.