[wp-trac] [WordPress Trac] #64849: Media: wp_get_image_alttext() incorrectly treats strpos() position 0 as "not found"

WordPress Trac noreply at wordpress.org
Thu Mar 12 14:08:49 UTC 2026


#64849: Media: wp_get_image_alttext() incorrectly treats strpos() position 0 as
"not found"
-------------------------------------+------------------------
 Reporter:  suhan2411                |       Owner:  joedolson
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  7.0
Component:  Media                    |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------

Comment (by pbiron):

 @suhan2411 Thanx for the report and PR.  And welcome to Trac!!!

 I've done a quick look at the PR and it looks good to me.  However, I
 won't have a chance to actually test it before 7.0-beta5 is released
 today.

 @joedolson Do you think it will be OK to commit the changes in PR after
 beta5 but before RC1?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64849#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list