🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan@doyle.wf> 2016-10-09 13:30:29.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-10-09 13:30:29.0 +00:00:00
commit
fdad13d631788feae609205da5236681e1f43e3d [patch]
tree
3bec5e9255889a9bd2043a6827a00a22e8dc6571
parent
deb2e457c49ec7e31ba1545936d90397e43ff937
download
fdad13d631788feae609205da5236681e1f43e3d.tar.gz

Fix trigger function



Diff

 src/Support/Action.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Support/Action.php b/src/Support/Action.php
index 9b66fef..9aa9e3e 100644
--- a/src/Support/Action.php
+++ b/src/Support/Action.php
@@ -14,11 +14,11 @@ class Action
     * @param $tag
     * @param callable $function
     * @param int $priority
     * @param int $accepted_args
     * @param int $acceptedArgs
     */
    public static function hook($tag, callable $function, $priority = 10, $accepted_args = 1)
    public static function hook($tag, callable $function, $priority = 10, $acceptedArgs = 1)
    {
        add_filter($tag, $function, $priority, $accepted_args);
        add_filter($tag, $function, $priority, $acceptedArgs);
    }

    /**
@@ -42,6 +42,6 @@ class Action
     */
    public static function trigger($tag, ...$params)
    {
        return do_action($tag, $params);
        return do_action($tag, ...$params);
    }
}