diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 5265fed1..087ee59e 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -1,6 +1,9 @@ name: JobBoardWP GitHub Actions -on: push +on: + push: + branches: + - development/3.0 jobs: build: diff --git a/includes/core/class-member-directory.php b/includes/core/class-member-directory.php index 752018f5..664f9d15 100644 --- a/includes/core/class-member-directory.php +++ b/includes/core/class-member-directory.php @@ -684,7 +684,13 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) { $attrs['options'] = apply_filters( 'um_member_directory_filter_select_options_sorted', $attrs['options'], $attrs ); - $label = isset( $attrs['label'] ) ? $attrs['label'] : ''; ?> + $label = ''; + if ( isset( $attrs['label'] ) ) { + $label = $attrs['label']; + } elseif ( ! isset( $attrs['label'] ) && isset( $attrs['title'] ) ) { + $label = $attrs['title']; + } + ?>