AMP for WordPress - Version 2.2.3

Version Description

Download this release

Release Info

Developer westonruter
Plugin Icon 128x128 AMP for WordPress
Version 2.2.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

amp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://amp-wp.org
6
  * Author: AMP Project Contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
- * Version: 2.2.2
9
  * License: GPLv2 or later
10
  * Requires at least: 4.9
11
  * Requires PHP: 5.6
@@ -15,7 +15,7 @@
15
 
16
  define( 'AMP__FILE__', __FILE__ );
17
  define( 'AMP__DIR__', dirname( __FILE__ ) );
18
- define( 'AMP__VERSION', '2.2.2' );
19
 
20
  /**
21
  * Errors encountered while loading the plugin.
5
  * Plugin URI: https://amp-wp.org
6
  * Author: AMP Project Contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
+ * Version: 2.2.3
9
  * License: GPLv2 or later
10
  * Requires at least: 4.9
11
  * Requires PHP: 5.6
15
 
16
  define( 'AMP__FILE__', __FILE__ );
17
  define( 'AMP__DIR__', dirname( __FILE__ ) );
18
+ define( 'AMP__VERSION', '2.2.3' );
19
 
20
  /**
21
  * Errors encountered while loading the plugin.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: google, xwp, rtcamp, automattic, westonruter, albertomedina, schle
3
  Tags: page experience, performance, amp, mobile, optimization, accelerated mobile pages
4
  Requires at least: 4.9
5
  Tested up to: 5.9
6
- Stable tag: 2.2.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
3
  Tags: page experience, performance, amp, mobile, optimization, accelerated mobile pages
4
  Requires at least: 4.9
5
  Tested up to: 5.9
6
+ Stable tag: 2.2.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitdbb2594419d5483dd57e44708b78a471::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -21,8 +21,6 @@ use Composer\Semver\VersionParser;
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
24
- *
25
- * @final
26
  */
27
  class InstalledVersions
28
  {
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
 
 
24
  */
25
  class InstalledVersions
26
  {
vendor/composer/autoload_classmap.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
- $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
+ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_files.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
- $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
+ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_namespaces.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
- $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
+ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_psr4.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
- $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
+ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1
6
  {
7
  private static $loader;
8
 
@@ -24,18 +24,41 @@ class ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1', 'loadClassLoader'), true, true);
28
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1', 'loadClassLoader'));
30
 
31
- require __DIR__ . '/autoload_static.php';
32
- \Composer\Autoload\ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1::getInitializer($loader)();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  $loader->register(true);
35
 
36
- $includeFiles = \Composer\Autoload\ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1::$files;
 
 
 
 
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
- composerRequiref6b2e7006ad3ce9b7d99b34b61a60ad1($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
@@ -47,7 +70,7 @@ class ComposerAutoloaderInitf6b2e7006ad3ce9b7d99b34b61a60ad1
47
  * @param string $file
48
  * @return void
49
  */
50
- function composerRequiref6b2e7006ad3ce9b7d99b34b61a60ad1($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitdbb2594419d5483dd57e44708b78a471
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInitdbb2594419d5483dd57e44708b78a471', 'loadClassLoader'), true, true);
28
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInitdbb2594419d5483dd57e44708b78a471', 'loadClassLoader'));
30
 
31
+ $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
+ if ($useStaticLoader) {
33
+ require __DIR__ . '/autoload_static.php';
34
+
35
+ call_user_func(\Composer\Autoload\ComposerStaticInitdbb2594419d5483dd57e44708b78a471::getInitializer($loader));
36
+ } else {
37
+ $map = require __DIR__ . '/autoload_namespaces.php';
38
+ foreach ($map as $namespace => $path) {
39
+ $loader->set($namespace, $path);
40
+ }
41
+
42
+ $map = require __DIR__ . '/autoload_psr4.php';
43
+ foreach ($map as $namespace => $path) {
44
+ $loader->setPsr4($namespace, $path);
45
+ }
46
+
47
+ $classMap = require __DIR__ . '/autoload_classmap.php';
48
+ if ($classMap) {
49
+ $loader->addClassMap($classMap);
50
+ }
51
+ }
52
 
53
  $loader->register(true);
54
 
55
+ if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInitdbb2594419d5483dd57e44708b78a471::$files;
57
+ } else {
58
+ $includeFiles = require __DIR__ . '/autoload_files.php';
59
+ }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequiredbb2594419d5483dd57e44708b78a471($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
70
  * @param string $file
71
  * @return void
72
  */
73
+ function composerRequiredbb2594419d5483dd57e44708b78a471($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1
8
  {
9
  public static $files = array (
10
  '356506e5d3d2f49e680971cd925046fa' => __DIR__ . '/..' . '/ampproject/amp-toolbox/include/compatibility-fixes.php',
@@ -1426,9 +1426,9 @@ class ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1
1426
  public static function getInitializer(ClassLoader $loader)
1427
  {
1428
  return \Closure::bind(function () use ($loader) {
1429
- $loader->prefixLengthsPsr4 = ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1::$prefixLengthsPsr4;
1430
- $loader->prefixDirsPsr4 = ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1::$prefixDirsPsr4;
1431
- $loader->classMap = ComposerStaticInitf6b2e7006ad3ce9b7d99b34b61a60ad1::$classMap;
1432
 
1433
  }, null, ClassLoader::class);
1434
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitdbb2594419d5483dd57e44708b78a471
8
  {
9
  public static $files = array (
10
  '356506e5d3d2f49e680971cd925046fa' => __DIR__ . '/..' . '/ampproject/amp-toolbox/include/compatibility-fixes.php',
1426
  public static function getInitializer(ClassLoader $loader)
1427
  {
1428
  return \Closure::bind(function () use ($loader) {
1429
+ $loader->prefixLengthsPsr4 = ComposerStaticInitdbb2594419d5483dd57e44708b78a471::$prefixLengthsPsr4;
1430
+ $loader->prefixDirsPsr4 = ComposerStaticInitdbb2594419d5483dd57e44708b78a471::$prefixDirsPsr4;
1431
+ $loader->classMap = ComposerStaticInitdbb2594419d5483dd57e44708b78a471::$classMap;
1432
 
1433
  }, null, ClassLoader::class);
1434
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => 'e1082fe6b01a476e569049caf34db4d7b4376b1b',
9
  'name' => 'ampproject/amp-wp',
10
  'dev' => false,
11
  ),
@@ -25,7 +25,7 @@
25
  'type' => 'wordpress-plugin',
26
  'install_path' => __DIR__ . '/../../',
27
  'aliases' => array(),
28
- 'reference' => 'e1082fe6b01a476e569049caf34db4d7b4376b1b',
29
  'dev_requirement' => false,
30
  ),
31
  'fasterimage/fasterimage' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '9fa03eb685571e3f262394c8e24aea5a67b7ec6b',
9
  'name' => 'ampproject/amp-wp',
10
  'dev' => false,
11
  ),
25
  'type' => 'wordpress-plugin',
26
  'install_path' => __DIR__ . '/../../',
27
  'aliases' => array(),
28
+ 'reference' => '9fa03eb685571e3f262394c8e24aea5a67b7ec6b',
29
  'dev_requirement' => false,
30
  ),
31
  'fasterimage/fasterimage' => array(