Bumping version strings to new version.

This commit is contained in:
Seghir Nadir 2019-11-19 18:20:22 +01:00
parent b09c6a69b1
commit 7995d56d9f
32 changed files with 45 additions and 45 deletions

View File

@ -2,7 +2,7 @@
"name": "@woocommerce/block-library", "name": "@woocommerce/block-library",
"title": "WooCommerce Blocks", "title": "WooCommerce Blocks",
"author": "Automattic", "author": "Automattic",
"version": "2.5.0-dev", "version": "2.5.0",
"description": "WooCommerce blocks for the Gutenberg editor.", "description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/", "homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [ "keywords": [

View File

@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 5.0 Requires at least: 5.0
Tested up to: 5.2 Tested up to: 5.2
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 2.4.1 Stable tag: 2.5.0
License: GPLv3 License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html

View File

@ -17,7 +17,7 @@ class Assets {
/** /**
* Initialize class features on init. * Initialize class features on init.
* *
* @since $VID:$ * @since 2.5.0
* Moved most initialization to BootStrap and AssetDataRegistry * Moved most initialization to BootStrap and AssetDataRegistry
* classes as a part of ongoing refactor * classes as a part of ongoing refactor
*/ */
@ -30,7 +30,7 @@ class Assets {
/** /**
* Register block scripts & styles. * Register block scripts & styles.
* *
* @since $VID:$ * @since 2.5.0
* Moved data related enqueuing to new AssetDataRegistry class * Moved data related enqueuing to new AssetDataRegistry class
* as part of ongoing refactoring. * as part of ongoing refactoring.
*/ */
@ -90,7 +90,7 @@ class Assets {
* @param array $settings The original settings array from the filter. * @param array $settings The original settings array from the filter.
* *
* @since 2.4.0 * @since 2.4.0
* @since $VID:$ returned merged data along with incoming $settings * @since 2.5.0 returned merged data along with incoming $settings
*/ */
public static function get_wc_block_data( $settings ) { public static function get_wc_block_data( $settings ) {
$tag_count = wp_count_terms( 'product_tag' ); $tag_count = wp_count_terms( 'product_tag' );

View File

@ -12,7 +12,7 @@ use Automattic\WooCommerce\Blocks\Domain\Package;
/** /**
* The Api class provides an interface to various asset registration helpers. * The Api class provides an interface to various asset registration helpers.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Api { class Api {
@ -88,7 +88,7 @@ class Api {
* Registers a script according to `wp_register_script`, additionally * Registers a script according to `wp_register_script`, additionally
* loading the translations for the file. * loading the translations for the file.
* *
* @since $VID:$ * @since 2.5.0
* *
* @param string $handle Name of the script. Should be unique. * @param string $handle Name of the script. Should be unique.
* @param string $relative_src Relative url for the script to the path * @param string $relative_src Relative url for the script to the path
@ -120,7 +120,7 @@ class Api {
/** /**
* Queues a block script. * Queues a block script.
* *
* @since $VID:$ * @since 2.5.0
* *
* @param string $name Name of the script used to identify the file inside build folder. * @param string $name Name of the script used to identify the file inside build folder.
*/ */
@ -134,7 +134,7 @@ class Api {
/** /**
* Registers a style according to `wp_register_style`. * Registers a style according to `wp_register_style`.
* *
* @since $VID:$ * @since 2.5.0
* *
* @param string $handle Name of the stylesheet. Should be unique. * @param string $handle Name of the stylesheet. Should be unique.
* @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. * @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.

View File

@ -4,7 +4,7 @@
* `wc-settings` is enqueued (directly or via dependency) * `wc-settings` is enqueued (directly or via dependency)
* *
* @package WooCommerce/Blocks * @package WooCommerce/Blocks
* @since $VID:$ * @since 2.5.0
*/ */
namespace Automattic\WooCommerce\Blocks\Assets; namespace Automattic\WooCommerce\Blocks\Assets;
@ -16,7 +16,7 @@ use InvalidArgumentException;
* Class instance for registering data used on the current view session by * Class instance for registering data used on the current view session by
* assets. * assets.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class AssetDataRegistry { class AssetDataRegistry {
/** /**

View File

@ -3,7 +3,7 @@
* Backwards Compatibility file for plugins using wcSettings in prior versions * Backwards Compatibility file for plugins using wcSettings in prior versions
* *
* @package WooCommerce/Blocks * @package WooCommerce/Blocks
* @since $VID:$ * @since 2.5.0
*/ */
namespace Automattic\WooCommerce\Blocks\Assets; namespace Automattic\WooCommerce\Blocks\Assets;
@ -13,7 +13,7 @@ namespace Automattic\WooCommerce\Blocks\Assets;
* *
* Note: This will be removed at some point. * Note: This will be removed at some point.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class BackCompatAssetDataRegistry extends AssetDataRegistry { class BackCompatAssetDataRegistry extends AssetDataRegistry {
/** /**
@ -28,7 +28,7 @@ class BackCompatAssetDataRegistry extends AssetDataRegistry {
* Back-compat filter, developers, use 'woocommerce_shared_settings' * Back-compat filter, developers, use 'woocommerce_shared_settings'
* filter, not this one. * filter, not this one.
* *
* @deprecated $VID:$ * @deprecated 2.5.0
*/ */
$data = apply_filters( $data = apply_filters(
'woocommerce_components_settings', 'woocommerce_components_settings',

View File

@ -18,7 +18,7 @@ use Automattic\WooCommerce\Blocks\RestApi;
/** /**
* Takes care of bootstrapping the plugin. * Takes care of bootstrapping the plugin.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Bootstrap { class Bootstrap {

View File

@ -10,7 +10,7 @@ namespace Automattic\WooCommerce\Blocks\Domain;
/** /**
* Main package class. * Main package class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Package { class Package {

View File

@ -16,7 +16,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* Main package class. (Loader in the WC Core context as well) * Main package class. (Loader in the WC Core context as well)
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Package { class Package {
@ -25,7 +25,7 @@ class Package {
* class with Automattic\Woocommerce\Blocks\Container and make Package a * class with Automattic\Woocommerce\Blocks\Container and make Package a
* dependency. * dependency.
* *
* @since $VID:$ * @since 2.5.0
* @return Package The Package instance class * @return Package The Package instance class
*/ */
protected static function get_package() { protected static function get_package() {
@ -35,7 +35,7 @@ class Package {
/** /**
* Init the package - load the blocks library and define constants. * Init the package - load the blocks library and define constants.
* *
* @since $VID:$ Handled by new NewPackage. * @since 2.5.0 Handled by new NewPackage.
*/ */
public static function init() { public static function init() {
self::container()->get( Bootstrap::class ); self::container()->get( Bootstrap::class );
@ -78,7 +78,7 @@ class Package {
NewPackage::class, NewPackage::class,
function ( $container ) { function ( $container ) {
// leave for automated version bumping. // leave for automated version bumping.
$version = '2.5.0-dev'; $version = '2.5.0';
return new NewPackage( return new NewPackage(
$version, $version,
WC_BLOCKS_PLUGIN_FILE WC_BLOCKS_PLUGIN_FILE

View File

@ -14,7 +14,7 @@ namespace Automattic\WooCommerce\Blocks\Registry;
* Dependency Injection Container for storing dependencies to invoke as they * Dependency Injection Container for storing dependencies to invoke as they
* are needed. * are needed.
* *
* @since $VID:$ * @since 2.5.0
*/ */
abstract class AbstractDependencyType { abstract class AbstractDependencyType {

View File

@ -15,7 +15,7 @@ use Exception;
* *
* This is used to manage dependencies used throughout the plugin. * This is used to manage dependencies used throughout the plugin.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Container { class Container {

View File

@ -10,7 +10,7 @@ namespace Automattic\WooCommerce\Blocks\Registry;
/** /**
* Definition for the FactoryType dependency type. * Definition for the FactoryType dependency type.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class FactoryType extends AbstractDependencyType { class FactoryType extends AbstractDependencyType {
/** /**

View File

@ -10,7 +10,7 @@ namespace Automattic\WooCommerce\Blocks\Registry;
/** /**
* A definition for the SharedType dependency type. * A definition for the SharedType dependency type.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class SharedType extends AbstractDependencyType { class SharedType extends AbstractDependencyType {

View File

@ -19,7 +19,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\CartController;
/** /**
* Cart API. * Cart API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Cart extends RestContoller { class Cart extends RestContoller {
/** /**

View File

@ -20,7 +20,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\CartController;
/** /**
* Cart API. * Cart API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class CartItems extends RestContoller { class CartItems extends RestContoller {
/** /**

View File

@ -20,7 +20,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\TermQuery;
/** /**
* Product attribute terms API. * Product attribute terms API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductAttributeTerms extends RestContoller { class ProductAttributeTerms extends RestContoller {
/** /**

View File

@ -19,7 +19,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Schemas\ProductAttributeSchem
/** /**
* Product attributes API. * Product attributes API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductAttributes extends RestContoller { class ProductAttributes extends RestContoller {
/** /**

View File

@ -19,7 +19,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\ProductQueryFilters
/** /**
* ProductCollectionData API. * ProductCollectionData API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductCollectionData extends RestContoller { class ProductCollectionData extends RestContoller {
/** /**

View File

@ -21,7 +21,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\ProductQuery;
/** /**
* Products API. * Products API.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Products extends RestContoller { class Products extends RestContoller {
/** /**

View File

@ -14,7 +14,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* AbstractBlock class. * AbstractBlock class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
abstract class AbstractSchema { abstract class AbstractSchema {
/** /**

View File

@ -16,7 +16,7 @@ use Automattic\WooCommerce\Blocks\RestApi\Utilities\ProductImages;
/** /**
* AbstractBlock class. * AbstractBlock class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class CartItemSchema extends AbstractSchema { class CartItemSchema extends AbstractSchema {
/** /**

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* CartSchema class. * CartSchema class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class CartSchema extends AbstractSchema { class CartSchema extends AbstractSchema {
/** /**

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* ProductAttributeSchema class. * ProductAttributeSchema class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductAttributeSchema extends AbstractSchema { class ProductAttributeSchema extends AbstractSchema {
/** /**

View File

@ -14,7 +14,7 @@ use Automattic\WooCommerce\Blocks\RestApi\Utilities\ProductImages;
/** /**
* ProductSchema class. * ProductSchema class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductSchema extends AbstractSchema { class ProductSchema extends AbstractSchema {
/** /**

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* TermSchema class. * TermSchema class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class TermSchema extends AbstractSchema { class TermSchema extends AbstractSchema {
/** /**

View File

@ -17,7 +17,7 @@ use \WC_REST_Exception as RestException;
/** /**
* Woo Cart Controller class. * Woo Cart Controller class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class CartController { class CartController {

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* Pagination class. * Pagination class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class Pagination { class Pagination {

View File

@ -14,7 +14,7 @@ use Automattic\WooCommerce\Blocks\RestApi\StoreApi\Utilities\ProductQuery;
/** /**
* Product Query fllters class. * Product Query fllters class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductQueryFilters { class ProductQueryFilters {
/** /**

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* Product Query class. * Product Query class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class ProductQuery { class ProductQuery {
/** /**

View File

@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* Term Query class. * Term Query class.
* *
* @since $VID:$ * @since 2.5.0
*/ */
class TermQuery { class TermQuery {
/** /**

View File

@ -16,7 +16,7 @@ defined( 'ABSPATH' ) || exit;
/** /**
* BlocksWpQuery query. * BlocksWpQuery query.
* *
* @deprecated $VID:$ * @deprecated 2.5.0
*/ */
class BlocksWpQuery extends WP_Query { class BlocksWpQuery extends WP_Query {
/** /**

View File

@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Blocks * Plugin Name: WooCommerce Blocks
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
* Description: WooCommerce blocks for the Gutenberg editor. * Description: WooCommerce blocks for the Gutenberg editor.
* Version: 2.5.0-dev * Version: 2.5.0
* Author: Automattic * Author: Automattic
* Author URI: https://woocommerce.com * Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block * Text Domain: woo-gutenberg-products-block
@ -23,7 +23,7 @@ $minimum_wp_version = '5.0';
/** /**
* Whether notices must be displayed in the current page (plugins and WooCommerce pages). * Whether notices must be displayed in the current page (plugins and WooCommerce pages).
* *
* @since $VID:$ * @since 2.5.0
*/ */
function should_display_compatibility_notices() { function should_display_compatibility_notices() {
$current_screen = get_current_screen(); $current_screen = get_current_screen();
@ -46,7 +46,7 @@ if ( version_compare( $GLOBALS['wp_version'], $minimum_wp_version, '<' ) ) {
/** /**
* Outputs for an admin notice about running WooCommerce Blocks on outdated WordPress. * Outputs for an admin notice about running WooCommerce Blocks on outdated WordPress.
* *
* @since $VID:$ * @since 2.5.0
*/ */
function woocommerce_blocks_admin_unsupported_wp_notice() { function woocommerce_blocks_admin_unsupported_wp_notice() {
if ( should_display_compatibility_notices() ) { if ( should_display_compatibility_notices() ) {