-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update versions tested in Travis build matrix #1058
Conversation
westonruter
commented
Apr 4, 2018
- Add PHP 7.2 to Travis test matrix; WordPress currently recommends PHP 7.2.
- Include testing PHP 5.6 (the most popular PHP version), as well as 5.5.
- Include testing WP 4.8 and trunk.
- Skip running PHPCS on every build; only needs to be run once.
- Clean up some PHPCS issues along the way to cause PHP to be checked in the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR, Minor Suggestion
Hi @westonruter,
This PR looks good. Travis should run faster now that PHPCS only runs once. There are also good DocBlock and coding style improvements.
There's a minor suggestion here, but it's fine otherwise.
wpcom-helper.php
Outdated
* @param WP_Post $post Post. | ||
* | ||
* @return array Modified metadata array. | ||
*/ | ||
function jetpack_amp_post_template_metadata( $metadata, $post ) { | ||
if ( isset( $metadata['publisher'] ) && ! isset( $metadata['publisher']['logo'] ) ) { | ||
$metadata = wpcom_amp_add_blavatar_to_metadata( $metadata, $post ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd probably be good to remove the second $post
argument of wpcom_amp_add_blavatar_to_metadata()
here, as the function function now only accepts one argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed in f683d9f.
* | ||
* @todo Move this into Jetpack. See https://github.com/Automattic/amp-wp/issues/1021 | ||
* @package AMP | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice additions of DocBlocks and improvements in coding style here.