Make WordPress Core

Ticket #55977: 55977.patch

File 55977.patch, 696 bytes (added by thakkarhardik, 4 years ago)
  • src/wp-includes/plugin.php

    diff --git a/src/wp-includes/plugin.php b/src/wp-includes/plugin.php
    index c1e5ff0bbed4c69fae98f10a3708fce6d4ca9cde..cdf479afe9318925ddca637aef289c3746b3166d 100644
    a b function add_action( $hook_name, $callback, $priority = 10, $accepted_args = 1 ) 
    424424 *      *
    425425 *      * - 'example_action' is the action hook.
    426426 *      * - $arg1 and $arg2 are the additional arguments passed to the callback.
    427  *     $value = do_action( 'example_action', $arg1, $arg2 );
     427 *      do_action( 'example_action', $arg1, $arg2 );
    428428 *
    429429 * @since 1.2.0
    430430 * @since 5.3.0 Formalized the existing and already documented `...$arg` parameter