Skip to content

Commit

Permalink
Add the package files for Blocks 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Sadowski committed Jul 16, 2021
1 parent 9af8cb1 commit bd279b6
Show file tree
Hide file tree
Showing 20 changed files with 9,773 additions and 1,670 deletions.
2 changes: 1 addition & 1 deletion packages/woocommerce-blocks/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.2
Tested up to: 5.5
Requires PHP: 5.6
Stable tag: 3.1.0
Stable tag: 3.1.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion packages/woocommerce-blocks/src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '3.1.0';
$version = '3.1.1';
return new NewPackage(
$version,
dirname( __DIR__ )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function get_filtered_price( $request ) {
* @param array $attributes Attributes to count, either names or ids.
* @return array termId=>count pairs.
*/
public function get_attribute_counts( $request, $attributes = [] ) {
public function get_attribute_counts( $request, $attributes = array() ) {
global $wpdb;

// Remove paging and sorting params from the request.
Expand Down Expand Up @@ -90,7 +90,14 @@ public function get_attribute_counts( $request, $attributes = [] ) {
$attributes = array_map( 'wc_attribute_taxonomy_name_by_id', wp_parse_id_list( $attributes ) );
}

$attributes_to_count = array_map( 'wc_sanitize_taxonomy_name', $attributes );
$attributes_to_count = array_map(
function( $attribute ) {
$attribute = wc_sanitize_taxonomy_name( $attribute );
return esc_sql( $attribute );
},
$attributes
);

$attributes_to_count_sql = 'AND term_taxonomy.taxonomy IN ("' . implode( '","', $attributes_to_count ) . '")';
$attribute_count_sql = "
SELECT COUNT( DISTINCT posts.ID ) as term_count, terms.term_id as term_count_id
Expand Down
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: 3.1.0
* Version: 3.1.1
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload_packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/class-autoloader-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/class-classes-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/class-files-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/class-plugins-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/class-version-selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jp7e249d49c3c8e711c213fd730049b3ec;
namespace Automattic\Jetpack\Autoloader\jpaf13abb4ad06f9cdacff04e7aa766ca8;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ClassLoader
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
return call_user_func_array('array_merge', $this->prefixesPsr0);
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
}

return array();
Expand Down
548 changes: 548 additions & 0 deletions vendor/composer/autoload_classmap.php

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions vendor/composer/autoload_namespaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
$baseDir = dirname($vendorDir);

return array(
'cli' => array($vendorDir . '/wp-cli/php-cli-tools/lib'),
'WP_CLI' => array($vendorDir . '/wp-cli/wp-cli/php'),
'Requests' => array($vendorDir . '/rmccue/requests/library'),
'Mustache' => array($vendorDir . '/mustache/mustache/src'),
);
14 changes: 14 additions & 0 deletions vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,24 @@
$baseDir = dirname($vendorDir);

return array(
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'),
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
'WP_CLI\\I18n\\' => array($vendorDir . '/wp-cli/i18n-command/src'),
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'),
'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'),
'Pelago\\' => array($vendorDir . '/pelago/emogrifier/src'),
'Peast\\test\\' => array($vendorDir . '/mck89/peast/test/Peast'),
'Peast\\' => array($vendorDir . '/mck89/peast/lib/Peast'),
'Mustangostang\\' => array($vendorDir . '/wp-cli/mustangostang-spyc/src'),
'MaxMind\\Db\\' => array($vendorDir . '/maxmind-db/reader/src/MaxMind/Db'),
'Gettext\\Languages\\' => array($vendorDir . '/gettext/languages/src'),
'Gettext\\' => array($vendorDir . '/gettext/gettext/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
'Automattic\\WooCommerce\\Tests\\' => array($baseDir . '/tests/php/src'),
'Automattic\\WooCommerce\\Testing\\Tools\\' => array($baseDir . '/tests/Tools'),
Expand Down
21 changes: 21 additions & 0 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static function loadClassLoader($class)
}
}

/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
Expand Down Expand Up @@ -47,6 +50,24 @@ public static function getLoader()

$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit1e69adc4e12f3a0de649acee72d963eb::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire1e69adc4e12f3a0de649acee72d963eb($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequire1e69adc4e12f3a0de649acee72d963eb($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
}
}
Loading

0 comments on commit bd279b6

Please sign in to comment.