Skip to content

Commit

Permalink
Merge branch 'release/4.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Jul 3, 2024
2 parents 34786cb + 06693b7 commit 24ada70
Show file tree
Hide file tree
Showing 19 changed files with 269 additions and 213 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.3"
php-version: "7.4"
coverage: none
tools: composer, cs2pr

Expand Down
3 changes: 3 additions & 0 deletions Lib/invisible_recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*
*/

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;

#[AllowDynamicProperties]
class Invisible_Recaptcha{

Expand Down
3 changes: 3 additions & 0 deletions admin/class-admin-settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;

/**
* WPUF settings
*/
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= v4.0.8 (03 Jul, 2024) =
* Fix - Optimized the script loading process by removing a Promise polyfill
* Fix - Added validation on the transaction page

= v4.0.7 (11 Jun, 2024) =
* Enhance - Remove what's new page
* Fix - Pending user can log in
Expand Down
3 changes: 2 additions & 1 deletion includes/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace WeDevs\Wpuf;

use AllowDynamicProperties;
// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;
use WeDevs\WpUtils\ContainerTrait;

/**
Expand Down
2 changes: 2 additions & 0 deletions includes/Admin/Forms/Admin_Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace WeDevs\Wpuf\Admin\Forms;

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;
use WeDevs\Wpuf\Admin\Subscription;
use WeDevs\Wpuf\Traits\FieldableTrait;
use WeDevs\WpUtils\ContainerTrait;
Expand Down
3 changes: 1 addition & 2 deletions includes/Admin/Forms/Admin_Form_Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ public function admin_print_scripts() {
<script>
if (!window.Promise) {
var promise_polyfill = document.createElement( 'script' );
promise_polyfill.setAttribute( 'src', 'https://cdn.polyfill.io/v2/polyfill.min.js' );
promise_polyfill.setAttribute( 'src', 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?version=4.8.0&features=default' );
document.head.appendChild( promise_polyfill );
}
</script>

<script>
var wpuf_form_builder_mixins = function ( mixins, mixin_parent ) {
if (!mixins || !mixins.length) {
Expand Down
3 changes: 3 additions & 0 deletions includes/Admin/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace WeDevs\Wpuf\Admin\Forms;

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;

#[AllowDynamicProperties]
class Form {

Expand Down
4 changes: 3 additions & 1 deletion includes/Admin/Forms/Post/Templates/Pro_Form_Preview_EDD.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

namespace WeDevs\Wpuf\Admin\Forms\Post\Templates;
use AllowDynamicProperties;

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;

/**
* Easy Digital Downloads post form template preview
Expand Down
2 changes: 2 additions & 0 deletions includes/Ajax/Frontend_Form_Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace WeDevs\Wpuf\Ajax;

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;
use DOMDocument;
use WeDevs\Wpuf\Admin\Forms\Form;
use WeDevs\Wpuf\Traits\FieldableTrait;
Expand Down
3 changes: 3 additions & 0 deletions includes/Fields/Form_Field_Post_Taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// require WPUF_INCLUDES . '/fields/class-abstract-fields.php';
use WPUF_Walker_Category_Multi;

// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;

#[AllowDynamicProperties]
class Form_Field_Post_Taxonomy extends Field_Contract {
use Form_Field_Post_Trait;
Expand Down
3 changes: 2 additions & 1 deletion includes/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace WeDevs\Wpuf;

use AllowDynamicProperties;
// Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute WILL NOT WORK.
use \AllowDynamicProperties;
use WeDevs\WpUtils\ContainerTrait;

/**
Expand Down
Loading

0 comments on commit 24ada70

Please sign in to comment.