Skip to content

Commit

Permalink
Remove unused function param; add missing since tag
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 4, 2018
1 parent 9f7e29f commit f683d9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wpcom-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ function jetpack_amp_add_og_tags() {
/**
* Add publisher and image metadata.
*
* @since 0.3
*
* @param array $metadata Metadata array.
* @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 );
$metadata = wpcom_amp_add_blavatar_to_metadata( $metadata );
}

if ( ! isset( $metadata['image'] ) ) {
Expand Down

0 comments on commit f683d9f

Please sign in to comment.