Autoload: Add missed @since tags to SPL shim.
See #36926. git-svn-id: https://develop.svn.wordpress.org/trunk@37637 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e6092b8b07
commit
f08e167be8
|
@ -442,6 +442,8 @@ if ( ! function_exists( 'spl_autoload_register' ) ):
|
||||||
/**
|
/**
|
||||||
* Autoloader compatibility callback.
|
* Autoloader compatibility callback.
|
||||||
*
|
*
|
||||||
|
* @since 4.6.0
|
||||||
|
*
|
||||||
* @param string $classname Class to attempt autoloading.
|
* @param string $classname Class to attempt autoloading.
|
||||||
*/
|
*/
|
||||||
function __autoload( $classname ) {
|
function __autoload( $classname ) {
|
||||||
|
@ -464,6 +466,8 @@ if ( ! function_exists( 'spl_autoload_register' ) ):
|
||||||
/**
|
/**
|
||||||
* Register a function to be autoloaded.
|
* Register a function to be autoloaded.
|
||||||
*
|
*
|
||||||
|
* @since 4.6.0
|
||||||
|
*
|
||||||
* @param callable $autoload_function The function to register.
|
* @param callable $autoload_function The function to register.
|
||||||
* @param boolean $throw Should the function throw an exception if the function isn't callable?
|
* @param boolean $throw Should the function throw an exception if the function isn't callable?
|
||||||
* @param boolean $prepend Should we prepend the function to the stack?
|
* @param boolean $prepend Should we prepend the function to the stack?
|
||||||
|
@ -491,6 +495,8 @@ if ( ! function_exists( 'spl_autoload_register' ) ):
|
||||||
/**
|
/**
|
||||||
* Unregister an autoloader function.
|
* Unregister an autoloader function.
|
||||||
*
|
*
|
||||||
|
* @since 4.6.0
|
||||||
|
*
|
||||||
* @param callable $function The function to unregister.
|
* @param callable $function The function to unregister.
|
||||||
* @return boolean True if the function was unregistered, false if it could not be.
|
* @return boolean True if the function was unregistered, false if it could not be.
|
||||||
*/
|
*/
|
||||||
|
@ -509,6 +515,8 @@ if ( ! function_exists( 'spl_autoload_register' ) ):
|
||||||
/**
|
/**
|
||||||
* Get the registered autoloader functions.
|
* Get the registered autoloader functions.
|
||||||
*
|
*
|
||||||
|
* @since 4.6.0
|
||||||
|
*
|
||||||
* @return array List of autoloader functions.
|
* @return array List of autoloader functions.
|
||||||
*/
|
*/
|
||||||
function spl_autoload_functions() {
|
function spl_autoload_functions() {
|
||||||
|
|
Loading…
Reference in New Issue