Skip to content

Commit

Permalink
chore: merge develop and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Nov 20, 2024
1 parent 50b6890 commit 1e8b664
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion includes/admin/settings/class-settings-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function sanitize_option_donor_default_user_role($value) {
}

/**
* @unreleased
* @since 3.18.0
*/
public function _render_give_based_form_editor_notice($field, $value)
{
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/settings/class-settings-gateways.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static function ($value, $key) {
];

/**
* @unreleased
* @since 3.18.0
*/
$groups = apply_filters('give_settings_payment_gateways_menu_groups', $groups);

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
= 3.18.0: November 20th, 2024 =
* New: Added support to our form migration process for our upcoming Constant Contact add-on 3.0.0 version
* New: The donor wall now shows the donor's uploaded image avatar when available
* New: Added a global setting to enable or disable the Option-Based Form Editor and settings.
* Fix: Resolved an issue with multi-step form designs growing extra space outside the form
* Fix: Resolved an issue where some people were not able to connect to PayPal
* Fix: Resolved an issue that was preventing the form migration process from completing
Expand Down
4 changes: 2 additions & 2 deletions src/FeatureFlags/FeatureFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Give\FeatureFlags;

/**
* @unreleased
* @since 3.18.0
*/
interface FeatureFlags
{
/**
* @unreleased
* @since 3.18.0
*/
public static function isEnabled(): bool;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
use Give\Framework\QueryBuilder\QueryBuilder;

/**
* @unreleased
* @since 3.18.0
*/
class OptionBasedFormEditor implements FeatureFlags
{
/**
* @unreleased
* @since 3.18.0
*/
public static function isEnabled(): bool
{
Expand All @@ -30,7 +30,7 @@ public static function isEnabled(): bool
}

/**
* @unreleased
* @since 3.18.0
*/
public static function helperText(): string
{
Expand All @@ -53,7 +53,7 @@ public static function helperText(): string
}

/**
* @unreleased
* @since 3.18.0
*/
public static function existOptionBasedFormsOnDb(): bool
{
Expand Down
6 changes: 3 additions & 3 deletions src/FeatureFlags/OptionBasedFormEditor/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;

/**
* @unreleased
* @since 3.18.0
*/
class ServiceProvider implements ServiceProviderInterface
{
/**
* @unreleased
* @since 3.18.0
*/
public function register()
{
}

/**
* @unreleased
* @since 3.18.0
*/
public function boot()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@
use Give\FeatureFlags\OptionBasedFormEditor\OptionBasedFormEditor;

/**
* @unreleased
* @since 3.18.0
*/
abstract class AbstractOptionBasedFormEditorSettings
{
/**
* @unreleased
* @since 3.18.0
*/
abstract public function getDisabledOptionIds(): array;

/**
* @unreleased
* @since 3.18.0
*/
public function getDisabledSectionIds(): array
{
return [];
}

/**
* @unreleased
* @since 3.18.0
*/
public function getNewDefaultSection(): string
{
return '';
}

/**
* @unreleased
* @since 3.18.0
*/
final public function maybeDisableSections(array $sections): array
{
Expand All @@ -49,7 +49,7 @@ final public function maybeDisableSections(array $sections): array
}

/**
* @unreleased
* @since 3.18.0
*/
final public function maybeDisableOptions(array $options): array
{
Expand All @@ -69,7 +69,7 @@ final public function maybeDisableOptions(array $options): array
}

/**
* @unreleased
* @since 3.18.0
*/
final public function maybeSetNewDefaultSection($currentSection)
{
Expand All @@ -83,15 +83,15 @@ final public function maybeSetNewDefaultSection($currentSection)
}

/**
* @unreleased
* @since 3.18.0
*/
private function isOptionDisabled($option): bool
{
return $option && in_array($option, $this->getDisabledOptionIds());
}

/**
* @unreleased
* @since 3.18.0
*/
private function isCurrentSectionDisabled(): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/FeatureFlags/OptionBasedFormEditor/Settings/Advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Give\FeatureFlags\OptionBasedFormEditor\Settings;

/**
* @unreleased
* @since 3.18.0
*/
class Advanced extends AbstractOptionBasedFormEditorSettings
{
/**
* @unreleased
* @since 3.18.0
*/
public function getDisabledOptionIds(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Give\FeatureFlags\OptionBasedFormEditor\Settings;

/**
* @unreleased
* @since 3.18.0
*/
class DefaultOptions extends AbstractOptionBasedFormEditorSettings
{
/**
* @unreleased
* @since 3.18.0
*/
public function getDisabledOptionIds(): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/FeatureFlags/OptionBasedFormEditor/Settings/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Give\FeatureFlags\OptionBasedFormEditor\Settings;

/**
* @unreleased
* @since 3.18.0
*/
class General extends AbstractOptionBasedFormEditorSettings
{
/**
* @unreleased
* @since 3.18.0
*/
public function getDisabledOptionIds(): array
{
Expand Down

0 comments on commit 1e8b664

Please sign in to comment.