[wp-trac] [WordPress Trac] #21221: Image title and alt attribute content should be texturized.

WordPress Trac noreply at wordpress.org
Tue Jul 15 14:58:29 UTC 2025


#21221: Image title and alt attribute content should be texturized.
------------------------------------------+---------------------
 Reporter:  stephdau                      |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:
Component:  Media                         |     Version:  3.4.1
 Severity:  normal                        |  Resolution:
 Keywords:  dev-feedback has-patch close  |     Focuses:
------------------------------------------+---------------------
Changes (by joedolson):

 * keywords:  dev-feedback has-patch 2nd-opinion => dev-feedback has-patch
     close


Comment:

 Looking back over this, I fail to see any real benefit to texturizing alt
 or title attribute values here. I think there is some risk to causing
 problems by doing this, as you observe. Globally changing the values of
 attributes on sites could easily lead to problems if escaping isn't done
 properly on the client end, for example.

 I agree with closing this ticket.

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


More information about the wp-trac mailing list