| @@ 57-60 (lines=4) @@ | ||
| 54 | ||
| 55 | $args = wp_parse_args( $args, $defaults ); |
|
| 56 | ||
| 57 | if ( ! in_array( $args['item_spacing'], array( 'preserve', 'discard' ), true ) ) { |
|
| 58 | // invalid value, fall back to default. |
|
| 59 | $args['item_spacing'] = $defaults['item_spacing']; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * Filters the arguments used to display a navigation menu. |
|
| @@ 1188-1191 (lines=4) @@ | ||
| 1185 | ||
| 1186 | $r = wp_parse_args( $args, $defaults ); |
|
| 1187 | ||
| 1188 | if ( ! in_array( $r['item_spacing'], array( 'preserve', 'discard' ), true ) ) { |
|
| 1189 | // invalid value, fall back to default. |
|
| 1190 | $r['item_spacing'] = $defaults['item_spacing']; |
|
| 1191 | } |
|
| 1192 | ||
| 1193 | $output = ''; |
|
| 1194 | $current_page = 0; |
|
| @@ 1304-1307 (lines=4) @@ | ||
| 1301 | ); |
|
| 1302 | $args = wp_parse_args( $args, $defaults ); |
|
| 1303 | ||
| 1304 | if ( ! in_array( $args['item_spacing'], array( 'preserve', 'discard' ) ) ) { |
|
| 1305 | // invalid value, fall back to default. |
|
| 1306 | $args['item_spacing'] = $defaults['item_spacing']; |
|
| 1307 | } |
|
| 1308 | ||
| 1309 | if ( 'preserve' === $args['item_spacing'] ) { |
|
| 1310 | $t = "\t"; |
|