Skip to content

Commit 48a8a55

Browse files
committed
Merge branch 'develop' of github.com:ampproject/amp-wp into update/amphtml-2004041903580
* 'develop' of github.com:ampproject/amp-wp: (48 commits) Bump https-proxy-agent from 2.2.2 to 2.2.4 (#4596) Update dependency babel-jest to v25.3.0 (#4550) Update dependency core-js to v3.6.5 (#4558) For the 'Preview AMP' button, use a title instead of a tooltip (#4601) Bump stable tag to 1.5.3 Fix handling of Mustache templates (#4583) Stub request based on test scenario (#4588) Return early instead of storing eventual return value in variable Improve phpdoc and logic conditions Update links in pull request template Update contributing.md with link to wiki Remove engineering.md now that it is on the wiki Remove project-management.md since only applicable to Stories Add conditions for comment feed, trackback, robots, and favicon Fix typo in global phpdoc Update tests after block-library/style.css changes in Gutenberg 7.9 (#4579) Remove special conditions for Reader mode; remove need for $exit condition in redirects Fix translators comment Add comment explaining short-circuit behavior when query var is present Update version for _doing_it_wrong() from 1.5.3 to 1.6.0 ...
2 parents b5b2978 + c7479ed commit 48a8a55

File tree

77 files changed

+2036
-1196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2036
-1196
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Fixes #
55

66
## Checklist
77

8-
- [ ] My pull request is addressing an [open issue](https://github.com/ampproject/amp-wp/contributing/project-management.md#life-of-an-issue) (please create one otherwise).
9-
- [ ] My code is tested and passes existing [tests](https://github.com/ampproject/amp-wp/contributing/engineering.md#tests).
10-
- [ ] My code follows the [Engineering Guidelines](https://github.com/ampproject/amp-wp/contributing/engineering.md) (updates are often made to the guidelines, check it out periodically).
8+
- [ ] My pull request is addressing an open issue (please create one otherwise).
9+
- [ ] My code is tested and passes existing [tests](https://github.com/ampproject/amp-wp/wiki/Engineering-Guidelines#tests).
10+
- [ ] My code follows the [Engineering Guidelines](https://github.com/ampproject/amp-wp/wiki/Engineering-Guidelines) (updates are often made to the guidelines, check it out periodically).

assets/src/block-editor/components/amp-preview.js

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
88
* WordPress dependencies
99
*/
1010
import { Component, createRef, renderToString } from '@wordpress/element';
11-
import { Button, Icon, Tooltip } from '@wordpress/components';
11+
import { Button, Icon } from '@wordpress/components';
1212
import { __ } from '@wordpress/i18n';
1313
import { withSelect, withDispatch } from '@wordpress/data';
1414
import { compose } from '@wordpress/compose';
@@ -236,25 +236,23 @@ class AMPPreview extends Component {
236236

237237
return (
238238
isEnabled && ! errorMessages.length && ! isStandardMode && (
239-
<Tooltip text={ __( 'Preview AMP', 'amp' ) } >
240-
<Button
241-
className="amp-editor-post-preview"
242-
href={ href }
243-
label={ __( 'Preview AMP', 'amp' ) }
244-
isSecondary
245-
disabled={ ! isSaveable }
246-
onClick={ this.openPreviewWindow }
247-
ref={ this.buttonRef }
248-
>
249-
{ ampFilledIcon( { viewBox: '0 0 62 62', width: 18, height: 18 } ) }
250-
<span className="screen-reader-text">
251-
{
252-
/* translators: accessibility text */
253-
__( '(opens in a new tab)', 'amp' )
254-
}
255-
</span>
256-
</Button>
257-
</Tooltip>
239+
<Button
240+
className="amp-editor-post-preview"
241+
href={ href }
242+
title={ __( 'Preview AMP', 'amp' ) }
243+
isSecondary
244+
disabled={ ! isSaveable }
245+
onClick={ this.openPreviewWindow }
246+
ref={ this.buttonRef }
247+
>
248+
{ ampFilledIcon( { viewBox: '0 0 62 62', width: 18, height: 18 } ) }
249+
<span className="screen-reader-text">
250+
{
251+
/* translators: accessibility text */
252+
__( '(opens in a new tab)', 'amp' )
253+
}
254+
</span>
255+
</Button>
258256
)
259257
);
260258
}

contributing.md

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1 @@
1-
# AMP contributing guide
2-
3-
We'd love to accept your patches and contributions to this project and hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.
4-
5-
**How would you like to help?**
6-
7-
* [Report a bug](#report-a-bug)
8-
* [Make a suggestion](#make-a-suggestion)
9-
* [Contribute code](#product-and-code-contributions)
10-
11-
## Report a bug
12-
13-
[File an issue](https://github.com/ampproject/amp-wp/issues/new?template=bug_report.md) if you find a bug in the AMP Plugin. Providing details for each section predefined in the issue template is much appreciated!
14-
15-
Project maintainers are regularly monitoring issues and aim to fix open bugs quickly.
16-
17-
## Make a suggestion
18-
19-
[File a "feature request" issue](https://github.com/ampproject/amp-wp/issues/new?template=feature_request.md) if you have a suggestion for a way to improve the AMP Plugin, or a request for a new feature.
20-
21-
## Product and code contributions
22-
23-
We'd love to have your help contributing code and features to the AMP Plugin! Head to the [Project Management guidelines](https://github.com/ampproject/amp-wp/blob/develop/contributing/project-management.md) as well as [Engineering guidelines](https://github.com/ampproject/amp-wp/blob/develop/contributing/engineering.md) for details on the process you can use to contribute.
24-
25-
## Contributor license agreement
26-
27-
Contributions to this project must be accompanied by a Contributor License Agreement. You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project. Head over to https://cla.developers.google.com/ to see your current agreements on file or to sign a new one.
28-
29-
You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.
30-
31-
## Contributors list policy
32-
33-
The list of contributors who are featured on the WordPress.org plugin directory are subject to change over time. The organizations and individuals who contribute significantly and consistently (e.g. 3-month period) to the project are eligible to be listed. Those listed should generally be considered as those who take responsibility for the project (i.e. owners). Note that contributions include more than just code, though contributors who commit are [most visible](https://github.com/ampproject/amp-wp/graphs/contributors). The sort order of the contributors list should generally follow the sort order of the GitHub contributors page, though again, this order does not consider work in issues and the support forum, so it cannot be relied on solely.
34-
35-
## Community guidelines
36-
37-
This project follows
38-
[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).
39-
40-
## Security disclosures
41-
42-
The AMP Project accepts responsible security disclosures through the [Google Application Security program](https://www.google.com/about/appsecurity/).
43-
44-
## Code of conduct
45-
46-
In addition to the Community Guidelines, this project follows an explicit [Code of Conduct](https://github.com/ampproject/amp-wp/blob/develop/code_of_conduct.md).
1+
This document has moved to the [Contributing](https://github.com/ampproject/amp-wp/wiki/Contributing) page on the wiki.

0 commit comments

Comments
 (0)