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

Version 2.19.6 #1984

Merged
merged 59 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
8d22d62
Bump tough-cookie from 4.1.2 to 4.1.3 in /future/includes/gutenberg
dependabot[bot] Jul 8, 2023
ca97242
Bump word-wrap from 1.2.3 to 1.2.4 in /future/includes/gutenberg
dependabot[bot] Jul 20, 2023
55552da
Add updated translations/assets & release v2.19.5 [ci skip]
Dec 8, 2023
fd5ff66
Add updated translations/assets & release v2.19.5 [ci skip]
Dec 8, 2023
918ae39
Fix View sorting by entry ID in ascending/descending order (#1938)
mrcasual Dec 11, 2023
465bdc9
Fix unit test
mrcasual Dec 11, 2023
2328048
Attach to document.body instead of DOM 'body'
zackkatz Dec 12, 2023
48c94ba
Missed a bunch :-)
zackkatz Dec 12, 2023
781d3eb
Push built JS
zackkatz Dec 13, 2023
d613d00
Attach jQuery hooks to document.body instead of DOM 'body' (#1960)
zackkatz Dec 13, 2023
55c37ba
Bump tough-cookie from 4.1.2 to 4.1.3 in /future/includes/gutenberg (…
mrcasual Dec 14, 2023
16b7621
Bump postcss from 8.4.5 to 8.4.31
dependabot[bot] Dec 14, 2023
9666301
Bump postcss from 8.4.21 to 8.4.32 in /future/includes/gutenberg
dependabot[bot] Dec 14, 2023
0be5a77
Bump word-wrap from 1.2.3 to 1.2.4 in /future/includes/gutenberg (#1877)
mrcasual Dec 14, 2023
40495cb
Bump @babel/traverse in /future/includes/gutenberg
dependabot[bot] Dec 14, 2023
a8f9e29
Bump postcss from 8.4.5 to 8.4.31 (#1961)
mrcasual Dec 14, 2023
9bd53ab
Bump @babel/traverse from 7.20.12 to 7.23.6 in /future/includes/guten…
mrcasual Dec 14, 2023
843370a
Bump postcss from 8.4.21 to 8.4.32 in /future/includes/gutenberg (#1962)
mrcasual Dec 14, 2023
474291c
Pass $view to allow customizing search by View
zackkatz Dec 19, 2023
b90deda
Update readme [ci skip]
zackkatz Dec 19, 2023
21611d2
Merge branch 'develop' into fix/1938-sort-view-by-id
zackkatz Jan 2, 2024
11657a2
Fix View sorting by entry ID in ascending/descending order (#1938) (#…
zackkatz Jan 2, 2024
6fe1fd9
Add missing versions [ci skip]
zackkatz Jan 1, 2024
d112561
Format filter docblocks to WP standards.
zackkatz Jan 2, 2024
10a75b7
Improve filter formatting & docblocks
zackkatz Jan 2, 2024
9615873
Add PHP_CodeSniffer
mrcasual Jan 10, 2024
733c1f6
Apply automatic code style fixes
mrcasual Jan 10, 2024
75b281d
Add pre-commit hook to run phpcs
mrcasual Jan 10, 2024
4da4357
Merge branch 'develop' into code-sniffer
mrcasual Jan 10, 2024
9d08a5e
Apply automatic code style fixes
mrcasual Jan 10, 2024
da11daa
Update code to use Yoda conditions, you must [ci skip]
mrcasual Jan 11, 2024
ece0731
Fix formatting that broke the unit test
mrcasual Jan 12, 2024
65dd37f
Fix unit test that fails during leap year
mrcasual Jan 12, 2024
091e346
Merge branch 'develop' into code-sniffer
mrcasual Jan 12, 2024
bd3f747
Show all empty stars on empty rating
doekenorg Jan 15, 2024
17f03e1
Use the intended function
mrcasual Jan 16, 2024
3423dd9
Show all empty stars on empty rating (#1970)
zackkatz Jan 16, 2024
bde15ea
Merge branch 'develop' into code-sniffer
zackkatz Jan 16, 2024
0fd3311
Bump node-sass
zackkatz Jan 16, 2024
7d8d42b
Spacing
zackkatz Jan 16, 2024
f825710
More spacing for docblocks
zackkatz Jan 16, 2024
75cb8e9
More whitespace changes
zackkatz Jan 16, 2024
505af09
Add notification event for deleting entries (GK only).
doekenorg Jan 17, 2024
b2759ba
Fixed Custom Post Fields acting as File Uploads on Entry Edit Page
doekenorg Jan 16, 2024
6c8875a
fix code style
doekenorg Jan 18, 2024
8d585b3
Add PHP_CodeSniffer and configure a pre-commit hook (#1968)
zackkatz Jan 21, 2024
5d680d8
Exclude additional files from the build archive [ci skip]
mrcasual Jan 21, 2024
37966ec
Yoda logic [ci skip]
zackkatz Jan 22, 2024
0fae983
Add readme items [ci skip]
zackkatz Jan 22, 2024
a4a4389
Merge branch 'develop' into feature/1819-trigger-notification-when-en…
zackkatz Jan 22, 2024
3b410ac
Add notification event for deleting entries (GK only) (#1972)
zackkatz Jan 22, 2024
64c7d41
Fix broken merge
zackkatz Jan 22, 2024
d08020c
Merge branch 'develop' into issue/1317-cant-edit-a-post-custom-field-…
zackkatz Jan 22, 2024
f9b21d0
Fixed Custom Post Fields acting as File Uploads on Entry Edit Page (#…
zackkatz Jan 22, 2024
92677fe
Merge branch 'main' into develop
mrcasual Feb 6, 2024
8bb7c2b
Update Foundation to 598d228
mrcasual Feb 6, 2024
e3364bc
Update Foundation to v1.2.8
mrcasual Feb 7, 2024
2aff37a
Update changelog [ci skip]
mrcasual Feb 7, 2024
5aa03b2
Version bump
zackkatz Feb 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Gruntfile.js export-ignore
package.json export-ignore
package-lock.json export-ignore
phpcs.ruleset.xml export-ignore
phpcs.xml export-ignore
phpcs.xml.dist export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
Expand All @@ -29,6 +30,7 @@ translations.pot export-ignore
# Folders
/.circleci export-ignore
/.github export-ignore
/.husky export-ignore
/.idea export-ignore
/.tx export-ignore
/assets/css/scss export-ignore
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ docs/html
docker-compose.yml
docker-unit-tests.sh
phpunit
phpunit.xml
wordpress-51-tests-lib
wordpress-latest-tests-lib

Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
38 changes: 19 additions & 19 deletions assets/js/admin-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
// Start by showing/hiding on load
vcfg.toggleInitialVisibility( vcfg );

// Start bind to $('body')
$( 'body' )
// Start bind to $( document.body )
$( document.body )

// Track modifier keys being clicked
.on( 'keydown keyup', vcfg.altKeyListener )
Expand Down Expand Up @@ -205,7 +205,7 @@

$.cookie( 'warning-dismissed-' + warning_name, 1, { path: gvGlobals.admin_cookiepath } );

$( 'body' ).trigger( 'gravityview/tabs-ready' );
$( document.body ).trigger( 'gravityview/tabs-ready' );
})

.on( 'gravityview/loaded gravityview/tabs-ready gravityview/field-added gravityview/field-removed gravityview/all-fields-removed gravityview/show-as-entry gravityview/view-config-updated', vcfg.toggleTabConfigurationWarnings )
Expand Down Expand Up @@ -242,7 +242,7 @@
}
$( this ).parent( '.gv-fields' ).removeClass( 'trigger--active' );
});
// End bind to $('body')
// End bind to $( document.body )

$( window ).resize( function() {

Expand Down Expand Up @@ -588,7 +588,7 @@

parent.find( '.gv-field-controls .dashicons-media-default' ).toggleClass( 'hide-if-js', $( e.target ).not( ':checked' ) );

$( 'body' ).trigger( 'gravityview/show-as-entry', $( e.target ).is( ':checked' ) );
$( document.body ).trigger( 'gravityview/show-as-entry', $( e.target ).is( ':checked' ) );
},

/**
Expand Down Expand Up @@ -914,7 +914,7 @@
vcfg.currentTemplateId = '';
vcfg.currentFormId = vcfg.gvSelectForm.val();
vcfg.setUnsavedChanges( true );
$( 'body' ).trigger( 'gravityview_form_change' ).addClass( 'gv-form-changed' );
$( document.body ).trigger( 'gravityview_form_change' ).addClass( 'gv-form-changed' );
},

showDialog: function ( dialogSelector, buttons ) {
Expand Down Expand Up @@ -1040,7 +1040,7 @@
} );
}

$( 'body' ).trigger( 'gravityview/dialog-closed', thisDialog );
$( document.body ).trigger( 'gravityview/dialog-closed', thisDialog );
},
closeOnEscape: true,
buttons: buttons
Expand Down Expand Up @@ -1116,7 +1116,7 @@
$( '#' + editorId ).autocomplete( 'close' );
};

$( 'body' ).on( 'keyup', function ( e ) {
$( document.body ).on( 'keyup', function ( e ) {
if ( $autocompleteEl.is( ':visible' ) && 27 === e.which ) {
e.preventDefault();
closeAutocompletion();
Expand Down Expand Up @@ -1674,7 +1674,7 @@
* @since 2.10
* @param {object} JSON response with `header` `footer` (widgets) `directory` and `single` (contexts) properties
*/
$( 'body' ).trigger( 'gravityview/view-config-updated', content );
$( document.body ).trigger( 'gravityview/view-config-updated', content );
}

resolve();
Expand Down Expand Up @@ -2002,7 +2002,7 @@
// append the new field to the active drop
$( '[data-tooltip-id="' + areaId + '"]' ).parents( '.gv-droppable-area' ).find( '.active-drop' ).append( newField ).end().attr( 'data-tooltip-id', '' );

$('body').trigger( 'gravityview/field-added', newField );
$( document.body ).trigger( 'gravityview/field-added', newField );

// Show the new field
newField.fadeIn( 100 );
Expand Down Expand Up @@ -2063,7 +2063,7 @@
}

// Only init merge tags if the View has been saved and the form hasn't been changed.
if ( 'undefined' !== typeof( form ) && $( 'body' ).not( '.gv-form-changed' ) && $merge_tag_supported.length >= 0 ) {
if ( 'undefined' !== typeof( form ) && $( document.body ).not( '.gv-form-changed' ) && $merge_tag_supported.length >= 0 ) {

if ( window.gfMergeTags ) {

Expand Down Expand Up @@ -2236,7 +2236,7 @@

$( this ).remove();

$('body').trigger( 'gravityview/field-removed', $( this ) );
$( document.body ).trigger( 'gravityview/field-removed', $( this ) );

vcfg.toggleDropMessage();
} );
Expand Down Expand Up @@ -2271,7 +2271,7 @@

$( area ).find( '.gv-fields' ).remove();

$('body').trigger( 'gravityview/all-fields-removed' );
$( document.body ).trigger( 'gravityview/all-fields-removed' );

viewConfiguration.toggleDropMessage();
},
Expand Down Expand Up @@ -2306,7 +2306,7 @@
vcfg.updateVisibilitySettings( e, true );

// Toggle checkbox when changing field visibility
$( 'body' ).on( 'change', '.gv-fields input[type=checkbox]', vcfg.updateVisibilitySettings );
$( document.body ).on( 'change', '.gv-fields input[type=checkbox]', vcfg.updateVisibilitySettings );

var buttons = [
{
Expand Down Expand Up @@ -2571,7 +2571,7 @@
.on('change', viewGeneralSettings.updateSettingsDisplay )
.trigger('change');

$('body')
$( document.body )
// Enable a setting tab (since 1.8)
.on('gravityview/settings/tab/enable', viewGeneralSettings.enableSettingTab )

Expand Down Expand Up @@ -2730,7 +2730,7 @@
*
* I tried setTimeout; it didn't work.
*
* I tried moving window.gvAdminActions and $( 'body' ).trigger( 'gravityview/loaded' );
* I tried moving window.gvAdminActions and $( document.body ).trigger( 'gravityview/loaded' );
* outside of this function; it didn't work.
*
* This probably needs to stay here until we rewrite this beast.
Expand Down Expand Up @@ -2777,7 +2777,7 @@
viewConfiguration.init_droppables( ui.panel );

/** @since 2.14.1 */
$( 'body' )
$( document.body )
.trigger( 'gravityview/tab-ready', ui.panel )
.trigger( 'gravityview/tabs-ready' );
},
Expand All @@ -2788,7 +2788,7 @@
viewConfiguration.init_droppables( ui.newPanel );

/** @since 2.14.1 */
$( 'body' ).trigger( 'gravityview/tab-ready', ui.newPanel );
$( document.body ).trigger( 'gravityview/tab-ready', ui.newPanel );
}
} );

Expand All @@ -2799,7 +2799,7 @@
showDialog: viewConfiguration.showDialog
};

$( 'body' ).trigger( 'gravityview/loaded' );
$( document.body ).trigger( 'gravityview/loaded' );
} );

}(jQuery));
2 changes: 1 addition & 1 deletion assets/js/admin-views.min.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
"codeception/module-filesystem": "^1.0",
"codeception/module-cli": "^1.0",
"codeception/util-universalframework": "^1.0",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.0",
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1"
},
"extra": {
"strauss": {
Expand Down Expand Up @@ -91,6 +94,9 @@
]
},
"config": {
"platform-check": false
"platform-check": false,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading
Loading