[wp-trac] [WordPress Trac] #11417: Wrong Slug Saved for Some Attachments

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 19 06:16:11 UTC 2010


#11417: Wrong Slug Saved for Some Attachments
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:  ryan            
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Media         |     Version:  2.8.4           
 Severity:  normal        |    Keywords:  has-patch tested
--------------------------+-------------------------------------------------
Changes (by miqrogroove):

  * keywords:  has-patch needs-testing => has-patch tested


Comment:

 Patch refreshed.  Fixed a minor issue where I had stepped on the empty
 if($value) checking.  11417.2.patch prefers EXIF title, then IPTC v1.1
 headline, then IPTC title, subject to availability.  Without this patch,
 WordPress only tries to read the IPTC title and then gives up.

 Numeric slugs fixed.  This was actually being caused by an obsolete IPTC
 implementation where the filename was stored in the title field.  This
 patch uses the IPTC v1.1 spec and only falls back on the IPTC title field
 as a last resort.  Also, left some training wheels on the title
 assignment, just in case, WordPress will fall back on the filename slug
 instead of numeric garbage.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11417#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list