diff --git a/.editorconfig b/.editorconfig index 558350e..a4c715a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,11 +12,8 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = tab -tab_width = 4 -[*.json] +[*.{yml,yaml}] indent_style = space -indent_size = 4 +indent_size = 2 -[*.md] -trim_trailing_whitespace = false diff --git a/includes/Term/UI.php b/includes/Term/UI.php index 405cd2e..340314d 100644 --- a/includes/Term/UI.php +++ b/includes/Term/UI.php @@ -231,14 +231,14 @@ abstract protected function format_output( $value ): string; * * @return string|void */ - public function add_column_value( string $empty = '', string $custom_column = '', int $term_id = 0 ) { + public function add_column_value( string $empty = null, string $custom_column = null, int $term_id = 0 ) { if ( ! filter_input( INPUT_GET, 'taxonomy' ) && ! filter_input( INPUT_POST, 'taxonomy' ) ) { - return $empty; + return $empty ?? ''; } // Bail if no taxonomy passed or not on the `meta_key` column. if ( ( $this->meta_key !== $custom_column ) || ! empty( $empty ) ) { - return $empty; + return $empty ?? ''; } // Get the metadata.