Skip to content

Commit 4994fb9

Browse files
committedJun 19, 2020
Eliminate removable references to ~master~ branch
1 parent 0212bb2 commit 4994fb9

14 files changed

+14
-16
lines changed
 

‎.github/workflows/build-test-measure.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- develop
7-
- master
87
# Include all release branches.
98
- '*.*'
109
pull_request:

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ cache:
2525

2626
branches:
2727
only:
28-
- master
2928
- develop
3029
- /^\d+\.\d+$/
3130

‎includes/class-amp-service-worker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static function add_image_caching( $service_workers ) {
153153
*
154154
* @link https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts
155155
* @link https://github.com/ampproject/amp-by-example/blob/4593af61609898043302a101826ddafe7206bfd9/boilerplate-generator/templates/files/serviceworkerJs.js#L76-L103
156-
* @link https://github.com/xwp/pwa-wp/blob/master/integrations/class-wp-service-worker-fonts-integration.php
156+
* @link https://github.com/GoogleChromeLabs/pwa-wp/blob/d0eb52a2f348259123f39941093813f1351c0e21/integrations/class-wp-service-worker-fonts-integration.php
157157
*
158158
* @param WP_Service_Worker_Scripts $service_workers Service workers.
159159
*/

‎includes/sanitizers/class-amp-style-sanitizer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private function get_used_class_names() {
485485
*/
486486
'amp-viewer',
487487

488-
// Classes added based on input mode. See <https://github.com/ampproject/amphtml/blob/master/spec/amp-css-classes.md#input-mode-classes>.
488+
// Classes added based on input mode. See <https://github.com/ampproject/amphtml/blob/bd29b0eb1b28d900d4abed2c1883c6980f18db8e/spec/amp-css-classes.md#input-mode-classes>.
489489
'amp-mode-touch',
490490
'amp-mode-mouse',
491491
'amp-mode-keyboard-active',
@@ -614,7 +614,7 @@ private function has_used_class_name( $class_names ) {
614614
return false;
615615
}
616616
continue 2;
617-
// Class names for amp-video-docking, see <https://github.com/ampproject/amphtml/blob/master/extensions/amp-video-docking/amp-video-docking.md#styling>.
617+
// Class names for amp-video-docking, see <https://amp.dev/documentation/components/amp-video-docking/#styling>.
618618
case 'amp-docked-':
619619
if ( ! $this->has_used_attributes( [ 'dock' ] ) ) {
620620
return false;

‎includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* Allowed tags array is generated from this protocol buffer:
1919
*
20-
* https://github.com/ampproject/amphtml/blob/master/validator/validator-main.protoascii
20+
* https://github.com/ampproject/amphtml/blob/bd29b0eb1b28d900d4abed2c1883c6980f18db8e/validator/validator-main.protoascii
2121
* by the python script in amp-wp/bin/amp_wp_build.py. See the comment at the top
2222
* of that file for instructions to generate class-amp-allowed-tags-generated.php.
2323
*

‎lib/common/phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
2+
# @see https://github.com/phpstan/phpstan-src/blob/b9f62d63f2deaa0a5e97f51073e41a422c48aa01/conf/bleedingEdge.neon
33
- phar://phpstan.phar/conf/bleedingEdge.neon
44
parameters:
55
level: 4

‎lib/common/src/Amp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ final class Amp
5959
*
6060
* This list should be kept in sync with the list of dynamic components at:
6161
*
62-
* @see https://github.com/ampproject/amphtml/blob/master/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem
62+
* @see https://github.com/ampproject/amphtml/blob/292dc66b8c0bb078bbe3a1bca960e8f494f7fc8f/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem
6363
*
6464
* @var array[]
6565
*/

‎lib/optimizer/bin/sync-amp-toolbox-test-suite.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
$version = 'master';
4+
$version = 'main';
55
$sourceUrl = "https://github.com/ampproject/amp-toolbox/archive/{$version}.zip";
66
$targetFolder = realpath(dirname(__DIR__) . '/tests') . '/spec';
77
$tmpFilePath = tempnam(sys_get_temp_dir(), 'amp-optimizer-');

‎lib/optimizer/phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
2+
# @see https://github.com/phpstan/phpstan-src/blob/b9f62d63f2deaa0a5e97f51073e41a422c48aa01/conf/bleedingEdge.neon
33
- phar://phpstan.phar/conf/bleedingEdge.neon
44
parameters:
55
level: 4

‎lib/optimizer/src/Transformer/ServerSideRendering.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function calculateWidth($inputLayout, CssLength $inputWidth, $tagName)
352352
{
353353
if ((empty($inputLayout) || $inputLayout === Layout::FIXED) && ! $inputWidth->isDefined()) {
354354
// These values come from AMP's runtime and can be found in
355-
// https://github.com/ampproject/amphtml/blob/master/src/layout.js#L70
355+
// https://github.com/ampproject/amphtml/blob/292dc66b8c0bb078bbe3a1bca960e8f494f7fc8f/src/layout.js#L70-L86
356356
switch ($tagName) {
357357
case Extension::ANALYTICS:
358358
case Extension::PIXEL:
@@ -385,7 +385,7 @@ private function calculateHeight($inputLayout, CssLength $inputHeight, $tagName)
385385
{
386386
if ((empty($inputLayout) || $inputLayout === Layout::FIXED || $inputLayout === Layout::FIXED_HEIGHT) && ! $inputHeight->isDefined()) {
387387
// These values come from AMP's runtime and can be found in
388-
// https://github.com/ampproject/amphtml/blob/master/src/layout.js#L70
388+
// https://github.com/ampproject/amphtml/blob/292dc66b8c0bb078bbe3a1bca960e8f494f7fc8f/src/layout.js#L70-L86
389389
switch ($tagName) {
390390
case Extension::ANALYTICS:
391391
case Extension::PIXEL:

‎phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
2+
# @see https://github.com/phpstan/phpstan-src/blob/b9f62d63f2deaa0a5e97f51073e41a422c48aa01/conf/bleedingEdge.neon
33
- phar://phpstan.phar/conf/bleedingEdge.neon
44
parameters:
55
level: 3

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Features and capabilities provided by the plugin include:
2424
- **Core Theme Support**: enabling AMP compatibility for all core themes, from Twenty Ten all the way through Twenty Twenty.
2525
- **Compatibility Tool**: when automatic conversion of markup to AMP is not possible, debug AMP validation errors with detailed information including the invalid markup and the specific components responsible on site (e.g theme, plugin, embed); validation errors are shown contextually with their respective blocks in the editor.
2626
- **CSS Tree Shaking**: automatically remove the majority of unused CSS to bring the total under AMP's 75KB limit; when the total after tree shaking is still over this limit, prioritization is used so that the all-important theme stylesheet important is retained, leaving less important ones to be excluded (e.g. print styles).
27-
- **Server-side Rendering**: integrated PHP-port of the [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer) providing automated [server-side rendering](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/server-side-rendering/) of AMP pages, drastically improving the [Last Contentful Paint](https://web.dev/lcp/) (LCP) metric.
27+
- **Server-side Rendering**: integrated PHP-port of the [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer) providing automated [server-side rendering](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/server-side-rendering/) of AMP pages, drastically improving the [Last Contentful Paint](https://web.dev/lcp/) (LCP) metric.
2828

2929
Please note that the [Stories](https://amp.dev/about/stories) experience has been removed from the AMP plugin in favor of the feature being released as a standalone plugin. It will be available soon!
3030

‎readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Features and capabilities provided by the plugin include:
2020
- **Core Theme Support**: enabling AMP compatibility for all core themes, from Twenty Ten all the way through Twenty Twenty.
2121
- **Compatibility Tool**: when automatic conversion of markup to AMP is not possible, debug AMP validation errors with detailed information including the invalid markup and the specific components responsible on site (e.g theme, plugin, embed); validation errors are shown contextually with their respective blocks in the editor.
2222
- **CSS Tree Shaking**: automatically remove the majority of unused CSS to bring the total under AMP's 75KB limit; when the total after tree shaking is still over this limit, prioritization is used so that the all-important theme stylesheet important is retained, leaving less important ones to be excluded (e.g. print styles).
23-
- **Server-side Rendering**: integrated PHP-port of the [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer) providing automated [server-side rendering](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/server-side-rendering/) of AMP pages, drastically improving the [Last Contentful Paint](https://web.dev/lcp/) (LCP) metric.
23+
- **Server-side Rendering**: integrated PHP-port of the [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer) providing automated [server-side rendering](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/server-side-rendering/) of AMP pages, drastically improving the [Last Contentful Paint](https://web.dev/lcp/) (LCP) metric.
2424

2525
Please note that the [Stories](https://amp.dev/about/stories) experience has been removed from the AMP plugin in favor of the feature being released as a standalone plugin. It will be available soon!
2626

‎tests/php/test-tag-and-attribute-sanitizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function get_body_data() {
251251
],
252252

253253
'amp-iframe_incorrect_protocol' => [
254-
'<amp-iframe width="600" height="200" sandbox="allow-scripts allow-same-origin" layout="responsive" frameborder="0" src="masterprotocol://www.example.com"></amp-iframe>',
254+
'<amp-iframe width="600" height="200" sandbox="allow-scripts allow-same-origin" layout="responsive" frameborder="0" src="badprotocol://www.example.com"></amp-iframe>',
255255
'',
256256
[],
257257
[

0 commit comments

Comments
 (0)