Skip to content

Commit

Permalink
Content: Update links to CC0 Deed page
Browse files Browse the repository at this point in the history
Fixes #38
  • Loading branch information
ryelle committed Dec 9, 2024
1 parent d2cbd80 commit 9b02a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
sprintf(
// translators: %s: URL to CC0 license information.
__( 'All photos are <a href="%s">CC0 licensed</a>. No rights are reserved, so you are free to use the photos anywhere, for any purpose, without the need for attribution.', 'wporg-photos' ),
esc_url( __( 'https://creativecommons.org/share-your-work/public-domain/cc0/', 'wporg-photos' ) )
esc_url( __( 'https://creativecommons.org/publicdomain/zero/1.0/', 'wporg-photos' ) )
)
);
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$rtf_content = sprintf(
/* translators: 1: URL to CC0 license, 2: URL to photo's page, 3: URL to contributor's profile, 4: Contributor's display name, 5: URL to Photo Directory. */
__( '<a href="%1$s">CC0</a> licensed <a href="%2$s">photo</a> by <a href="%3$s">%4$s</a> from the <a href="%5$s">WordPress Photo Directory</a>.', 'wporg-photos' ),
'https://creativecommons.org/share-your-work/public-domain/cc0/',
'https://creativecommons.org/publicdomain/zero/1.0/',
esc_url( get_the_permalink( $photo_post->ID ) ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID', $photo_post->post_author ) ) ),
esc_html( get_the_author_meta( 'display_name', $photo_post->post_author ) ),
Expand All @@ -21,7 +21,7 @@
$html_content = sprintf(
/* translators: 1: URL to CC0 license, 2: URL to photo's page, 3: URL to contributor's profile, 4: Contributor's display name, 5: URL to Photo Directory. */
htmlentities( '<p class="attribution">' . __( '<a href="%1$s">CC0</a> licensed <a href="%2$s">photo</a> by <a href="%3$s">%4$s</a> from the <a href="%5$s">WordPress Photo Directory</a>.', 'wporg-photos' ) . '</p>' ),
'https://creativecommons.org/share-your-work/public-domain/cc0/',
'https://creativecommons.org/publicdomain/zero/1.0/',
esc_url( get_the_permalink( $photo_post->ID ) ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID', $photo_post->post_author ) ) ),
esc_html( get_the_author_meta( 'display_name', $photo_post->post_author ) ),
Expand Down

0 comments on commit 9b02a4e

Please sign in to comment.