From 0ccc01839a9b327d0776d0058f52b6fa716b6879 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 21 Jul 2022 14:32:12 +0000 Subject: [PATCH] Docs: Update `do_action()` docblock code example. This changeset fixes an issue with the code example provided: `do_action()` doesn't return any value. Props leogermani, thakkarhardik. Fixes #55977. Built from https://develop.svn.wordpress.org/trunk@53748 git-svn-id: http://core.svn.wordpress.org/trunk@53307 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/plugin.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index c1e5ff0bbe..bd28be7899 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -424,7 +424,7 @@ function add_action( $hook_name, $callback, $priority = 10, $accepted_args = 1 ) * * * * - 'example_action' is the action hook. * * - $arg1 and $arg2 are the additional arguments passed to the callback. - * $value = do_action( 'example_action', $arg1, $arg2 ); + * do_action( 'example_action', $arg1, $arg2 ); * * @since 1.2.0 * @since 5.3.0 Formalized the existing and already documented `...$arg` parameter diff --git a/wp-includes/version.php b/wp-includes/version.php index 6dd76bf6ca..17e2b67b77 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53747'; +$wp_version = '6.1-alpha-53748'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.