WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo - Version 2.6.1

Version Description

  • 2021-07-01 =
  • Fix - Updates the notes query filters to prevent breaking the WooCommerce > Home inbox.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6.0 to 2.6.1

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
3
  = 2.6.0 - 2021-06-23 =
4
  * Add - Notify the admin if WordPress.com user connection is broken.
5
  * Add - Experimental PHP client for Explat.
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 2.6.1 - 2021-07-01 =
4
+ * Fix - Updates the notes query filters to prevent breaking the WooCommerce > Home inbox.
5
+
6
  = 2.6.0 - 2021-06-23 =
7
  * Add - Notify the admin if WordPress.com user connection is broken.
8
  * Add - Experimental PHP client for Explat.
includes/class-wc-payments.php CHANGED
@@ -584,11 +584,10 @@ class WC_Payments {
584
  */
585
  public static function possibly_add_source_to_notes_query( $args, $request ) {
586
  if ( isset( $request['source'] ) && ! isset( $args['source'] ) ) {
587
- $args['source'] = 'woocommerce-payments';
588
  return array_merge(
589
  $args,
590
  [
591
- 'source' => $request['source'],
592
  ]
593
  );
594
  }
@@ -606,8 +605,13 @@ class WC_Payments {
606
  * @return string Modified where clause.
607
  */
608
  public static function possibly_add_note_source_where_clause( $where_clauses, $args ) {
609
- if ( isset( $args['source'] ) && false === strpos( $where_clauses, 'AND source IN' ) ) {
610
- $escaped_where_source = sprintf( "'%s'", esc_sql( $args['source'] ) );
 
 
 
 
 
611
  $where_clauses .= " AND source IN ($escaped_where_source)";
612
  }
613
  return $where_clauses;
584
  */
585
  public static function possibly_add_source_to_notes_query( $args, $request ) {
586
  if ( isset( $request['source'] ) && ! isset( $args['source'] ) ) {
 
587
  return array_merge(
588
  $args,
589
  [
590
+ 'source' => wp_parse_list( $request['source'] ),
591
  ]
592
  );
593
  }
605
  * @return string Modified where clause.
606
  */
607
  public static function possibly_add_note_source_where_clause( $where_clauses, $args ) {
608
+ if ( ! empty( $args['source'] ) && false === strpos( $where_clauses, 'AND source IN' ) ) {
609
+ $where_source_array = [];
610
+ foreach ( $args['source'] as $args_type ) {
611
+ $args_type = trim( $args_type );
612
+ $where_source_array[] = "'" . esc_sql( $args_type ) . "'";
613
+ }
614
+ $escaped_where_source = implode( ',', $where_source_array );
615
  $where_clauses .= " AND source IN ($escaped_where_source)";
616
  }
617
  return $where_clauses;
languages/woocommerce-payments.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Payments 2.6.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
- "POT-Creation-Date: 2021-06-23 14:45:15+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Payments 2.6.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
+ "POT-Creation-Date: 2021-07-01 10:56:33+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, payment, payment request, credit card, automattic
4
  Requires at least: 5.5
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
- Stable tag: 2.6.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -101,6 +101,9 @@ Please note that our support for the checkout block is still experimental and th
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 2.6.0 - 2021-06-23 =
105
  * Add - Notify the admin if WordPress.com user connection is broken.
106
  * Add - Experimental PHP client for Explat.
4
  Requires at least: 5.5
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
+ Stable tag: 2.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 2.6.1 - 2021-07-01 =
105
+ * Fix - Updates the notes query filters to prevent breaking the WooCommerce > Home inbox.
106
+
107
  = 2.6.0 - 2021-06-23 =
108
  * Add - Notify the admin if WordPress.com user connection is broken.
109
  * Add - Experimental PHP client for Explat.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf072e6a69625454407ef91e265493635::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit285291f3aac9ab4eb38b857159b6a8f9
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire285291f3aac9ab4eb38b857159b6a8f9($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire285291f3aac9ab4eb38b857159b6a8f9($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf072e6a69625454407ef91e265493635
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitf072e6a69625454407ef91e265493635', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitf072e6a69625454407ef91e265493635', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitf072e6a69625454407ef91e265493635::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitf072e6a69625454407ef91e265493635::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequiref072e6a69625454407ef91e265493635($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequiref072e6a69625454407ef91e265493635($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
@@ -71,9 +71,9 @@ class ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
- $loader->prefixLengthsPsr4 = ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9::$prefixLengthsPsr4;
75
- $loader->prefixDirsPsr4 = ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9::$prefixDirsPsr4;
76
- $loader->classMap = ComposerStaticInit285291f3aac9ab4eb38b857159b6a8f9::$classMap;
77
 
78
  }, null, ClassLoader::class);
79
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf072e6a69625454407ef91e265493635
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf072e6a69625454407ef91e265493635::$prefixLengthsPsr4;
75
+ $loader->prefixDirsPsr4 = ComposerStaticInitf072e6a69625454407ef91e265493635::$prefixDirsPsr4;
76
+ $loader->classMap = ComposerStaticInitf072e6a69625454407ef91e265493635::$classMap;
77
 
78
  }, null, ClassLoader::class);
79
  }
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp285291f3aac9ab4eb38b857159b6a8f9;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpf072e6a69625454407ef91e265493635;
9
 
10
  // phpcs:ignore
11
 
woocommerce-payments.php CHANGED
@@ -11,7 +11,7 @@
11
  * WC requires at least: 4.0
12
  * WC tested up to: 5.4
13
  * Requires WP: 5.5
14
- * Version: 2.6.0
15
  *
16
  * @package WooCommerce\Payments
17
  */
11
  * WC requires at least: 4.0
12
  * WC tested up to: 5.4
13
  * Requires WP: 5.5
14
+ * Version: 2.6.1
15
  *
16
  * @package WooCommerce\Payments
17
  */