Making WordPress.org

Opened 6 months ago

Last modified 6 months ago

#7364 new defect (bug)

Fix missing alt for WordPress.tv video images

Reported by: kau-boy's profile 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)

7364.patch (492 bytes) - added by Kau-Boy 6 months ago.

Download all attachments as: .zip

Change History (3)

@Kau-Boy
6 months ago

This ticket was mentioned in Slack in #meta by kau-boy. View the logs.


6 months ago

This ticket was mentioned in Slack in #meta by courtneyengle. View the logs.


6 months ago

Note: See TracTickets for help on using tickets.