[wp-meta] [Making WordPress.org] #7364: Fix missing alt for WordPress.tv video images

Making WordPress.org noreply at wordpress.org
Fri Dec 8 19:40:07 UTC 2023


#7364: Fix missing alt for WordPress.tv video images
--------------------------+--------------------
 Reporter:  Kau-Boy       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:
Component:  WordPress.tv  |   Keywords:
--------------------------+--------------------
 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.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7364>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list