Skip to content

Commit 03da094

Browse files
committed
fix for old php version
1 parent 279a3ab commit 03da094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/class-hook-flowchart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function parent_hook() {
233233
} elseif ( $child === 1 && !isset( $this->hooks[ $wp_current_filter[ 0 ] ][ $hook_name ] ) ) {
234234
$this->hooks[ $wp_current_filter[ 0 ] ][ $hook_name ] = array();
235235
} elseif ( $child === 2 && !isset( $this->hooks[ $wp_current_filter[ 0 ] ][ $wp_current_filter[ 1 ] ][ $hook_name ] ) ) {
236-
$this->hooks[ $wp_current_filter[ 0 ] ][ $wp_current_filter[ 1 ] ][ $hook_name ] = [ ];
236+
$this->hooks[ $wp_current_filter[ 0 ] ][ $wp_current_filter[ 1 ] ][ $hook_name ] = array();
237237
} elseif ( $child === 3 ) {
238238
$this->hooks[ $wp_current_filter[ 0 ] ][ $wp_current_filter[ 1 ] ][ $wp_current_filter[ 2 ] ][ $hook_name ] = 1;
239239
}

0 commit comments

Comments
 (0)