Skip to content

Commit

Permalink
Merge pull request #313 from threadi/feature/addGitHubActionToBuildRe…
Browse files Browse the repository at this point in the history
…leaseZip

update GitHub action for release zip
  • Loading branch information
threadi authored Dec 13, 2024
2 parents 8be8f7e + 9712ec6 commit 7865bdf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
12 changes: 6 additions & 6 deletions app/Plugin/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
3 changes: 2 additions & 1 deletion app/Plugin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="%1$s">in the log</a>. 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. <strong>We do not recommend using this mode permanently in a productive system.</strong>', '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 <a href="%1$s">in the log</a>. 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. <strong>We do not recommend using this mode permanently in a productive system.</strong>', '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(
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion templates/parts/term-filter-linklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
?>
<li><a href="<?php echo esc_url( $url ); ?>" class="
<?php
Expand Down

0 comments on commit 7865bdf

Please sign in to comment.