[wp-trac] [WordPress Trac] #39461: default-preset option for custom background cannot be set by default

WordPress Trac noreply at wordpress.org
Sun Jan 8 19:43:53 UTC 2017


#39461: default-preset option for custom background cannot be set by default
--------------------------------+--------------------
 Reporter:  cristian-ungureanu  |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.7.2
Component:  Customize           |     Version:  4.7
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:
--------------------------------+--------------------

Comment (by celloexpressions):

 Thanks for looking into this @cdog. Do you think it would be possible for
 the the various properties to default to the defaults associated with the
 default preset that the theme sets? For example, if a theme does this:
 {{{
 add_theme_support( 'custom-background', array(
         'default-image'  => get_template_directory_uri() . '/img/islemag-
 background.jpg',
         'default-preset' => 'fill',
 ));
 }}}

 Could the default background-size, etc. be set automatically?

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


More information about the wp-trac mailing list