Skip to content

Commit 214396d

Browse files
committed
fix u-syndication class for bridgy publish links
(u-* classes belong on link elements, not divs) thanks @kylewm for noticing this!
1 parent e3c0071 commit 214396d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rel-syndication.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function add_js_rel_syndication($content) {
2828
}
2929

3030
if ($see_on !== ""){
31-
$content = $content . '<div class="u-syndication">' . __("Also on:", "rel-syndication") . $see_on . "</div>";
31+
$content = $content . '<div class="syndication">' . __("Also on:", "rel-syndication") . $see_on . "</div>";
3232
}
3333
// Returns the content.
3434
return $content;
@@ -194,7 +194,7 @@ function store_bridgy_publish_link($response, $source, $target, $post_ID) {
194194
$json = json_decode(wp_remote_retrieve_body($response));
195195
if (!is_wp_error($response) && $json && $json->url &&
196196
preg_match('~https?://(?:www\.)?(brid.gy|localhost:8080)/publish/(.*)~', $target, $matches)) {
197-
$link = '<a href="' . $json->url . '">' . ucfirst($matches[2]) . '</a>';
197+
$link = '<a class="u-syndication" href="' . $json->url . '">' . ucfirst($matches[2]) . '</a>';
198198
$existing = get_post_custom_values('bridgy_publish_syndication_urls', $post_ID);
199199
if (array_search($link, get_post_custom_values('bridgy_publish_syndication_urls', $post_ID)) == false) {
200200
add_post_meta($post_ID, 'bridgy_publish_syndication_urls', $link);

0 commit comments

Comments
 (0)