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

Commit

Permalink
Release: 7.2.2 (#6269)
Browse files Browse the repository at this point in the history
* Empty commit for release pull request

* Call plugin_dir_url() in Package::get_url() instead of from its constructor. (#6260)

* add readme changelog

* add testing steps

* Bumping version strings to new version.

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Shendy <[email protected]>
Co-authored-by: Nadir Seghir <[email protected]>
  • Loading branch information
4 people authored Apr 15, 2022
1 parent 59f074a commit 28de990
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
12 changes: 12 additions & 0 deletions docs/testing/releases/722.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Testing notes and ZIP for release 7.2.2

[woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/8495877/woocommerce-gutenberg-products-block.zip)

## Feature plugin and package inclusion in WooCommerce

### WC-Admin doesn't crash when WC Subscriptions is installed. ([6260](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6260))

1. Go to an atomic website (or locally with symlinked WooCommrece).
2. Install WC Subscriptions.
Try to open wp-admin > WooCommerce > Home (/wp-admin/admin.php?page=wc-admin).
3. Page should load normally.
1 change: 1 addition & 0 deletions docs/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Every release includes specific testing instructions for new features and bug fi
- [7.1.0](./710.md)
- [7.2.0](./720.md)
- [7.2.1](./721.md)
- [7.2.2](./722.md)

<!-- FEEDBACK -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "7.2.1",
"version": "7.2.2",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 5.9
Tested up to: 5.9
Requires PHP: 7.0
Stable tag: 7.2.1
Stable tag: 7.2.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -85,11 +85,18 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 7.2.2 - 2022-04-15 =

#### Bug fixes

- Fix page load problem due to incorrect URL to certain assets. [#6260](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6260)

= 7.2.1 - 2022-03-23 =

#### Bug fixes

- Don't trigger class deprecations if headers are already sent [#6074](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6074)

= 7.2.0 - 2022-03-14 =

#### Bug Fixes
Expand Down
8 changes: 5 additions & 3 deletions src/Domain/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ public function __construct( $version, $plugin_path, FeatureGating $feature_gati
$this->version = $version;
$this->path = $plugin_path;
$this->feature_gating = $feature_gating;

// Append index.php so WP does not return the parent directory.
$this->plugin_dir_url = plugin_dir_url( $this->path . '/index.php' );
}

/**
Expand Down Expand Up @@ -87,6 +84,11 @@ public function get_path( $relative_path = '' ) {
* @return string
*/
public function get_url( $relative_url = '' ) {
if ( ! $this->plugin_dir_url ) {
// Append index.php so WP does not return the parent directory.
$this->plugin_dir_url = plugin_dir_url( $this->path . '/index.php' );
}

return $this->plugin_dir_url . $relative_url;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '7.2.1';
$version = '7.2.2';
return new NewPackage(
$version,
dirname( __DIR__ ),
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Blocks
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
* Description: WooCommerce blocks for the Gutenberg editor.
* Version: 7.2.1
* Version: 7.2.2
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
Expand Down

0 comments on commit 28de990

Please sign in to comment.