Skip to content

Commit ff6fdfe

Browse files
committed
fix(Functions): Fixed array key check for term
1 parent 08a64be commit ff6fdfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Term.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private static function parse_format_args( array $args ): array {
5959
'taxonomy' => null,
6060
);
6161

62-
if ( ! $args['link_format'] ) {
62+
if ( ! ( $args['link_format'] ?? false ) ) {
6363
$args['link_items'] = false;
6464
$args['link_final'] = false;
6565
}

WPFS.php

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final public static function load(
3030

3131
private static function hook(): void {
3232
require_once ABSPATH . 'wp-admin/includes/file.php';
33+
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
3334
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
3435
\add_filter( 'filesystem_method', array( self::class, 'fs_method' ), 99, 2 );
3536
}

0 commit comments

Comments
 (0)