Commit 9668bc0839 for wordpress.org

commit 9668bc08392d132eaf63036147fc809536bc5f84
Author: Peter Wilson <wilson@peterwilson.cc>
Date:   Tue Oct 15 23:41:16 2024 +0000

    Networks and Sites: Relocate defintion of `absint()`.

    Relocate the defintion of `absint()` to `load.php` to allow it to be available to `get_current_blog_id()` and `get_current_network_id()`. These functions may be called by caching drop-ins, prior to the loading of `functions.php`.

    Props flixos90, geekofshire, johnjamesjacoby, sergeybiryukov, wonderboymusic.
    Fixes #40682.


    Built from https://develop.svn.wordpress.org/trunk@59242


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

diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 039339edb8..a5720fc10a 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -5476,18 +5476,6 @@ function dead_db() {
 	wp_die( '<h1>' . __( 'Error establishing a database connection' ) . '</h1>', __( 'Database Error' ) );
 }

-/**
- * Converts a value to non-negative integer.
- *
- * @since 2.5.0
- *
- * @param mixed $maybeint Data you wish to have converted to a non-negative integer.
- * @return int A non-negative integer.
- */
-function absint( $maybeint ) {
-	return abs( (int) $maybeint );
-}
-
 /**
  * Marks a function as deprecated and inform when it has been used.
  *
diff --git a/wp-includes/load.php b/wp-includes/load.php
index 9803590fc1..5066cd16ee 100644
--- a/wp-includes/load.php
+++ b/wp-includes/load.php
@@ -1428,6 +1428,18 @@ function is_multisite() {
 	return false;
 }

+/**
+ * Converts a value to non-negative integer.
+ *
+ * @since 2.5.0
+ *
+ * @param mixed $maybeint Data you wish to have converted to a non-negative integer.
+ * @return int A non-negative integer.
+ */
+function absint( $maybeint ) {
+	return abs( (int) $maybeint );
+}
+
 /**
  * Retrieves the current site ID.
  *
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c8db80d52b..f5139e60f6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.7-beta3-59241';
+$wp_version = '6.7-beta3-59242';

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