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

Commit 1377961

Browse files
authored
Merge pull request #115 from creativecommons/restore-rdf-function
restore cc0_html_rdfa() function
2 parents 42c6b4d + 43f84f0 commit 1377961

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

includes/class-creativecommons-image.php

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -457,26 +457,18 @@ public function license_block( $att_id, $fallback_title = null ) {
457457
if ( $license_url ) {
458458
$license_button_url = $this->license_button_url( $license_url );
459459
$l = CreativeCommons::get_instance();
460-
if ( $this->license_url_is_zero( $license_url ) ) {
461-
$html_rdfa = $l->cc0_html_rdfa(
462-
$title,
463-
$attribution_url,
464-
$credit
465-
);
466-
} else {
467-
$html_rdfa = $l->license_html_rdfa(
468-
$license_url,
469-
$license_name,
470-
$license_button_url,
471-
$title,
472-
true, // is_singular.
473-
$attribution_url,
474-
$credit,
475-
$source_work_url,
476-
$extras_url,
477-
''
478-
); // warning_text.
479-
}
460+
$html_rdfa = $l->license_html_rdfa(
461+
$license_url,
462+
$license_name,
463+
$license_button_url,
464+
$title,
465+
true, // is_singular.
466+
$attribution_url,
467+
$credit,
468+
$source_work_url,
469+
$extras_url,
470+
''
471+
); // warning_text.
480472

481473
$button = CreativeCommonsButton::get_instance()->markup(
482474
$html_rdfa,

includes/class-creativecommons.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,6 @@ public function sanitize( $input ) {
996996
return $new_input;
997997
}
998998

999-
1000999
/**
10011000
* Print the Section text
10021001
*/

0 commit comments

Comments
 (0)