[wp-meta] [Making WordPress.org] #7341: Image enclosures for the photo directory feed

Making WordPress.org noreply at wordpress.org
Wed Nov 15 23:01:29 UTC 2023


#7341: Image enclosures for the photo directory feed
-----------------------------+---------------------
 Reporter:  cagrimmett       |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:
Component:  Photo Directory  |  Resolution:
 Keywords:                   |
-----------------------------+---------------------

Comment (by coffee2code):

 Seems reasonable. A lot of documentation for the tag are quite old. It
 seems adding the `enclosure` tag is all that is needed, as the existing
 output benefits users from an accessibility point of view. My only concern
 is if feed readers will duplicate the image when being viewed.

 Existing feed entry:
 {{{
 <item>
         <title>5946554960</title>
         <link>https://wordpress.org/photos/photo/5946554960/</link>

         <dc:creator><![CDATA[sharankrishna]]></dc:creator>
         <pubDate>Wed, 15 Nov 2023 14:08:54 +0000</pubDate>
         <guid
 isPermaLink="false">https://wordpress.org/photos/?post_type=photo&p=43801</guid>

         <description><![CDATA[village canal scenery.]]></description>
         <content:encoded>
         <![CDATA[
                 <figure><img width="768" height="576"
 src="https://pd.w.org/2023/11/59465549604eec406.04183112-768x576.jpg"
 class=" wp-post-image" alt="" style="margin-bottom: 10px;"
 decoding="async" />
                         <figcaption><p>village canal
 scenery.</p></figcaption>
                 </figure>
         ]]></content:encoded>
 </item>
 }}}

 Modified feed entry to include `enclosure` (which is the only change):
 {{{
 <item>
         <title>5946554960</title>
         <link>https://wordpress.org/photos/photo/5946554960/</link>

         <dc:creator><![CDATA[sharankrishna]]></dc:creator>
         <pubDate>Wed, 15 Nov 2023 14:08:54 +0000</pubDate>
         <guid
 isPermaLink="false">https://wordpress.org/photos/?post_type=photo&p=43801</guid>

         <description><![CDATA[village canal scenery.]]></description>
         <content:encoded>
         <![CDATA[
                 <figure><img width="768" height="576"
 src="https://pd.w.org/2023/11/59465549604eec406.04183112-768x576.jpg"
 class=" wp-post-image" alt="" style="margin-bottom: 10px;"
 decoding="async" />
                         <figcaption><p>village canal
 scenery.</p></figcaption>
                 </figure>
         ]]></content:encoded>
         <enclosure
 url="https://pd.w.org/2023/11/59465549604eec406.04183112-768x576.jpg"
 length="94583" type="image/jpeg" />
 </item>
 }}}

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


More information about the wp-meta mailing list