Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.28.0 #2129

Merged
merged 45 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
381ac16
Removes the filter that removed gf max files validation
omarkasem Aug 13, 2024
6101805
Fix deprecated filter notice with GravityView Maps 3.1.0+
mrcasual Aug 14, 2024
2f321fe
Fix PHP 8.2 deprecation notice
mrcasual Aug 14, 2024
ffe93e1
Update changelog [ci skip]
mrcasual Aug 16, 2024
c6e1234
Removes the filter that removed gf max files validation (#2104)
mrcasual Aug 16, 2024
6ab7c39
Add placeholder
omarkasem Aug 18, 2024
cd0027c
Check if value has start and end dates
omarkasem Aug 18, 2024
19cba74
Do not set a value to an undeclared class property
mrcasual Aug 19, 2024
3109a1e
Merge branch 'develop' into issue/2115-moving-from-date-to-date-range…
mrcasual Aug 19, 2024
fd80f29
Simplify conditional check
mrcasual Aug 19, 2024
d06e59a
Sort Name field using the First and Last name inputs (#2121)
mrcasual Aug 21, 2024
4d46f30
Force merge tags in Source URL field settings
zackkatz Aug 21, 2024
e3fa752
Improve appearance of Link Text field in Source URL
zackkatz Aug 21, 2024
ceb6104
Fix sorting icon not appearing for Name field
mrcasual Aug 21, 2024
8cd5a57
Update changelog [ci skip]
mrcasual Aug 21, 2024
d8522b3
Check if value has start and end dates (#2116)
mrcasual Aug 22, 2024
6fa315f
Simplify conditional check [ci skip]
mrcasual Aug 22, 2024
3455f66
Add placeholder in custom searchable fields in search widget (#2114)
mrcasual Aug 22, 2024
fb341b6
Implement proper sorting for the Name field (#2123)
rafaehlers Aug 24, 2024
56b88d1
Update link to Foundation in pubic composer.json [ci skip]
mrcasual Aug 24, 2024
4cf25ab
Add PHP version compatibility checker
zackkatz Aug 26, 2024
8952774
Fix PHP 7.2 compatibility issues
zackkatz Aug 26, 2024
37ae127
Bump axios from 1.6.7 to 1.7.5 in /future/includes/gutenberg
dependabot[bot] Aug 26, 2024
5565cca
Add `:url` modifier for entry moderation merge tags (#219)
mrcasual Aug 27, 2024
a007f40
Bump axios from 1.6.7 to 1.7.5 in /future/includes/gutenberg (#2124)
mrcasual Aug 27, 2024
226aebf
Bump minimum PHP version to 7.4 (#2118)
mrcasual Aug 27, 2024
2d3f7d7
Add filter to control sorting in View entries query (#1759)
mrcasual Aug 27, 2024
6ad768e
Trigger build
mrcasual Aug 27, 2024
eae0cf2
Fix CircleCI config [ci skip]
mrcasual Aug 27, 2024
81f6fa6
Merge branch 'develop' into feature/1759-multisort-numeric-fields
mrcasual Aug 27, 2024
2b34a45
Fix fatal error related to a capabilities check (#2127)
mrcasual Aug 27, 2024
81ec95f
Prevents PHP warning
zackkatz Aug 28, 2024
b92c7b4
Fixes deprecated use of "parent" in callables
zackkatz Aug 28, 2024
e003d7d
Fixes PHP warning when no SQL results for Sequence
zackkatz Aug 28, 2024
0b6cc98
Refactor the sorting parameters code
mrcasual Aug 28, 2024
4a51c6b
Add filter to control sorting in View entries query (#2126)
mrcasual Aug 28, 2024
4c750b6
Fix "text domain not found" error when creating a View
mrcasual Aug 28, 2024
92bd662
Use the correct text domain in the UI
mrcasual Aug 28, 2024
7b2600a
Update Foundation to ada291c
mrcasual Aug 28, 2024
ce55f9b
Bump webpack from 5.90.3 to 5.94.0 in /future/includes/gutenberg
dependabot[bot] Aug 28, 2024
79ac008
Bump version to 2.28.0 & update changelog
mrcasual Aug 28, 2024
3fda2d3
Bump webpack from 5.90.3 to 5.94.0 in /future/includes/gutenberg (#2128)
mrcasual Aug 28, 2024
50ae6cf
Update release date [ci skip]
mrcasual Aug 28, 2024
0848b1f
Fix "trying to access array offset on value of type bool" warning
mrcasual Aug 28, 2024
b80760d
Update release date [ci skip]
mrcasual Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:
paths:
- .

run_php_72_unit_tests:
run_php_74_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 7.2 unit tests
name: Running PHP 7.4 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_72
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_74

run_php_80_unit_tests:
<<: *default_job_config
Expand Down Expand Up @@ -126,7 +126,7 @@ workflows:
jobs:
- prepare_test_and_build_environment:
<<: *context
- run_php_72_unit_tests:
- run_php_74_unit_tests:
<<: *test_job_config
- run_php_80_unit_tests:
<<: *test_job_config
Expand All @@ -135,6 +135,6 @@ workflows:
- build_package_release:
<<: *context
requires:
- run_php_72_unit_tests
- run_php_74_unit_tests
- run_php_80_unit_tests
# - run_acceptance_tests
1 change: 1 addition & 0 deletions assets/js/admin-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,7 @@

$.when( vcfg.server_request( 'install_product', {
id: $link.attr( 'data-download-id' ),
text_domain: $link.attr( 'data-template-text-domain' ),
activate: true,
} ) )
.then( on_success )
Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin-views.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": ">=7.2.0",
"php": ">=7.4.0",
"ext-json": "*",
"ext-openssl": "*",
"gravitykit/foundation": "dev-main"
Expand Down Expand Up @@ -94,7 +94,8 @@
"@prefix_vendor",
"@post_update_install",
"composer dump-autoload -o"
]
],
"compat": "./vendor/bin/phpcs -p ./ ./gravityview.php ./tests --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.2- --ignore=vendor/*,vendor_prefixed/*,node_modules/*"
},
"config": {
"platform-check": false,
Expand Down
30 changes: 16 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions composer_public.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
"type": "package",
"package": {
"name": "gravitykit/foundation",
"version": "1.2.12",
"version": "1.2.17",
"dist": {
"url": "https://www.dropbox.com/scl/fi/9ymdlep3stwsobdxa3fvm/foundation-1.2.12-987da1e.zip?rlkey=tt6zethqhk1f574ygoi1xdnlm&dl=1",
"url": "https://www.dropbox.com/scl/fi/b3p6jtt7673iij218pm11/foundation-1.2.17-0852c84.zip?rlkey=6hs3qrxzl7ucqu57dfz7cycuq&dl=1",
"type": "zip"
}
}
}
],
"require": {
"php": ">=7.2.0",
"php": ">=7.4.0",
"ext-json": "*",
"ext-openssl": "*",
"gravitykit/foundation": "1.2.12"
"gravitykit/foundation": "1.2.17"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
Expand Down
11 changes: 7 additions & 4 deletions future/_mocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ function ( $e ) {
* @return null|string The value of a field in an entry.
*/
function GravityView_API_field_value( $entry, $field_settings, $format ) {
$original_args = func_get_args();

if ( empty( $entry['form_id'] ) || empty( $field_settings['id'] ) ) {
gravityview()->log->error( 'No entry or field_settings[id] supplied', array( 'data' => array( func_get_args() ) ) );
gravityview()->log->error( 'No entry or field_settings[id] supplied', array( 'data' => array( $original_args ) ) );
return null;
}

Expand Down Expand Up @@ -202,7 +204,7 @@ function GravityView_API_field_value( $entry, $field_settings, $format ) {

/** An unidentified backend. */
default:
gravityview()->log->error( 'Could not determine source for entry', array( 'data' => array( func_get_args() ) ) );
gravityview()->log->error( 'Could not determine source for entry', array( 'data' => array( $original_args ) ) );
return null;
endswitch;

Expand Down Expand Up @@ -235,6 +237,7 @@ function GravityView_API_field_value( $entry, $field_settings, $format ) {
* @return string The label of a field in an entry.
*/
function GravityView_API_field_label( $form, $field_settings, $entry, $force_show_label = false ) {
$original_args = func_get_args();

/** A bail condition. */
$bail = function ( $label, $field_settings, $entry, $force_show_label, $form ) {
Expand Down Expand Up @@ -280,7 +283,7 @@ function GravityView_API_field_label( $form, $field_settings, $entry, $force_sho
}

if ( empty( $entry['form_id'] ) || empty( $field_settings['id'] ) ) {
gravityview()->log->error( 'No entry or field_settings[id] supplied', array( 'data' => array( func_get_args() ) ) );
gravityview()->log->error( 'No entry or field_settings[id] supplied', array( 'data' => array( $original_args ) ) );
return $bail( $label, $field_settings, $entry, $force_show_label, $form );
}

Expand Down Expand Up @@ -333,7 +336,7 @@ function GravityView_API_field_label( $form, $field_settings, $entry, $force_sho

/** An unidentified backend. */
default:
gravityview()->log->error( 'Could not determine source for entry. Using empty field.', array( 'data' => array( func_get_args() ) ) );
gravityview()->log->error( 'Could not determine source for entry. Using empty field.', array( 'data' => array( $original_args ) ) );
$field = new \GV\Field();
break;
endswitch;
Expand Down
2 changes: 1 addition & 1 deletion future/includes/class-gv-shortcode-gvlogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private function get_output( $match, $atts, $content ) {
break; // No more shortcodes
}

list( $_, $before_shortcode, $shortcode, $_, $after_shortcode ) = $matches;
list( $_, $before_shortcode, $shortcode, $__, $after_shortcode ) = $matches;

if ( ! $found ) { // We're still iffing.
$if .= $before_shortcode;
Expand Down
4 changes: 1 addition & 3 deletions future/includes/class-gv-template-view-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,13 @@ public static function add_columns_sort_links( $column_label, $context = null )

$class = 'gv-sort';

$sort_field_id = \GravityView_frontend::_override_sorting_id_by_field_type( $context->field->ID, $context->view->form->ID );

$sort_args = array(
sprintf( 'sort[%s]', $context->field->ID ),
'asc',
);

// If we are already sorting by the current field...
if ( ! empty( $sorting['key'] ) && (string) $sort_field_id === (string) $sorting['key'] ) {
if ( ! empty( $sorting['key'] ) && (string) $context->field->ID === (string) $sorting['key'] ) {

switch ( $sorting['direction'] ) {
// No sort
Expand Down
Loading