From 9712ec61da5867f1a2068ed543ab88476ec95d1c Mon Sep 17 00:00:00 2001 From: threadi Date: Fri, 13 Dec 2024 14:40:18 +0100 Subject: [PATCH] update GitHub action for release zip --- app/Log.php | 2 +- app/Plugin/Init.php | 12 ++++++------ app/Plugin/Settings.php | 3 ++- changelog.md | 1 + templates/parts/term-filter-linklist.php | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/Log.php b/app/Log.php index 9d99c79..2a27905 100644 --- a/app/Log.php +++ b/app/Log.php @@ -169,7 +169,7 @@ public function get_entries(): array { $md5 = filter_input( INPUT_GET, 'md5', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); // if request is empty, get md5 from object if set. - if( empty( $md5 ) ) { + if ( empty( $md5 ) ) { $md5 = $this->get_md5(); } diff --git a/app/Plugin/Init.php b/app/Plugin/Init.php index d11967d..e90db5f 100644 --- a/app/Plugin/Init.php +++ b/app/Plugin/Init.php @@ -356,29 +356,29 @@ public function check_php(): void { */ public function check_static_front_filter( WP_Query $query ): void { // bail if this is not the main query. - if( ! $query->is_main_query() ) { + if ( ! $query->is_main_query() ) { return; } // bail if 'personiofilter' is not set. - if( empty( $query->get( 'personiofilter' ) ) ) { + if ( empty( $query->get( 'personiofilter' ) ) ) { return; } // bail if page on front is not used. $page_on_front = absint( get_option( 'page_on_front' ) ); - if( 0 === $page_on_front ) { + if ( 0 === $page_on_front ) { return; } // bail if pagename is set. - if( ! empty( $query->get( 'pagename' ) ) ) { + if ( ! empty( $query->get( 'pagename' ) ) ) { return; } // we assume this is a static frontpage with personiofilter. - $query->is_home = false; - $query->is_page = true; + $query->is_home = false; + $query->is_page = true; $query->is_singular = true; $query->set( 'page_id', $page_on_front ); } diff --git a/app/Plugin/Settings.php b/app/Plugin/Settings.php index 1715a02..92e314a 100644 --- a/app/Plugin/Settings.php +++ b/app/Plugin/Settings.php @@ -548,7 +548,8 @@ public function set_settings(): void { ), 'personioIntegration_debug' => array( 'label' => __( 'Debug-Mode', 'personio-integration-light' ), - 'description' => sprintf( __( 'When activated, the plugin logs many processes. This information can then be seen in the log. This helps to analyze any problems that may occur. At the same time, all open positions are retrieved in full at any time - there is no need to check whether anything has changed. We do not recommend using this mode permanently in a productive system.', 'personio-integration-light' ), esc_url( Helper::get_settings_url( 'personioPositions', 'logs' ) ) ), + /* translators: %1$s will be replace by a URL. */ + 'description' => sprintf( __( 'When activated, the plugin logs many processes. This information can then be seen in the log. This helps to analyze any problems that may occur. At the same time, all open positions are retrieved in full at any time - there is no need to check whether anything has changed. We do not recommend using this mode permanently in a productive system.', 'personio-integration-light' ), esc_url( Helper::get_settings_url( 'personioPositions', 'logs' ) ) ), 'field' => array( 'PersonioIntegrationLight\Plugin\Admin\SettingFields\Checkbox', 'get' ), 'readonly' => ! Helper::is_personio_url_set(), 'register_attributes' => array( diff --git a/changelog.md b/changelog.md index 92a6485..beea91e 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,7 @@ - Added compatibility with plugin Duplicate Page to prevent the duplication of positions with this plugin - Added some more hooks - Added support for using filter on static front page +- Added GitHub action to build release ZIP ### Changed diff --git a/templates/parts/term-filter-linklist.php b/templates/parts/term-filter-linklist.php index 0f4e625..ff217d6 100644 --- a/templates/parts/term-filter-linklist.php +++ b/templates/parts/term-filter-linklist.php @@ -26,7 +26,7 @@ $term_count = count( $terms ); for ( $t = 0;$t < $term_count;$t++ ) { if ( ! empty( $terms[ $t ] ) ) { - $url = apply_filters( 'personio_integration_light_filter_url', add_query_arg( array( 'personiofilter[' . $filter . ']' => $terms[ $t ]->term_id ) ), $attributes['link_to_anchor'] ); + $url = apply_filters( 'personio_integration_light_filter_url', add_query_arg( array( 'personiofilter[' . $filter . ']' => $terms[ $t ]->term_id ) ), $attributes['link_to_anchor'] ); ?>