[wp-trac] [WordPress Trac] #20602: Replace media

WordPress Trac wp-trac at lists.automattic.com
Wed May 2 16:54:21 UTC 2012


#20602: Replace media
--------------------------+------------------------------
 Reporter:  PorridgeBear  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.3.1
 Severity:  major         |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+------------------------------

Comment (by scribu):

 The problem here is that you're hard-coding IDs inside theme templates.
 Once you do that, the theme is tied to that database; you can't re-use it
 on other sites.

 Instead, a plugin could allow you to register image slots, similar to
 register_sidebar() or register_nav_menu().

 Actually, now that I think of it, my Front-end Editor plugin already
 allows something like this:

 https://github.com/scribu/wp-front-end-editor/wiki/Editing-theme-images

 There is a case to be made to bring something like that into Core, but
 that's another ticket, IMO.

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


More information about the wp-trac mailing list