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

Commit 95eaf44

Browse files
authored
Update class-creativecommons-button.php
There is no need for concatenation on "const CC_BUTTON_TAIL =.." and it was generating fatal errors on my site.
1 parent 2643a60 commit 95eaf44

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

includes/class-creativecommons-button.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ class CreativeCommonsButton
55

66
const CCL_BUTTON_HEAD = '<div class="cc-attribution-element"><button class="cc-attribution-button cc-attribution-copy-button" data-clipboard-action="copy" data-clipboard-text="" ';
77

8-
const CCL_BUTTON_TAIL = '"><span class="cc-attribution-copy-button-label" data-l10n-id="Share">Copy credit as</span>'
9-
. '</button><div class="cc-dropdown-wrapper"><button class="cc-attribution-button cc-attribution-format-select">HTML &#x25BC;</button>
8+
const CC_BUTTON_TAIL = '"><span data-l10n-id="Share">Share</span></button>
9+
<div class="cc-dropdown-wrapper"><button class="cc-attribution-format-select">HTML &#x25BC;</button>
1010
<ul class="cc-dropdown-menu" aria-haspopup="true" aria-expanded="false">
1111
<li class="cc-dropdown-menu-item cc-dropdown-menu-item-selected"><a class="cc-dropdown-menu-item-link cc-format-html-rdfa" data-cc-format="html-rdfa" href="#">HTML</a></li>
1212
<li class="cc-dropdown-menu-item"><a class="cc-dropdown-menu-item-link cc-format-text" data-cc-format="text" href="#">Text</a></li></ul></div>
13-
<button class="cc-attribution-button cc-attribution-help-button" data-l10n-id="?">?</button></div>';
14-
13+
<button class="cc-attribution-help-button" data-l10n-id="?">?</button></div>';
1514

1615
private static $instance = null;
1716

0 commit comments

Comments
 (0)