Docs: Promote many bool types to true or false where only that value is used.
See #51800 Built from https://develop.svn.wordpress.org/trunk@49927 git-svn-id: http://core.svn.wordpress.org/trunk@49626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -754,8 +754,8 @@ function spawn_cron( $gmt_time = 0 ) {
|
||||
* @since 2.1.0
|
||||
* @since 5.1.0 Return value added to indicate success or failure.
|
||||
*
|
||||
* @return bool|int On success an integer indicating number of events spawned (0 indicates no
|
||||
* events needed to be spawned), false if spawning fails for one or more events.
|
||||
* @return false|int On success an integer indicating number of events spawned (0 indicates no
|
||||
* events needed to be spawned), false if spawning fails for one or more events.
|
||||
*/
|
||||
function wp_cron() {
|
||||
// Prevent infinite loops caused by lack of wp-cron.php.
|
||||
@@ -880,9 +880,9 @@ function wp_get_schedule( $hook, $args = array() ) {
|
||||
*
|
||||
* @since 5.1.0
|
||||
*
|
||||
* @param string|bool $schedule Schedule for the hook. False if not found.
|
||||
* @param string $hook Action hook to execute when cron is run.
|
||||
* @param array $args Optional. Arguments to pass to the hook's callback function.
|
||||
* @param string|false $schedule Schedule for the hook. False if not found.
|
||||
* @param string $hook Action hook to execute when cron is run.
|
||||
* @param array $args Optional. Arguments to pass to the hook's callback function.
|
||||
*/
|
||||
return apply_filters( 'get_schedule', $schedule, $hook, $args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user