[wp-trac] [WordPress Trac] #40282: header_image hook doesn't update get_theme_mods()
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Mar 27 22:59:18 UTC 2017
    
    
  
#40282: header_image hook doesn't update get_theme_mods()
--------------------------+-----------------------------
 Reporter:  strarsis      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  4.7.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Related: [WordPress WP Display Header
 plugin](https://wordpress.org/plugins/wp-display-header/)
 The current header image is modified using the
 '''theme_mod_header_image''' hook.
 However, in '''get_header_image_tag(...)''' the function
 '''get_custom_header()''' returns the default header data (including the
 non-updated URLs) while '''get_header_image()''' correctly returns the new
 header image URL.
 Using '''wp_calculate_image_srcset(...)''' with the correctly returned new
 URL as '''$image_src''' argument but with the non-updated
 '''$image_meta''' from '''get_custom_header()''' no sizes/srcset
 attributes are rendered at all - just the img element with src to the full
 resolution image file URL.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40282>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list