Skip to content

Commit

Permalink
resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Mar 8, 2024
1 parent 0028a77 commit 17599f5
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/Addon/GravityExportAddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -1142,34 +1142,4 @@ public function get_current_settings(): array {

return $settings;
}

/**
* Whether to use the admin labels as labels for the export.
* @since 2.1.0
* @return bool
*/
public function useAdminLabels(): bool {
return apply_filters(
'gk/gravityexport/settings/use-admin-labels',
(bool) $this->get_plugin_setting( 'use_admin_label' )
);
}

/**
* @inheritDoc
* @since 2.2.0
*/
public function get_current_settings(): array {
$settings = parent::get_current_settings();

$feed = $this->get_feed( $this->get_default_feed_id( rgget( 'id' ) ) );
if ( ! $feed ) {
return $settings;
}

// Prevent hash from being overwritten with an input value.
$settings['hash'] = rgars( $feed, 'meta/hash', $settings['hash'] ?? '' );

return $settings;
}
}

0 comments on commit 17599f5

Please sign in to comment.