Skip to content

Commit aa28bc7

Browse files
committed
Merge branch 'trunk' into fix/remove-onesignal-from-modal
2 parents 20f00c7 + e331139 commit aa28bc7

File tree

6 files changed

+54
-33
lines changed

6 files changed

+54
-33
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [4.5.6](https://github.com/Automattic/newspack-blocks/compare/v4.5.5...v4.5.6) (2025-01-23)
2+
3+
4+
### Bug Fixes
5+
6+
* make sure fields after floated inputs clear floats in the modal checkout ([#2030](https://github.com/Automattic/newspack-blocks/issues/2030)) ([274b4d4](https://github.com/Automattic/newspack-blocks/commit/274b4d41aa63dc818a3da49a7fc8315dbdf08757))
7+
18
## [4.5.5](https://github.com/Automattic/newspack-blocks/compare/v4.5.4...v4.5.5) (2025-01-20)
29

310

includes/class-newspack-blocks.php

+4
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ public static function build_articles_query( $attributes, $block_name ) {
688688
$term = $coauthors_plus->get_author_term( $co_author );
689689
if ( $term ) {
690690
$authors_term_ids[] = $term->term_id;
691+
} else {
692+
// If the author term does not exist, force a non-match, otherwise all posts will be returned.
693+
// CAP's cli command to create author terms will only create terms for users that have authored posts.
694+
$authors_term_ids[] = -1;
691695
}
692696

693697
// If it's a guest author, also check the linked author.

newspack-blocks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
* Author URI: https://newspack.com/
88
* Text Domain: newspack-blocks
99
* Domain Path: /languages
10-
* Version: 4.5.5
10+
* Version: 4.5.6
1111
*
1212
* @package Newspack_Blocks
1313
*/
1414

1515
define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
1616
define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
1717
define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
18-
define( 'NEWSPACK_BLOCKS__VERSION', '4.5.5' );
18+
define( 'NEWSPACK_BLOCKS__VERSION', '4.5.6' );
1919

2020
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
2121
require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';

package-lock.json

+28-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "@automattic/newspack-blocks",
3-
"version": "4.5.5",
3+
"version": "4.5.6",
44
"author": "Automattic",
55
"devDependencies": {
66
"@rushstack/eslint-patch": "^1.10.5",
77
"@testing-library/dom": "^10.4.0",
8-
"@testing-library/user-event": "^14.6.0",
8+
"@testing-library/user-event": "^14.6.1",
99
"@types/lodash": "^4.17.14",
1010
"@wordpress/browserslist-config": "^6.16.0",
1111
"eslint": "^8.57.0",
1212
"fetch-mock-jest": "^1.5.1",
1313
"html-entities": "^2.5.2",
1414
"identity-obj-proxy": "^3.0.0",
15-
"lint-staged": "^15.4.1",
15+
"lint-staged": "^15.4.3",
1616
"newspack-components": "^3.1.0",
1717
"newspack-scripts": "^5.5.2",
1818
"postcss-scss": "^4.0.9"

src/modal-checkout/checkout.scss

+10-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,16 @@
101101
}
102102
}
103103

104-
.woocommerce-billing-fields__field-wrapper ~ .form-row {
105-
margin: var(--newspack-ui-spacer-5, 24px) 0 0;
104+
.woocommerce-billing-fields__field-wrapper {
105+
&::after {
106+
clear: both;
107+
content: "";
108+
display: table;
109+
}
110+
111+
& ~ .form-row {
112+
margin: var(--newspack-ui-spacer-5, 24px) 0 0;
113+
}
106114
}
107115

108116
// Additional fields

0 commit comments

Comments
 (0)