Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Oct 21, 2022
1 parent 55d8e2f commit cdb3814
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions includes/Term/UI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cdb3814

Please sign in to comment.