Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://core.trac.wordpress.org/ticket/61930?format=rss

  1. <?xml version="1.0"?>
  2. <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  3.  <channel>
  4.    <title>WordPress Trac: Ticket #61930: size_format(): Inconsistent behaviour when zero bytes are passed</title>
  5.    <link>https://core.trac.wordpress.org/ticket/61930</link>
  6.    <description>&lt;p&gt;
  7. The &lt;code&gt;size_format()&lt;/code&gt; function returns &lt;code&gt;false&lt;/code&gt; if zero is passed as a string and returns &lt;code&gt;'0 B'&lt;/code&gt; if zero is passed as an integer.
  8. &lt;/p&gt;
  9. &lt;p&gt;
  10. The root cause is a strict comparison when checking against zero (&lt;code&gt;if ( 0 === $bytes ) {&lt;/code&gt;). If the &lt;code&gt;$bytes&lt;/code&gt; parameter is passed as a string (&lt;code&gt;'0'&lt;/code&gt;), the condition fails.
  11. &lt;/p&gt;
  12. &lt;p&gt;
  13. Proposed Fix: &lt;code&gt;if ( 0 === $bytes || '0' === $bytes ) {&lt;/code&gt;
  14. &lt;/p&gt;
  15. &lt;p&gt;
  16. This behaviour was introduced in WP 4.6.0. Before v4.6.0, both &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;'0'&lt;/code&gt; resulted in &lt;code&gt;size_format()&lt;/code&gt; returning &lt;code&gt;false&lt;/code&gt;.
  17. &lt;/p&gt;
  18. </description>
  19.    <language>en-us</language>
  20.    <image>
  21.      <title>WordPress Trac</title>
  22.      <url>https://core.trac.wordpress.org/chrome/site/your_project_logo.png</url>
  23.      <link>https://core.trac.wordpress.org/ticket/61930</link>
  24.    </image>
  25.    <generator>Trac 1.2.2</generator>
  26.    <item>
  27.      
  28.        <dc:creator>prbot</dc:creator>
  29.  
  30.      <pubDate>Tue, 27 Aug 2024 05:18:15 GMT</pubDate>
  31.      <title>keywords set</title>
  32.      <link>https://core.trac.wordpress.org/ticket/61930#comment:1</link>
  33.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:1</guid>
  34.      <description>
  35.          &lt;ul&gt;
  36.            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
  37.              &lt;em&gt;has-patch&lt;/em&gt; added
  38.            &lt;/li&gt;
  39.          &lt;/ul&gt;
  40.        &lt;p&gt;
  41. &lt;em&gt;This ticket was mentioned in &lt;a class="ext-link" href="https://github.com/WordPress/wordpress-develop/pull/7248"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;PR #7248&lt;/a&gt; on &lt;a class="ext-link" href="https://github.com/WordPress/wordpress-develop/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;WordPress/wordpress-develop&lt;/a&gt; by &lt;a class="ext-link" href="https://profiles.wordpress.org/narenin/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;@narenin&lt;/a&gt;.&lt;/em&gt;
  42. Trac ticket: &lt;a href="https://core.trac.wordpress.org/ticket/61930"&gt;https://core.trac.wordpress.org/ticket/61930&lt;/a&gt;
  43. &lt;/p&gt;
  44.      </description>
  45.      <category>Ticket</category>
  46.    </item><item>
  47.      
  48.        <dc:creator>narenin</dc:creator>
  49.  
  50.      <pubDate>Tue, 27 Aug 2024 05:19:18 GMT</pubDate>
  51.      <title>keywords deleted</title>
  52.      <link>https://core.trac.wordpress.org/ticket/61930#comment:2</link>
  53.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:2</guid>
  54.      <description>
  55.          &lt;ul&gt;
  56.            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
  57.              &lt;em&gt;has-patch&lt;/em&gt; removed
  58.            &lt;/li&gt;
  59.          &lt;/ul&gt;
  60.        &lt;p&gt;
  61. Hi @marian1
  62. &lt;/p&gt;
  63. &lt;p&gt;
  64. Welcome to the Core Trac!
  65. &lt;/p&gt;
  66. &lt;p&gt;
  67. Thanks for the detailed information.
  68. &lt;/p&gt;
  69. &lt;p&gt;
  70. I have added the patch for the same.
  71. &lt;/p&gt;
  72.      </description>
  73.      <category>Ticket</category>
  74.    </item><item>
  75.      
  76.        <dc:creator>hellofromTonya</dc:creator>
  77.  
  78.      <pubDate>Mon, 16 Sep 2024 18:25:33 GMT</pubDate>
  79.      <title>version changed</title>
  80.      <link>https://core.trac.wordpress.org/ticket/61930#comment:5</link>
  81.      <guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:5</guid>
  82.      <description>
  83.          &lt;ul&gt;
  84.            &lt;li&gt;&lt;strong&gt;version&lt;/strong&gt;
  85.                changed from &lt;em&gt;6.6.1&lt;/em&gt; to &lt;em&gt;4.6&lt;/em&gt;
  86.            &lt;/li&gt;
  87.          &lt;/ul&gt;
  88.        &lt;p&gt;
  89. Hello @marian1,
  90. &lt;/p&gt;
  91. &lt;p&gt;
  92. Welcome to WordPress Core's Trac.
  93. &lt;/p&gt;
  94. &lt;p&gt;
  95. I'm doing triage today for bugs reported on 6.6.1 or 6.6.2 (i.e. via &lt;code&gt;Version&lt;/code&gt;) and then updating ticket information.
  96. &lt;/p&gt;
  97. &lt;p&gt;
  98. The strict comparison was introduced in &lt;code&gt;Version&lt;/code&gt; 4.6 via &lt;a class="closed ticket" href="https://core.trac.wordpress.org/ticket/36635" title="#36635: defect (bug): Issue with size_format function when value is 0 (closed: fixed)"&gt;#36635&lt;/a&gt; / &lt;a class="changeset" href="https://core.trac.wordpress.org/changeset/37962" title="General: Return &amp;#34;O B&amp;#34; when passing 0 to `size_format()`.
  99. Props ..."&gt;[37962]&lt;/a&gt;. Updating the &lt;code&gt;Version&lt;/code&gt; to 4.6.
  100. &lt;/p&gt;
  101.      </description>
  102.      <category>Ticket</category>
  103.    </item>
  104. </channel>
  105. </rss>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//core.trac.wordpress.org/ticket/61930%3Fformat%3Drss

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda