[wp-trac] [WordPress Trac] #37989: Unexpected change to media title behavior in WP 4.6.1

WordPress Trac noreply at wordpress.org
Thu Sep 8 21:01:55 UTC 2016


#37989: Unexpected change to media title behavior in WP 4.6.1
---------------------------+--------------------------
 Reporter:  arhenderson63  |       Owner:  joemcgill
     Type:  defect (bug)   |      Status:  accepted
 Priority:  normal         |   Milestone:  4.6.2
Component:  Media          |     Version:  4.6.1
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  performance
---------------------------+--------------------------

Comment (by jeremyfelt):

 It would be helpful to start building a list of filenames and expected
 titles that are based on those filenames so that we can build out tests. A
 list in tests is also being built as part of #22363 that should also be
 useful here.

 One key distinction between these tickets is that here we're worried about
 sanitizing the filename for use as the attachment's post title. In #22363,
 we're focused on sanitizing the filename for use as an actual filename.
 There will likely be some difference is how that should be handled. This
 is seen in @arhenderson63's report too, where the following is expected:

 * Upload `Acer ×freemanii 'Jeffersred' (Autumn Blaze®); 2½ in.jpg`
 * Stored filename `Acer-×freemanii-Jeffersred-Autumn-Blaze®-2½-in.jpg`
 * Attachment title `Acer ×freemanii 'Jeffersred' (Autumn Blaze®); 2½ in`

 Also worth noting is that [38294] has changed the behavior in 4.7 trunk so
 that the file extension remains as part of the attachment title. We'll
 want to fix that as well, but it may cause confusion short term with any
 tests that are written.

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


More information about the wp-trac mailing list