Skip to content

Commit

Permalink
wrong variable name
Browse files Browse the repository at this point in the history
For #3
  • Loading branch information
JiveDig committed Jun 11, 2024
1 parent c517e0c commit 1cee98e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/class-list-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function hooks() {
*/
function load_list_icon( $field ) {
if ( ! is_admin() ) {
return $fields;
return $field;
}

if ( ! ( isset( $field['sub_fields'] ) && $field['sub_fields'] ) ) {
Expand Down Expand Up @@ -68,7 +68,7 @@ function load_list_icon( $field ) {
*/
function load_list_item_icon( $field ) {
if ( ! is_admin() ) {
return $fields;
return $field;
}

if ( ! ( isset( $field['sub_fields'] ) && $field['sub_fields'] ) ) {
Expand Down Expand Up @@ -105,7 +105,7 @@ function load_list_item_icon( $field ) {
*/
function load_list_columns( $field ) {
if ( ! is_admin() ) {
return $fields;
return $field;
}

if ( ! ( isset( $field['sub_fields'] ) && $field['sub_fields'] ) ) {
Expand Down

0 comments on commit 1cee98e

Please sign in to comment.