This is a valid RSS feed.
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
</description>
<title>WordPress Trac</title>
^
</channel>
^
<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>WordPress Trac: Ticket #61930: size_format(): Inconsistent behaviour when zero bytes are passed</title>
<link>https://core.trac.wordpress.org/ticket/61930</link>
<description><p>
The <code>size_format()</code> function returns <code>false</code> if zero is passed as a string and returns <code>'0 B'</code> if zero is passed as an integer.
</p>
<p>
The root cause is a strict comparison when checking against zero (<code>if ( 0 === $bytes ) {</code>). If the <code>$bytes</code> parameter is passed as a string (<code>'0'</code>), the condition fails.
</p>
<p>
Proposed Fix: <code>if ( 0 === $bytes || '0' === $bytes ) {</code>
</p>
<p>
This behaviour was introduced in WP 4.6.0. Before v4.6.0, both <code>0</code> and <code>'0'</code> resulted in <code>size_format()</code> returning <code>false</code>.
</p>
</description>
<language>en-us</language>
<image>
<title>WordPress Trac</title>
<url>https://core.trac.wordpress.org/chrome/site/your_project_logo.png</url>
<link>https://core.trac.wordpress.org/ticket/61930</link>
</image>
<generator>Trac 1.2.2</generator>
<item>
<dc:creator>prbot</dc:creator>
<pubDate>Tue, 27 Aug 2024 05:18:15 GMT</pubDate>
<title>keywords set</title>
<link>https://core.trac.wordpress.org/ticket/61930#comment:1</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:1</guid>
<description>
<ul>
<li><strong>keywords</strong>
<em>has-patch</em> added
</li>
</ul>
<p>
<em>This ticket was mentioned in <a class="ext-link" href="https://github.com/WordPress/wordpress-develop/pull/7248"><span class="icon"></span>PR #7248</a> on <a class="ext-link" href="https://github.com/WordPress/wordpress-develop/"><span class="icon"></span>WordPress/wordpress-develop</a> by <a class="ext-link" href="https://profiles.wordpress.org/narenin/"><span class="icon"></span>@narenin</a>.</em>
Trac ticket: <a href="https://core.trac.wordpress.org/ticket/61930">https://core.trac.wordpress.org/ticket/61930</a>
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>narenin</dc:creator>
<pubDate>Tue, 27 Aug 2024 05:19:18 GMT</pubDate>
<title>keywords deleted</title>
<link>https://core.trac.wordpress.org/ticket/61930#comment:2</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:2</guid>
<description>
<ul>
<li><strong>keywords</strong>
<em>has-patch</em> removed
</li>
</ul>
<p>
Hi @marian1
</p>
<p>
Welcome to the Core Trac!
</p>
<p>
Thanks for the detailed information.
</p>
<p>
I have added the patch for the same.
</p>
</description>
<category>Ticket</category>
</item><item>
<dc:creator>hellofromTonya</dc:creator>
<pubDate>Mon, 16 Sep 2024 18:25:33 GMT</pubDate>
<title>version changed</title>
<link>https://core.trac.wordpress.org/ticket/61930#comment:5</link>
<guid isPermaLink="false">https://core.trac.wordpress.org/ticket/61930#comment:5</guid>
<description>
<ul>
<li><strong>version</strong>
changed from <em>6.6.1</em> to <em>4.6</em>
</li>
</ul>
<p>
Hello @marian1,
</p>
<p>
Welcome to WordPress Core's Trac.
</p>
<p>
I'm doing triage today for bugs reported on 6.6.1 or 6.6.2 (i.e. via <code>Version</code>) and then updating ticket information.
</p>
<p>
The strict comparison was introduced in <code>Version</code> 4.6 via <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)">#36635</a> / <a class="changeset" href="https://core.trac.wordpress.org/changeset/37962" title="General: Return &#34;O B&#34; when passing 0 to `size_format()`.
Props ...">[37962]</a>. Updating the <code>Version</code> to 4.6.
</p>
</description>
<category>Ticket</category>
</item>
</channel>
</rss>
If you would like to create a banner that links to this page (i.e. this validation result), do the following:
Download the "valid RSS" banner.
Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)
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: