Real Media Library: Media Library Folder & File Manager - Version 4.17.5

Version Description

Download this release

Release Info

Developer devowl
Plugin Icon wp plugin Real Media Library: Media Library Folder & File Manager
Version 4.17.5
Comparing to
See all releases

Code changes from version 4.17.4 to 4.17.5

CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
  All notable changes to this project will be documented in this file.
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
 
 
 
 
 
 
 
 
 
6
  ## 4.17.4 (2021-12-01)
7
 
8
 
3
  All notable changes to this project will be documented in this file.
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
 
6
+ ## 4.17.5 (2021-12-15)
7
+
8
+ **Note:** This package (@devowl-wp/real-media-library) has been updated because a dependency, which is also shipped with this package, has changed.
9
+
10
+
11
+
12
+
13
+
14
  ## 4.17.4 (2021-12-01)
15
 
16
 
inc/base/others/cachebuster-lib.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* This file was automatically generated (Wed Dec 01 2021 07:00:40 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
  'es6-shim' => '0.35.6',
5
  'es7-shim' => '6.0.0',
1
  <?php
2
+ /* This file was automatically generated (Wed Dec 15 2021 11:01:10 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
  'es6-shim' => '0.35.6',
5
  'es7-shim' => '6.0.0',
inc/base/others/cachebuster.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* This file was automatically generated (Wed Dec 01 2021 07:00:40 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
  'src/public/dist/rml_gutenberg.lite.js' => '3d37a223a96263169ae2b80a657401a6',
5
  'src/public/dist/rml_gutenberg.pro.js' => '092861083b3d0f93be211d69a05f4ecd',
1
  <?php
2
+ /* This file was automatically generated (Wed Dec 15 2021 11:01:10 GMT+0000 (Coordinated Universal Time)). */
3
  return [
4
  'src/public/dist/rml_gutenberg.lite.js' => '3d37a223a96263169ae2b80a657401a6',
5
  'src/public/dist/rml_gutenberg.pro.js' => '092861083b3d0f93be211d69a05f4ecd',
index.php CHANGED
@@ -8,7 +8,7 @@
8
  * Description: Organize uploaded media in folders, collections and galleries: A file manager for WordPress. Media management made easy!
9
  * Author: devowl.io
10
  * Author URI: https://devowl.io
11
- * Version: 4.17.4
12
  * Text Domain: real-media-library
13
  * Domain Path: /languages
14
  */
8
  * Description: Organize uploaded media in folders, collections and galleries: A file manager for WordPress. Media management made easy!
9
  * Author: devowl.io
10
  * Author URI: https://devowl.io
11
+ * Version: 4.17.5
12
  * Text Domain: real-media-library
13
  * Domain Path: /languages
14
  */
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit28b51af533533a64282ac87ba152b38e::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -5,7 +5,7 @@ namespace MatthiasWeb\RealMediaLibrary\Vendor\Composer;
5
  use MatthiasWeb\RealMediaLibrary\Vendor\Composer\Semver\VersionParser;
6
  class InstalledVersions
7
  {
8
- private static $installed = array('root' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'bd71b779886dddfc22e73c770110528040b10a2d', 'name' => '__root__'), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'bd71b779886dddfc22e73c770110528040b10a2d'), 'devowl-wp/freemium' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => 'f46163e56a6be9eace5a48ecd0c5c8d1680219a6'), 'devowl-wp/real-utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '8f35c9a3c7cc4a086422c95356b890212cbb8c65'), 'devowl-wp/utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '3b2eee5934e5ce0d94cdb5f4736259d448fe8531'), 'matthiasweb/wordpress-plugin-updater' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'c801fd86c4cf97f3b0c59d653c5e7bce99cebb73')));
9
  public static function getInstalledPackages()
10
  {
11
  return \array_keys(self::$installed['versions']);
5
  use MatthiasWeb\RealMediaLibrary\Vendor\Composer\Semver\VersionParser;
6
  class InstalledVersions
7
  {
8
+ private static $installed = array('root' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => '2103391b30ff8412f035f81f5cbd372b8f5910d0', 'name' => '__root__'), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => '2103391b30ff8412f035f81f5cbd372b8f5910d0'), 'devowl-wp/freemium' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => 'f46163e56a6be9eace5a48ecd0c5c8d1680219a6'), 'devowl-wp/real-utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '8f35c9a3c7cc4a086422c95356b890212cbb8c65'), 'devowl-wp/utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '3b2eee5934e5ce0d94cdb5f4736259d448fe8531'), 'matthiasweb/wordpress-plugin-updater' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'c801fd86c4cf97f3b0c59d653c5e7bce99cebb73')));
9
  public static function getInstalledPackages()
10
  {
11
  return \array_keys(self::$installed['versions']);
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a', '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 __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a::getInitializer($loader));
34
  } else {
35
  $classMap = require __DIR__ . '/autoload_classmap.php';
36
  if ($classMap) {
@@ -42,19 +42,19 @@ class ComposerAutoloaderInit0ae12500f7ca3ce5640f5f524c6fd28a
42
  $loader->register(true);
43
 
44
  if ($useStaticLoader) {
45
- $includeFiles = Composer\Autoload\ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a::$files;
46
  } else {
47
  $includeFiles = require __DIR__ . '/autoload_files.php';
48
  }
49
  foreach ($includeFiles as $fileIdentifier => $file) {
50
- composerRequire0ae12500f7ca3ce5640f5f524c6fd28a($fileIdentifier, $file);
51
  }
52
 
53
  return $loader;
54
  }
55
  }
56
 
57
- function composerRequire0ae12500f7ca3ce5640f5f524c6fd28a($fileIdentifier, $file)
58
  {
59
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
60
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit28b51af533533a64282ac87ba152b38e
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit28b51af533533a64282ac87ba152b38e', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit28b51af533533a64282ac87ba152b38e', '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 __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit28b51af533533a64282ac87ba152b38e::getInitializer($loader));
34
  } else {
35
  $classMap = require __DIR__ . '/autoload_classmap.php';
36
  if ($classMap) {
42
  $loader->register(true);
43
 
44
  if ($useStaticLoader) {
45
+ $includeFiles = Composer\Autoload\ComposerStaticInit28b51af533533a64282ac87ba152b38e::$files;
46
  } else {
47
  $includeFiles = require __DIR__ . '/autoload_files.php';
48
  }
49
  foreach ($includeFiles as $fileIdentifier => $file) {
50
+ composerRequire28b51af533533a64282ac87ba152b38e($fileIdentifier, $file);
51
  }
52
 
53
  return $loader;
54
  }
55
  }
56
 
57
+ function composerRequire28b51af533533a64282ac87ba152b38e($fileIdentifier, $file)
58
  {
59
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
60
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a
8
  {
9
  public static $files = array (
10
  'b45694f813fe096b704a1908536cfec0' => __DIR__ . '/..' . '/devowl-wp/real-utils/src/autoload.php',
@@ -144,9 +144,9 @@ class ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
- $loader->prefixLengthsPsr4 = ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a::$prefixLengthsPsr4;
148
- $loader->prefixDirsPsr4 = ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a::$prefixDirsPsr4;
149
- $loader->classMap = ComposerStaticInit0ae12500f7ca3ce5640f5f524c6fd28a::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit28b51af533533a64282ac87ba152b38e
8
  {
9
  public static $files = array (
10
  'b45694f813fe096b704a1908536cfec0' => __DIR__ . '/..' . '/devowl-wp/real-utils/src/autoload.php',
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
+ $loader->prefixLengthsPsr4 = ComposerStaticInit28b51af533533a64282ac87ba152b38e::$prefixLengthsPsr4;
148
+ $loader->prefixDirsPsr4 = ComposerStaticInit28b51af533533a64282ac87ba152b38e::$prefixDirsPsr4;
149
+ $loader->classMap = ComposerStaticInit28b51af533533a64282ac87ba152b38e::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
vendor/composer/installed.php CHANGED
@@ -2,4 +2,4 @@
2
 
3
  namespace MatthiasWeb\RealMediaLibrary\Vendor;
4
 
5
- return array('root' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'bd71b779886dddfc22e73c770110528040b10a2d', 'name' => '__root__'), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'bd71b779886dddfc22e73c770110528040b10a2d'), 'devowl-wp/freemium' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => 'f46163e56a6be9eace5a48ecd0c5c8d1680219a6'), 'devowl-wp/real-utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '8f35c9a3c7cc4a086422c95356b890212cbb8c65'), 'devowl-wp/utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '3b2eee5934e5ce0d94cdb5f4736259d448fe8531'), 'matthiasweb/wordpress-plugin-updater' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'c801fd86c4cf97f3b0c59d653c5e7bce99cebb73')));
2
 
3
  namespace MatthiasWeb\RealMediaLibrary\Vendor;
4
 
5
+ return array('root' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => '2103391b30ff8412f035f81f5cbd372b8f5910d0', 'name' => '__root__'), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => '2103391b30ff8412f035f81f5cbd372b8f5910d0'), 'devowl-wp/freemium' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => 'f46163e56a6be9eace5a48ecd0c5c8d1680219a6'), 'devowl-wp/real-utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '8f35c9a3c7cc4a086422c95356b890212cbb8c65'), 'devowl-wp/utils' => array('pretty_version' => 'dev-build/composer-installedversions', 'version' => 'dev-build/composer-installedversions', 'aliases' => array(), 'reference' => '3b2eee5934e5ce0d94cdb5f4736259d448fe8531'), 'matthiasweb/wordpress-plugin-updater' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array(), 'reference' => 'c801fd86c4cf97f3b0c59d653c5e7bce99cebb73')));
vendor/devowl-wp/real-utils/languages/backend/real-utils-de_DE_formal.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
- "Language-Team: German (formal) <https://translate.devowl.io/projects/"
9
- "devowl-wp-real-utils-backend-php/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
+ "Language-Team: German (formal) <https://translate.devowl.io/projects/devowl-"
9
+ "wp-real-utils-backend-php/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
vendor/devowl-wp/real-utils/languages/frontend/real-utils-de_DE_formal.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
- "Language-Team: German (formal) <https://translate.devowl.io/projects/"
9
- "devowl-wp-real-utils-frontend-javascript/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
+ "Language-Team: German (formal) <https://translate.devowl.io/projects/devowl-"
9
+ "wp-real-utils-frontend-javascript/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
vendor/devowl-wp/utils/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
  All notable changes to this project will be documented in this file.
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  # 1.12.0 (2021-12-01)
7
 
8
 
3
  All notable changes to this project will be documented in this file.
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
 
6
+ ## 1.12.1 (2021-12-15)
7
+
8
+
9
+ ### build
10
+
11
+ * copy JavaScript libraries for Webpack plugin build (CU-1wzqjg7)
12
+
13
+
14
+ ### fix
15
+
16
+ * compatibility with latest WordPress 5.9 beta version (https://git.io/JDL3e, CU-1wzt14u)
17
+ * compatibility with Requests v2.0 (CU-1wzt14u)
18
+
19
+
20
+
21
+
22
+
23
  # 1.12.0 (2021-12-01)
24
 
25
 
vendor/devowl-wp/utils/languages/backend/utils-de_DE_formal.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
- "Language-Team: German (formal) <https://translate.devowl.io/projects/"
9
- "devowl-wp-utils-backend-php/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -33,8 +33,8 @@ msgstr ""
33
  msgid ""
34
  "What is the WordPress REST API and how to enable it? %1$sLearn more%2$s."
35
  msgstr ""
36
- "Was ist die WordPress-REST-API und wie kann sie aktiviert werden? %1$"
37
- "sKlicken Sie hier, um mehr darüber zu erfahren%2$s."
38
 
39
  #: Service.php:1
40
  msgid "https://devowl.io/knowledge-base/wordpress-rest-api-does-not-respond/"
5
  "POT-Creation-Date: n/a\n"
6
  "PO-Revision-Date: 2021-11-30 16:18+0000\n"
7
  "Last-Translator: Matthias Günter <matthias.guenter@devowl.io>\n"
8
+ "Language-Team: German (formal) <https://translate.devowl.io/projects/devowl-"
9
+ "wp-utils-backend-php/develop/de@formal/>\n"
10
  "Language: de_DE_formal\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
33
  msgid ""
34
  "What is the WordPress REST API and how to enable it? %1$sLearn more%2$s."
35
  msgstr ""
36
+ "Was ist die WordPress-REST-API und wie kann sie aktiviert werden? "
37
+ "%1$sKlicken Sie hier, um mehr darüber zu erfahren%2$s."
38
 
39
  #: Service.php:1
40
  msgid "https://devowl.io/knowledge-base/wordpress-rest-api-does-not-respond/"
vendor/devowl-wp/utils/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "@devowl-wp/utils",
3
- "version": "1.12.0",
4
  "description": "Utility functionality for all your WordPress plugins.",
5
  "author": "devowl",
6
  "homepage": "https://devowl.io",
@@ -152,7 +152,7 @@
152
  "@devowl-wp/composer-licenses": "^0.1.3",
153
  "@devowl-wp/continuous-integration": "^0.2.0",
154
  "@devowl-wp/eslint-config": "^0.1.3",
155
- "@devowl-wp/grunt-continuous-localization": "^0.2.3",
156
  "@devowl-wp/wp-webpack": "^0.1.4",
157
  "@devowl-wp/yarn-licenses": "^0.1.3",
158
  "@types/concurrently": "~6.0.1",
1
  {
2
  "name": "@devowl-wp/utils",
3
+ "version": "1.12.1",
4
  "description": "Utility functionality for all your WordPress plugins.",
5
  "author": "devowl",
6
  "homepage": "https://devowl.io",
152
  "@devowl-wp/composer-licenses": "^0.1.3",
153
  "@devowl-wp/continuous-integration": "^0.2.0",
154
  "@devowl-wp/eslint-config": "^0.1.3",
155
+ "@devowl-wp/grunt-continuous-localization": "^0.3.0",
156
  "@devowl-wp/wp-webpack": "^0.1.4",
157
  "@devowl-wp/yarn-licenses": "^0.1.3",
158
  "@types/concurrently": "~6.0.1",
vendor/devowl-wp/utils/src/Assets.php CHANGED
@@ -896,14 +896,17 @@ JS;
896
  * @codeCoverageIgnore Completely relies on external library!
897
  */
898
  public function getAsciiUrl($url) {
899
- global $wp_version;
900
- if (\version_compare($wp_version, '5.9.0', '>=') || \strpos($wp_version, '5.9-alpha') === 0) {
901
- if (!\class_exists(\WpOrg\Requests\Iri::class)) {
902
- require_once ABSPATH . WPINC . '/Requests/Iri.php';
903
- }
904
- if (!\class_exists(\WpOrg\Requests\IdnaEncoder::class)) {
905
- require_once ABSPATH . WPINC . '/Requests/IdnaEncoder.php';
906
- }
 
 
 
907
  $iri = new \WpOrg\Requests\Iri($url);
908
  $iri->host = \WpOrg\Requests\IdnaEncoder::encode($iri->host);
909
  return $iri->uri;
896
  * @codeCoverageIgnore Completely relies on external library!
897
  */
898
  public function getAsciiUrl($url) {
899
+ if (\class_exists(\WpOrg\Requests\Iri::class)) {
900
+ /*
901
+ * WordPress 5.9 introduced in first instance of their beta Requests 2.0, afterwards they
902
+ * reverted the changes. The migration to Requests 2.0 got moved to WP 6.0. References:
903
+ *
904
+ * - https://git.io/JDL3e
905
+ * - https://core.trac.wordpress.org/ticket/54504#comment:22
906
+ *
907
+ * So, with this condition we make sure it supports Requests 2.0 in all cases. Requests 2.0
908
+ * supports autoloader, so we can safely check if the class exists.
909
+ */
910
  $iri = new \WpOrg\Requests\Iri($url);
911
  $iri->host = \WpOrg\Requests\IdnaEncoder::encode($iri->host);
912
  return $iri->uri;