Merge pull request #250 from kkigomi/patch-1
add_replace()에서 $args 값을 1로 변경
This commit is contained in:
@ -65,7 +65,7 @@ function run_event($tag, $arg = ''){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_replace($tag, $func, $priority=G5_HOOK_DEFAULT_PRIORITY, $args=0){
|
function add_replace($tag, $func, $priority=G5_HOOK_DEFAULT_PRIORITY, $args=1){
|
||||||
|
|
||||||
if( $hook = get_hook_class() ){
|
if( $hook = get_hook_class() ){
|
||||||
return $hook->addFilter($tag, $func, $priority, $args);
|
return $hook->addFilter($tag, $func, $priority, $args);
|
||||||
@ -130,4 +130,4 @@ function get_hook_datas($type='', $is_callback=''){
|
|||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user