Web Stories - Version 1.21.1

Version Description

Release Date: June 1, 2022.

  • Fixes an issue related to roles and capabilities that caused interference with other plugins.
Download this release

Release Info

Developer swissspidy
Plugin Icon 128x128 Web Stories
Version 1.21.1
Comparing to
See all releases

Code changes from version 1.21.0 to 1.21.1

includes/Tracking.php CHANGED
@@ -30,6 +30,7 @@ namespace Google\Web_Stories;
30
 
31
  use Google\Web_Stories\Integrations\Site_Kit;
32
  use Google\Web_Stories\User\Preferences;
 
33
 
34
  /**
35
  * Tracking class.
@@ -172,8 +173,15 @@ class Tracking extends Service_Base {
172
  * @return array User properties.
173
  */
174
  private function get_user_properties(): array {
175
- $role = ! empty( wp_get_current_user()->roles ) && \is_array( wp_get_current_user()->roles ) ? array_shift( wp_get_current_user()->roles ) : '';
176
- $experiments = implode( ',', $this->experiments->get_enabled_experiments() );
 
 
 
 
 
 
 
177
 
178
  $active_plugins = [];
179
 
30
 
31
  use Google\Web_Stories\Integrations\Site_Kit;
32
  use Google\Web_Stories\User\Preferences;
33
+ use WP_User;
34
 
35
  /**
36
  * Tracking class.
173
  * @return array User properties.
174
  */
175
  private function get_user_properties(): array {
176
+ /**
177
+ * Current user.
178
+ *
179
+ * @var null|WP_User $current_user
180
+ */
181
+ $current_user = wp_get_current_user();
182
+ $roles = ( $current_user instanceof WP_User ) ? $current_user->roles : [];
183
+ $role = ! empty( $roles ) && \is_array( $roles ) ? array_shift( $roles ) : '';
184
+ $experiments = implode( ',', $this->experiments->get_enabled_experiments() );
185
 
186
  $active_plugins = [];
187
 
includes/vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit6cea34e0d21963de1b75c87ec110a74e::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit049214305fa159bff1f629d369d7f6c1::getLoader();
includes/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit6cea34e0d21963de1b75c87ec110a74e
6
  {
7
  private static $loader;
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInit6cea34e0d21963de1b75c87ec110a74e
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit6cea34e0d21963de1b75c87ec110a74e', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Google_Web_Stories_Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit6cea34e0d21963de1b75c87ec110a74e', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Google_Web_Stories_Composer\Autoload\ComposerStaticInit6cea34e0d21963de1b75c87ec110a74e::getInitializer($loader));
31
 
32
  $loader->setClassMapAuthoritative(true);
33
  $loader->register(true);
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit049214305fa159bff1f629d369d7f6c1
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit049214305fa159bff1f629d369d7f6c1', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Google_Web_Stories_Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit049214305fa159bff1f629d369d7f6c1', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Google_Web_Stories_Composer\Autoload\ComposerStaticInit049214305fa159bff1f629d369d7f6c1::getInitializer($loader));
31
 
32
  $loader->setClassMapAuthoritative(true);
33
  $loader->register(true);
includes/vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Google_Web_Stories_Composer\Autoload;
6
 
7
- class ComposerStaticInit6cea34e0d21963de1b75c87ec110a74e
8
  {
9
  public static $classMap = array (
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -182,7 +182,7 @@ class ComposerStaticInit6cea34e0d21963de1b75c87ec110a74e
182
  public static function getInitializer(ClassLoader $loader)
183
  {
184
  return \Closure::bind(function () use ($loader) {
185
- $loader->classMap = ComposerStaticInit6cea34e0d21963de1b75c87ec110a74e::$classMap;
186
 
187
  }, null, ClassLoader::class);
188
  }
4
 
5
  namespace Google_Web_Stories_Composer\Autoload;
6
 
7
+ class ComposerStaticInit049214305fa159bff1f629d369d7f6c1
8
  {
9
  public static $classMap = array (
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
182
  public static function getInitializer(ClassLoader $loader)
183
  {
184
  return \Closure::bind(function () use ($loader) {
185
+ $loader->classMap = ComposerStaticInit049214305fa159bff1f629d369d7f6c1::$classMap;
186
 
187
  }, null, ClassLoader::class);
188
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@
3
  Contributors: google
4
  Tested up to: 6.0
5
  Requires at least: 5.5
6
- Stable tag: 1.20.0
7
  License: Apache License 2.0
8
  License URI: https://www.apache.org/licenses/LICENSE-2.0
9
  Tags: web stories, stories, amp, storytelling, google
@@ -109,6 +109,12 @@ Web Stories are powered by [AMP](https://amp.dev/), which adds some restrictions
109
 
110
  For the plugin's full changelog, please see [the Releases page on GitHub](https://github.com/googleforcreators/web-stories-wp/releases).
111
 
 
 
 
 
 
 
112
  = 1.21.0 =
113
 
114
  **Release Date:** May 24, 2022.
@@ -129,20 +135,11 @@ For the plugin's full changelog, please see [the Releases page on GitHub](https:
129
  * Enhancement: improved keyboard navigation on the canvas
130
  * Bug fixes and performance improvements.
131
 
132
- = 1.19.0 =
133
 
134
- **Release Date:** March 29, 2022.
135
 
136
- * New feature: floating menu bar for easier editing.
137
- * New feature: support for adding captions and disabling looping for page background audio.
138
- * New feature: ability to upload custom fonts.
139
- * New feature: story locking, displaying a message if someone else is already editing a story.
140
- * Enhancement: overhauled workspace, consolidating sidebar to create more space for the canvas.
141
- * Enhancement: make it easier to apply saved styles.
142
- * Enhancement: add detection for possible server misconfiguration related to CORS.
143
- * Bug fixes and performance improvements.
144
-
145
- == Upgrade Notice ==
146
 
147
  = 1.21.0 =
148
 
@@ -151,7 +148,3 @@ This release includes WordPress 6.0 compatibility, audio and captions hotlinking
151
  = 1.20.0 =
152
 
153
  Various improvements to the workspace UI, as well as various bug fixes and performance improvements.
154
-
155
- = 1.19.0 =
156
-
157
- Feature-packed release bringing you a revamped workspace UI with a consolidated sidebar, floating menu bar, background audio captions, custom fonts, and much more!
3
  Contributors: google
4
  Tested up to: 6.0
5
  Requires at least: 5.5
6
+ Stable tag: 1.21.0
7
  License: Apache License 2.0
8
  License URI: https://www.apache.org/licenses/LICENSE-2.0
9
  Tags: web stories, stories, amp, storytelling, google
109
 
110
  For the plugin's full changelog, please see [the Releases page on GitHub](https://github.com/googleforcreators/web-stories-wp/releases).
111
 
112
+ = 1.21.1 =
113
+
114
+ **Release Date:** June 1, 2022.
115
+
116
+ * Fixes an issue related to roles and capabilities that caused interference with other plugins.
117
+
118
  = 1.21.0 =
119
 
120
  **Release Date:** May 24, 2022.
135
  * Enhancement: improved keyboard navigation on the canvas
136
  * Bug fixes and performance improvements.
137
 
138
+ == Upgrade Notice ==
139
 
140
+ = 1.21.1 =
141
 
142
+ This releases fixes an issue related to roles and capabilities that caused interference with other plugins.
 
 
 
 
 
 
 
 
 
143
 
144
  = 1.21.0 =
145
 
148
  = 1.20.0 =
149
 
150
  Various improvements to the workspace UI, as well as various bug fixes and performance improvements.
 
 
 
 
third-party/vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInite6afad5d469a4b7c43916ace6f58c556::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit8736e0f306b0d5db5900e054e72ca709::getLoader();
third-party/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInite6afad5d469a4b7c43916ace6f58c556
6
  {
7
  private static $loader;
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInite6afad5d469a4b7c43916ace6f58c556
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInite6afad5d469a4b7c43916ace6f58c556', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Google_Web_Stories_Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInite6afad5d469a4b7c43916ace6f58c556', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Google_Web_Stories_Composer\Autoload\ComposerStaticInite6afad5d469a4b7c43916ace6f58c556::getInitializer($loader));
31
 
32
  $loader->setClassMapAuthoritative(true);
33
  $loader->register(true);
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit8736e0f306b0d5db5900e054e72ca709
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit8736e0f306b0d5db5900e054e72ca709', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Google_Web_Stories_Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit8736e0f306b0d5db5900e054e72ca709', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Google_Web_Stories_Composer\Autoload\ComposerStaticInit8736e0f306b0d5db5900e054e72ca709::getInitializer($loader));
31
 
32
  $loader->setClassMapAuthoritative(true);
33
  $loader->register(true);
third-party/vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Google_Web_Stories_Composer\Autoload;
6
 
7
- class ComposerStaticInite6afad5d469a4b7c43916ace6f58c556
8
  {
9
  public static $classMap = array (
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -1213,7 +1213,7 @@ class ComposerStaticInite6afad5d469a4b7c43916ace6f58c556
1213
  public static function getInitializer(ClassLoader $loader)
1214
  {
1215
  return \Closure::bind(function () use ($loader) {
1216
- $loader->classMap = ComposerStaticInite6afad5d469a4b7c43916ace6f58c556::$classMap;
1217
 
1218
  }, null, ClassLoader::class);
1219
  }
4
 
5
  namespace Google_Web_Stories_Composer\Autoload;
6
 
7
+ class ComposerStaticInit8736e0f306b0d5db5900e054e72ca709
8
  {
9
  public static $classMap = array (
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
1213
  public static function getInitializer(ClassLoader $loader)
1214
  {
1215
  return \Closure::bind(function () use ($loader) {
1216
+ $loader->classMap = ComposerStaticInit8736e0f306b0d5db5900e054e72ca709::$classMap;
1217
 
1218
  }, null, ClassLoader::class);
1219
  }
web-stories.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin URI: https://wp.stories.google/
10
  * Author: Google
11
  * Author URI: https://opensource.google.com/
12
- * Version: 1.21.0
13
  * Requires at least: 5.5
14
  * Requires PHP: 7.2
15
  * Text Domain: web-stories
@@ -40,7 +40,7 @@ if ( ! defined( 'ABSPATH' ) ) {
40
  exit;
41
  }
42
 
43
- define( 'WEBSTORIES_VERSION', '1.21.0' );
44
  define( 'WEBSTORIES_DB_VERSION', '3.0.14' );
45
  define( 'WEBSTORIES_AMP_VERSION', '2.3.0-alpha' ); // Version of the AMP library included in the plugin.
46
  define( 'WEBSTORIES_PLUGIN_FILE', __FILE__ );
9
  * Plugin URI: https://wp.stories.google/
10
  * Author: Google
11
  * Author URI: https://opensource.google.com/
12
+ * Version: 1.21.1
13
  * Requires at least: 5.5
14
  * Requires PHP: 7.2
15
  * Text Domain: web-stories
40
  exit;
41
  }
42
 
43
+ define( 'WEBSTORIES_VERSION', '1.21.1' );
44
  define( 'WEBSTORIES_DB_VERSION', '3.0.14' );
45
  define( 'WEBSTORIES_AMP_VERSION', '2.3.0-alpha' ); // Version of the AMP library included in the plugin.
46
  define( 'WEBSTORIES_PLUGIN_FILE', __FILE__ );