Commit a7f5bf47cc for wordpress.org

commit a7f5bf47ccd2fb028a1c9295d984fbcc23c72b4f
Author: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Date:   Mon Nov 30 12:33:56 2026 +0000

    Abilities API: Return `core/content-query` dates at the Unix epoch.

    The `core/content-query` ability returned `null` for a `date` or `modified` value at exactly the Unix epoch (`1970-01-01 00:00:00` GMT). `rest_parse_date()` returns `0` for that date, and the check treated it as a date that could not be parsed. The check now compares the result against `false`, the same way `core/users-query` does, so the Unix epoch is returned like any other date.

    Developed in https://github.com/WordPress/wordpress-develop/pull/16219.

    Follow-up to r64388.

    Reviewed by gziolo.

    Props jorgefilipecosta, gziolo.
    Fixes #66812.
    Built from https://develop.svn.wordpress.org/trunk@65824


    git-svn-id: http://core.svn.wordpress.org/trunk@64853 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/abilities/class-wp-abilities-content.php b/wp-includes/abilities/class-wp-abilities-content.php
index a8d9954e30..f5a7e881b1 100644
--- a/wp-includes/abilities/class-wp-abilities-content.php
+++ b/wp-includes/abilities/class-wp-abilities-content.php
@@ -1770,7 +1770,7 @@ final class WP_Abilities_Content {
 		 */
 		$date = ( $gmt ? $datetime->setTimezone( new DateTimeZone( 'UTC' ) ) : $datetime )->format( 'c' );

-		return rest_parse_date( $date ) ? $date : null;
+		return false !== rest_parse_date( $date ) ? $date : null;
 	}

 	/**
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 8ba73b2657..835eced436 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.3-alpha-65823';
+$wp_version = '7.3-alpha-65824';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.