Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 14bfb87

Browse files
github-actions[bot]shendy-a8cgithub-actionssenadir
authored
Release: 7.4.1 (#6262)
* Call plugin_dir_url() in Package::get_url() instead of from its constructor. (#6260) * Empty commit for release pull request * add readme * Bumping version strings to new version. * add testing steps Co-authored-by: Shendy <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Nadir Seghir <[email protected]>
1 parent ac1eb1a commit 14bfb87

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

docs/testing/releases/741.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Testing notes and ZIP for release 7.4.1
2+
3+
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/8482828/woocommerce-gutenberg-products-block.zip)
4+
5+
## Feature plugin and package inclusion in WooCommerce
6+
7+
### WC-Admin doesn't crash when WC Subscriptions is installed. ([6260](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6260))
8+
9+
1. Go to an atomic website (or locally with symlinked WooCommrece).
10+
2. Install WC Subscriptions.
11+
Try to open wp-admin > WooCommerce > Home (/wp-admin/admin.php?page=wc-admin).
12+
3. Page should load normally.

docs/testing/releases/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Every release includes specific testing instructions for new features and bug fi
6565
- [7.2.0](./720.md)
6666
- [7.3.0](./730.md)
6767
- [7.4.0](./740.md)
68+
- [7.4.1](./741.md)
6869

6970
<!-- FEEDBACK -->
7071
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@woocommerce/block-library",
33
"title": "WooCommerce Blocks",
44
"author": "Automattic",
5-
"version": "7.4.0",
5+
"version": "7.4.1",
66
"description": "WooCommerce blocks for the Gutenberg editor.",
77
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
88
"keywords": [

readme.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
44
Requires at least: 5.9
55
Tested up to: 5.9
66
Requires PHP: 7.0
7-
Stable tag: 7.4.0
7+
Stable tag: 7.4.1
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -86,6 +86,12 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
8686

8787
== Changelog ==
8888

89+
= 7.4.1 - 2022-04-14 =
90+
91+
#### Bug Fixes
92+
93+
- Fix page load problem due to incorrect URL to certain assets. ([6260](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6260))
94+
8995
= 7.4.0 - 2022-04-11 =
9096

9197
#### Enhancements

src/Domain/Package.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ public function __construct( $version, $plugin_path, FeatureGating $feature_gati
5252
$this->version = $version;
5353
$this->path = $plugin_path;
5454
$this->feature_gating = $feature_gating;
55-
56-
// Append index.php so WP does not return the parent directory.
57-
$this->plugin_dir_url = plugin_dir_url( $this->path . '/index.php' );
5855
}
5956

6057
/**
@@ -87,6 +84,11 @@ public function get_path( $relative_path = '' ) {
8784
* @return string
8885
*/
8986
public function get_url( $relative_url = '' ) {
87+
if ( ! $this->plugin_dir_url ) {
88+
// Append index.php so WP does not return the parent directory.
89+
$this->plugin_dir_url = plugin_dir_url( $this->path . '/index.php' );
90+
}
91+
9092
return $this->plugin_dir_url . $relative_url;
9193
}
9294

src/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static function container( $reset = false ) {
106106
NewPackage::class,
107107
function ( $container ) {
108108
// leave for automated version bumping.
109-
$version = '7.4.0';
109+
$version = '7.4.1';
110110
return new NewPackage(
111111
$version,
112112
dirname( __DIR__ ),

woocommerce-gutenberg-products-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce Blocks
44
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
55
* Description: WooCommerce blocks for the Gutenberg editor.
6-
* Version: 7.4.0
6+
* Version: 7.4.1
77
* Author: Automattic
88
* Author URI: https://woocommerce.com
99
* Text Domain: woo-gutenberg-products-block

0 commit comments

Comments
 (0)