[wp-trac] [WordPress Trac] #21241: Default value for background_image_thumb fails when background_image URL includes a percent sign

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 12 16:49:14 UTC 2012


#21241: Default value for background_image_thumb fails when background_image URL
includes a percent sign
--------------------------+-----------------------------
 Reporter:  cfinke        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Appearance    |    Version:  3.4.1
 Severity:  minor         |   Keywords:  has-patch
--------------------------+-----------------------------
 If the background_image theme mod is set to a URL that includes a percent
 sign, and if background_image_thumb is not set, the code that uses
 background_image as the default setting for background_image_thumb fails
 due to get_theme_mod interpreting the percent signs in the
 background_image URL as sprintf conversion specifications.

 I don't think that this situation can occur in a vanilla WordPress install
 (but that might be host-specific), but it's entirely possible that a
 plugin would set background_image to a URL including a percent sign.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21241>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list