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
This commit is contained in:
parent
d30cc780fd
commit
9668bc0839
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue