[wp-meta] [Making WordPress.org] #7192: Images on the WordPress Planet site are not being displayed due to the absence of the URL attribute.

Making WordPress.org noreply at wordpress.org
Thu Aug 10 07:17:12 UTC 2023


#7192: Images on the WordPress Planet site are not being displayed due to the
absence of the URL attribute.
--------------------------------+-----------------------
 Reporter:  utsav72640          |       Owner:  (none)
     Type:  defect (bug)        |      Status:  assigned
 Priority:  lowest              |   Milestone:
Component:  WordPress.org Site  |  Resolution:
 Keywords:                      |
--------------------------------+-----------------------

Comment (by dd32):

 Replying to [comment:5 dd32]:
 > This appears to be an issue in the `planet` python app, it looks like
 it's choking on the large `<img` generated by current WordPress versions.
 >
 > Eg, `<img />` for a tavern article is generated from this:
 > {{{
 > <img decoding="async" fetchpriority="high" width="1856" height="388" ...
 data-image-
 meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}"
 data-image-title="Screen-Shot-2023-08-09-at-5.24.43-PM" data-image-
 description="" data-image-caption="" data-medium-
 file="https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08
 /Screen-Shot-2023-08-09-at-5.24.43-PM-300x63.png" data-large-
 file="https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08
 /Screen-Shot-2023-08-09-at-5.24.43-PM-500x105.png"
 src="https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08
 /Screen-Shot-2023-08-09-at-5.24.43-PM.png" alt="" class="wp-image-147652"
 srcset="https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08
 /Screen-Shot-2023-08-09-at-5.24.43-PM.png 1856w ,
 https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08/Screen-
 Shot-2023-08-09-at-5.24.43-PM-300x63.png 300w ,
 https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08/Screen-
 Shot-2023-08-09-at-5.24.43-PM-500x105.png 500w ,
 https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08/Screen-
 Shot-2023-08-09-at-5.24.43-PM-768x161.png 768w ,
 https://149611589.v2.pressablecdn.com/wp-content/uploads/2023/08/Screen-
 Shot-2023-08-09-at-5.24.43-PM-1536x321.png 1536w " sizes="(max-width:
 1856px) 100vw, 1856px" />
 > }}}

 Ended up doing some digging.. Something is broken in it's HTML
 parsing/sanitizing. Thankfully it errs on the side of caution when it
 encounters issues and returns the known-good data.

 It parsed that as:
 {{{
 <img decoding="async" fetchpriority="high" width="1856" height="388" ...
 data-image-meta="{" aperture />
 }}}

 Ultimately generating this, with the only valid attributes:
 {{{
 <img width="1856" height="388" />
 }}}

 I'm going to make a minor adjustment and see if it resolves it, probably
 won't take effect until an affected feed makes a new post.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7192#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list