Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Merge commit '1b9074da63a47a5a69cbe6e1a2028172af36d157'
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Dec 23, 2019
2 parents 8f6bd03 + 1b9074d commit a09917d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/class-creativecommons.php
Original file line number Diff line number Diff line change
Expand Up @@ -1443,9 +1443,10 @@ public function license_html_rdfa( $deed_url, $license_name, $image_url,
$title_work, $is_singular, $attribute_url,
$attribute_text, $source_work_url,
$extra_permissions_url, $additional_attribution_txt, $title, $title_url, $author, $author_url ) {
list($img_width, $img_height) = getimagesize( $image_url );
$html = '';
$html .= "<a rel='license' href='$deed_url'>";
$html .= "<img alt='" . __( 'Creative Commons License', 'CreativeCommons' ) . "' style='border-width:0' src='$image_url' />";
$html .= "<img alt='" . __( 'Creative Commons License', 'CreativeCommons' ) . "' style='border-width:0' src='$image_url' width='$img_width' height='$img_height' />";
$html .= '</a><br />';


Expand Down

0 comments on commit a09917d

Please sign in to comment.