AMP for WordPress - Version 1.0.1

Version Description

(2018-12-12) =

  • Add check for required iconv extension. See #1727. Props westonruter.
  • Plugin Conflict: Also using Give plugin currently creates 500 server error when viewing /wp-admin/. See #1720. Props KZeni, westonruter.
  • Fix Plugin Conflict with Give plugin (previously created 500 server error when viewing site admin). See #1725. Props KZeni.
  • Second argument of the_title filter is an Int not WP_Post. See #1723. Props lesterchan, westonruter.
  • Prevent image with caption from overflowing its container in Classic mode. See #1728. Props kienstra.
  • Ensure Schema.org meta data has correct date. See #1721. Props westonruter.

See 1.0.1 release.

Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1

amp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://amp-wp.org
6
  * Author: WordPress.com VIP, XWP, Google, and contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
- * Version: 1.0.0
9
  * Text Domain: amp
10
  * Domain Path: /languages/
11
  * License: GPLv2 or later
@@ -33,12 +33,12 @@ if ( version_compare( phpversion(), '5.3.6', '<' ) ) {
33
  /**
34
  * Print admin notice regarding DOM extension is not installed.
35
  *
36
- * @since 1.1
37
  */
38
  function _amp_print_php_dom_document_notice() {
39
  ?>
40
  <div class="notice notice-error">
41
- <p><?php esc_html_e( 'The AMP plugin requires DOM extension in PHP. Please contact your host to install DOM extension.', 'amp' ); ?></p>
42
  </div>
43
  <?php
44
  }
@@ -47,6 +47,23 @@ if ( ! class_exists( 'DOMDocument' ) ) {
47
  return;
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * Print admin notice when composer install has not been performed.
52
  *
@@ -66,7 +83,7 @@ if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) || ! file_exists( __DIR__
66
 
67
  define( 'AMP__FILE__', __FILE__ );
68
  define( 'AMP__DIR__', dirname( __FILE__ ) );
69
- define( 'AMP__VERSION', '1.0.0' );
70
 
71
  /**
72
  * Print admin notice if plugin installed with incorrect slug (which impacts WordPress's auto-update system).
5
  * Plugin URI: https://amp-wp.org
6
  * Author: WordPress.com VIP, XWP, Google, and contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
+ * Version: 1.0.1
9
  * Text Domain: amp
10
  * Domain Path: /languages/
11
  * License: GPLv2 or later
33
  /**
34
  * Print admin notice regarding DOM extension is not installed.
35
  *
36
+ * @since 1.0
37
  */
38
  function _amp_print_php_dom_document_notice() {
39
  ?>
40
  <div class="notice notice-error">
41
+ <p><?php esc_html_e( 'The AMP plugin requires DOM extension in PHP. Please contact your host to install this extension.', 'amp' ); ?></p>
42
  </div>
43
  <?php
44
  }
47
  return;
48
  }
49
 
50
+ /**
51
+ * Print admin notice regarding DOM extension is not installed.
52
+ *
53
+ * @since 1.0.1
54
+ */
55
+ function _amp_print_php_missing_iconv_notice() {
56
+ ?>
57
+ <div class="notice notice-error">
58
+ <p><?php esc_html_e( 'The AMP plugin requires iconv extension in PHP. Please contact your host to install this extension.', 'amp' ); ?></p>
59
+ </div>
60
+ <?php
61
+ }
62
+ if ( ! function_exists( 'iconv' ) ) {
63
+ add_action( 'admin_notices', '_amp_print_php_missing_iconv_notice' );
64
+ return;
65
+ }
66
+
67
  /**
68
  * Print admin notice when composer install has not been performed.
69
  *
83
 
84
  define( 'AMP__FILE__', __FILE__ );
85
  define( 'AMP__DIR__', dirname( __FILE__ ) );
86
+ define( 'AMP__VERSION', '1.0.1' );
87
 
88
  /**
89
  * Print admin notice if plugin installed with incorrect slug (which impacts WordPress's auto-update system).
includes/amp-helper-functions.php CHANGED
@@ -870,8 +870,8 @@ function amp_get_schemaorg_metadata() {
870
  '@type' => is_page() ? 'WebPage' : 'BlogPosting',
871
  'mainEntityOfPage' => get_permalink(),
872
  'headline' => get_the_title(),
873
- 'datePublished' => date( 'c', get_the_date( 'U', $post->ID ) ),
874
- 'dateModified' => date( 'c', get_the_date( 'U', $post->ID ) ),
875
  )
876
  );
877
 
870
  '@type' => is_page() ? 'WebPage' : 'BlogPosting',
871
  'mainEntityOfPage' => get_permalink(),
872
  'headline' => get_the_title(),
873
+ 'datePublished' => mysql2date( 'c', $post->post_date_gmt, false ),
874
+ 'dateModified' => mysql2date( 'c', $post->post_modified_gmt, false ),
875
  )
876
  );
877
 
includes/validation/class-amp-validated-url-post-type.php CHANGED
@@ -1889,13 +1889,13 @@ class AMP_Validated_URL_Post_Type {
1889
  /**
1890
  * Strip host name from AMP validated URL being printed.
1891
  *
1892
- * @param string $title Title.
1893
- * @param WP_Post $post Post.
1894
  *
1895
  * @return string Title.
1896
  */
1897
- public static function filter_the_title_in_post_list_table( $title, $post ) {
1898
- if ( function_exists( 'get_current_screen' ) && get_current_screen() && get_current_screen()->base === 'edit' && get_current_screen()->post_type === self::POST_TYPE_SLUG && self::POST_TYPE_SLUG === get_post_type( $post ) ) {
1899
  $title = preg_replace( '#^(\w+:)?//[^/]+#', '', $title );
1900
  }
1901
  return $title;
1889
  /**
1890
  * Strip host name from AMP validated URL being printed.
1891
  *
1892
+ * @param string $title Title.
1893
+ * @param int $id Post ID.
1894
  *
1895
  * @return string Title.
1896
  */
1897
+ public static function filter_the_title_in_post_list_table( $title, $id = null ) {
1898
+ if ( function_exists( 'get_current_screen' ) && get_current_screen() && get_current_screen()->base === 'edit' && get_current_screen()->post_type === self::POST_TYPE_SLUG && self::POST_TYPE_SLUG === get_post_type( $id ) ) {
1899
  $title = preg_replace( '#^(\w+:)?//[^/]+#', '', $title );
1900
  }
1901
  return $title;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, xwp, google, westonruter, ryankienstra, batmoo, stubgo
3
  Tags: amp, mobile
4
  Requires at least: 4.9
5
  Tested up to: 5.0
6
- Stable tag: 1.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.3.6
@@ -52,9 +52,20 @@ If you are a developer, we encourage you to follow along or [contribute](https:/
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
 
 
 
 
 
55
  = 1.0.0 (2018-12-05) =
56
 
57
- To learn how to use the new features in this release, please see the wiki pages for [Adding Theme Support](https://github.com/ampproject/amp-wp/wiki/Adding-Theme-Support) and [Implementing Interactivity](https://github.com/ampproject/amp-wp/wiki/Implementing-Interactivity).
58
 
59
  - **Add runtime CSS minification, `!important` replacement, and tree shaking.** See [#1048](https://github.com/ampproject/amp-wp/pull/1048), [#1111](https://github.com/ampproject/amp-wp/pull/1111), [#1142](https://github.com/ampproject/amp-wp/pull/1142), [#1320](https://github.com/ampproject/amp-wp/pull/1320), [#1073](https://github.com/ampproject/amp-wp/issues/1073). Props westonruter, hellofromtonya, amedina, pbakaus, igrigorik, camelburrito.
60
  - **Keep track of new validation errors and add ability to accept/reject in order to allow or block AMP for a given URL.** See [#1003](https://github.com/ampproject/amp-wp/issues/1003). Props westonruter.
3
  Tags: amp, mobile
4
  Requires at least: 4.9
5
  Tested up to: 5.0
6
+ Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.3.6
52
 
53
  == Changelog ==
54
 
55
+ = 1.0.1 (2018-12-12) =
56
+
57
+ - Add check for required iconv extension. See [#1727](https://github.com/ampproject/amp-wp/pull/1727). Props westonruter.
58
+ - Plugin Conflict: Also using Give plugin currently creates 500 server error when viewing /wp-admin/. See [#1720](https://github.com/ampproject/amp-wp/issues/1720). Props KZeni, westonruter.
59
+ - Fix Plugin Conflict with Give plugin (previously created 500 server error when viewing site admin). See [#1725](https://github.com/ampproject/amp-wp/pull/1725). Props KZeni.
60
+ - Second argument of the_title filter is an Int not WP_Post. See [#1723](https://github.com/ampproject/amp-wp/pull/1723). Props lesterchan, westonruter.
61
+ - Prevent image with caption from overflowing its container in Classic mode. See [#1728](https://github.com/ampproject/amp-wp/pull/1728). Props kienstra.
62
+ - Ensure Schema.org meta data has correct date. See [#1721](https://github.com/ampproject/amp-wp/pull/1721). Props westonruter.
63
+
64
+ See [1.0.1 release](https://github.com/ampproject/amp-wp/releases/tag/1.0.1).
65
+
66
  = 1.0.0 (2018-12-05) =
67
 
68
+ To learn how to use the new features in this release, please see the documentation for [Serving Strategies](https://amp-wp.org/documentation/how-the-plugin-works/amp-plugin-serving-strategies/) and [Implementing Interactivity](https://amp-wp.org/documentation/playbooks/implementing-interactivity/).
69
 
70
  - **Add runtime CSS minification, `!important` replacement, and tree shaking.** See [#1048](https://github.com/ampproject/amp-wp/pull/1048), [#1111](https://github.com/ampproject/amp-wp/pull/1111), [#1142](https://github.com/ampproject/amp-wp/pull/1142), [#1320](https://github.com/ampproject/amp-wp/pull/1320), [#1073](https://github.com/ampproject/amp-wp/issues/1073). Props westonruter, hellofromtonya, amedina, pbakaus, igrigorik, camelburrito.
71
  - **Keep track of new validation errors and add ability to accept/reject in order to allow or block AMP for a given URL.** See [#1003](https://github.com/ampproject/amp-wp/issues/1003). Props westonruter.
templates/style.php CHANGED
@@ -241,6 +241,10 @@ blockquote p:last-child {
241
  margin-left: 1em;
242
  }
243
 
 
 
 
 
244
  .amp-wp-article-content amp-img {
245
  margin: 0 auto;
246
  }
241
  margin-left: 1em;
242
  }
243
 
244
+ .amp-wp-article-content .wp-caption {
245
+ max-width: 100%;
246
+ }
247
+
248
  .amp-wp-article-content amp-img {
249
  margin: 0 auto;
250
  }
vendor/composer/ClassLoader.php CHANGED
@@ -279,7 +279,7 @@ class ClassLoader
279
  */
280
  public function setApcuPrefix($apcuPrefix)
281
  {
282
- $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
283
  }
284
 
285
  /**
@@ -374,10 +374,14 @@ class ClassLoader
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
- foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
378
- if (0 === strpos($class, $prefix)) {
379
- foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
380
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
 
 
 
 
381
  return $file;
382
  }
383
  }
279
  */
280
  public function setApcuPrefix($apcuPrefix)
281
  {
282
+ $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
283
  }
284
 
285
  /**
374
 
375
  $first = $class[0];
376
  if (isset($this->prefixLengthsPsr4[$first])) {
377
+ $subPath = $class;
378
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
379
+ $subPath = substr($subPath, 0, $lastPos);
380
+ $search = $subPath . '\\';
381
+ if (isset($this->prefixDirsPsr4[$search])) {
382
+ $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
383
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
+ if (file_exists($file = $dir . $pathEnd)) {
385
  return $file;
386
  }
387
  }
vendor/composer/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
 
2
- Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
1
 
2
+ Copyright (c) Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
vendor/composer/installed.json CHANGED
@@ -70,101 +70,52 @@
70
  ]
71
  },
72
  {
73
- "name": "wp-coding-standards/wpcs",
74
- "version": "0.14.1",
75
- "version_normalized": "0.14.1.0",
76
- "source": {
77
- "type": "git",
78
- "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
79
- "reference": "cf6b310caad735816caef7573295f8a534374706"
80
- },
81
- "dist": {
82
- "type": "zip",
83
- "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
84
- "reference": "cf6b310caad735816caef7573295f8a534374706",
85
- "shasum": ""
86
- },
87
- "require": {
88
- "php": ">=5.3",
89
- "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
90
- },
91
- "suggest": {
92
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
93
- },
94
- "time": "2018-02-16T01:57:48+00:00",
95
- "type": "phpcodesniffer-standard",
96
- "installation-source": "dist",
97
- "notification-url": "https://packagist.org/downloads/",
98
- "license": [
99
- "MIT"
100
- ],
101
- "authors": [
102
- {
103
- "name": "Contributors",
104
- "homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
105
- }
106
- ],
107
- "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
108
- "keywords": [
109
- "phpcs",
110
- "standards",
111
- "wordpress"
112
- ]
113
- },
114
- {
115
- "name": "wimg/php-compatibility",
116
- "version": "8.2.0",
117
- "version_normalized": "8.2.0.0",
118
  "source": {
119
  "type": "git",
120
- "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
121
- "reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a"
122
  },
123
  "dist": {
124
  "type": "zip",
125
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
126
- "reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
127
  "shasum": ""
128
  },
129
  "require": {
130
- "php": ">=5.3",
131
- "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
132
- },
133
- "conflict": {
134
- "squizlabs/php_codesniffer": "2.6.2"
135
  },
136
  "require-dev": {
137
- "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
138
- },
139
- "suggest": {
140
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
141
- "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
142
  },
143
- "time": "2018-07-17T13:42:26+00:00",
144
- "type": "phpcodesniffer-standard",
145
  "installation-source": "dist",
146
  "autoload": {
147
- "psr-4": {
148
- "PHPCompatibility\\": "PHPCompatibility/"
149
  }
150
  },
151
- "notification-url": "https://packagist.org/downloads/",
152
  "license": [
153
- "LGPL-3.0-or-later"
154
  ],
155
  "authors": [
156
  {
157
- "name": "Wim Godden",
158
- "role": "lead"
159
  }
160
  ],
161
- "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.",
162
- "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
163
  "keywords": [
164
- "compatibility",
165
- "phpcs",
166
- "standards"
167
- ]
 
 
 
168
  },
169
  {
170
  "name": "squizlabs/php_codesniffer",
@@ -220,51 +171,100 @@
220
  ]
221
  },
222
  {
223
- "name": "sabberworm/php-css-parser",
224
- "version": "8.1.1",
225
- "version_normalized": "8.1.1.0",
226
  "source": {
227
  "type": "git",
228
- "url": "https://github.com/xwp/PHP-CSS-Parser.git",
229
- "reference": "22311fa3d67217c5fcd0b839670be39a768eda7b"
230
  },
231
  "dist": {
232
  "type": "zip",
233
- "url": "https://api.github.com/repos/xwp/PHP-CSS-Parser/zipball/22311fa3d67217c5fcd0b839670be39a768eda7b",
234
- "reference": "22311fa3d67217c5fcd0b839670be39a768eda7b",
235
  "shasum": ""
236
  },
237
  "require": {
238
- "php": ">=5.3.2"
 
 
 
 
239
  },
240
  "require-dev": {
241
- "phpunit/phpunit": "~4.8"
242
  },
243
- "time": "2018-11-25T04:50:29+00:00",
244
- "type": "library",
245
- "installation-source": "source",
 
 
 
 
246
  "autoload": {
247
- "psr-0": {
248
- "Sabberworm\\CSS": "lib/"
249
  }
250
  },
 
251
  "license": [
252
- "MIT"
253
  ],
254
  "authors": [
255
  {
256
- "name": "Raphael Schweikert"
 
257
  }
258
  ],
259
- "description": "Parser for CSS Files written in PHP",
260
- "homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser",
261
  "keywords": [
262
- "css",
263
- "parser",
264
- "stylesheet"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  ],
266
- "support": {
267
- "source": "https://github.com/xwp/PHP-CSS-Parser/tree/master"
268
- }
 
 
 
 
 
 
 
 
 
269
  }
270
  ]
70
  ]
71
  },
72
  {
73
+ "name": "sabberworm/php-css-parser",
74
+ "version": "8.1.1",
75
+ "version_normalized": "8.1.1.0",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  "source": {
77
  "type": "git",
78
+ "url": "https://github.com/xwp/PHP-CSS-Parser.git",
79
+ "reference": "22311fa3d67217c5fcd0b839670be39a768eda7b"
80
  },
81
  "dist": {
82
  "type": "zip",
83
+ "url": "https://api.github.com/repos/xwp/PHP-CSS-Parser/zipball/22311fa3d67217c5fcd0b839670be39a768eda7b",
84
+ "reference": "22311fa3d67217c5fcd0b839670be39a768eda7b",
85
  "shasum": ""
86
  },
87
  "require": {
88
+ "php": ">=5.3.2"
 
 
 
 
89
  },
90
  "require-dev": {
91
+ "phpunit/phpunit": "~4.8"
 
 
 
 
92
  },
93
+ "time": "2018-11-25T04:50:29+00:00",
94
+ "type": "library",
95
  "installation-source": "dist",
96
  "autoload": {
97
+ "psr-0": {
98
+ "Sabberworm\\CSS": "lib/"
99
  }
100
  },
 
101
  "license": [
102
+ "MIT"
103
  ],
104
  "authors": [
105
  {
106
+ "name": "Raphael Schweikert"
 
107
  }
108
  ],
109
+ "description": "Parser for CSS Files written in PHP",
110
+ "homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser",
111
  "keywords": [
112
+ "css",
113
+ "parser",
114
+ "stylesheet"
115
+ ],
116
+ "support": {
117
+ "source": "https://github.com/xwp/PHP-CSS-Parser/tree/master"
118
+ }
119
  },
120
  {
121
  "name": "squizlabs/php_codesniffer",
171
  ]
172
  },
173
  {
174
+ "name": "wimg/php-compatibility",
175
+ "version": "8.2.0",
176
+ "version_normalized": "8.2.0.0",
177
  "source": {
178
  "type": "git",
179
+ "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
180
+ "reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a"
181
  },
182
  "dist": {
183
  "type": "zip",
184
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
185
+ "reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
186
  "shasum": ""
187
  },
188
  "require": {
189
+ "php": ">=5.3",
190
+ "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
191
+ },
192
+ "conflict": {
193
+ "squizlabs/php_codesniffer": "2.6.2"
194
  },
195
  "require-dev": {
196
+ "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
197
  },
198
+ "suggest": {
199
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
200
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
201
+ },
202
+ "time": "2018-07-17T13:42:26+00:00",
203
+ "type": "phpcodesniffer-standard",
204
+ "installation-source": "dist",
205
  "autoload": {
206
+ "psr-4": {
207
+ "PHPCompatibility\\": "PHPCompatibility/"
208
  }
209
  },
210
+ "notification-url": "https://packagist.org/downloads/",
211
  "license": [
212
+ "LGPL-3.0-or-later"
213
  ],
214
  "authors": [
215
  {
216
+ "name": "Wim Godden",
217
+ "role": "lead"
218
  }
219
  ],
220
+ "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.",
221
+ "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
222
  "keywords": [
223
+ "compatibility",
224
+ "phpcs",
225
+ "standards"
226
+ ]
227
+ },
228
+ {
229
+ "name": "wp-coding-standards/wpcs",
230
+ "version": "0.14.1",
231
+ "version_normalized": "0.14.1.0",
232
+ "source": {
233
+ "type": "git",
234
+ "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
235
+ "reference": "cf6b310caad735816caef7573295f8a534374706"
236
+ },
237
+ "dist": {
238
+ "type": "zip",
239
+ "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
240
+ "reference": "cf6b310caad735816caef7573295f8a534374706",
241
+ "shasum": ""
242
+ },
243
+ "require": {
244
+ "php": ">=5.3",
245
+ "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
246
+ },
247
+ "suggest": {
248
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
249
+ },
250
+ "time": "2018-02-16T01:57:48+00:00",
251
+ "type": "phpcodesniffer-standard",
252
+ "installation-source": "dist",
253
+ "notification-url": "https://packagist.org/downloads/",
254
+ "license": [
255
+ "MIT"
256
  ],
257
+ "authors": [
258
+ {
259
+ "name": "Contributors",
260
+ "homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
261
+ }
262
+ ],
263
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
264
+ "keywords": [
265
+ "phpcs",
266
+ "standards",
267
+ "wordpress"
268
+ ]
269
  }
270
  ]