| @@ -52,9 +52,9 @@ | ||
| 52 | 52 | |
| 53 | 53 | $item = $this->format_video_thumbnails($item); |
| 54 | 54 | |
| 55 | 55 | // Linkify any URLs in the description |
| 56 | - if ($should_linkify_descriptions && $item->description) { | |
| 56 | + if ($should_linkify_descriptions) { | |
| 57 | 57 | $item->description = $this->link_urls(nl2br($item->description)); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| @@ -183,12 +183,12 @@ | ||
| 183 | 183 | $oembed = wp_remote_get('https://vimeo.com/api/oembed.json?' . $query); |
| 184 | 184 | |
| 185 | 185 | if (is_wp_error($oembed)) { |
| 186 | 186 | throw new Vimeography_Exception( |
| 187 | - wp_kses_post(__( | |
| 187 | + __( | |
| 188 | 188 | 'Vimeography could not retrieve the featured video: ', |
| 189 | 189 | 'vimeography' |
| 190 | - ) . $oembed->get_error_message()) | |
| 190 | + ) . $oembed->get_error_message() | |
| 191 | 191 | ); |
| 192 | 192 | } else { |
| 193 | 193 | switch ($oembed['response']['code']) { |
| 194 | 194 | case 200: |
| @@ -200,12 +200,12 @@ | ||
| 200 | 200 | ); |
| 201 | 201 | return $oembed->html; |
| 202 | 202 | case 403: |
| 203 | 203 | throw new Vimeography_Exception( |
| 204 | - wp_kses_post(__( | |
| 204 | + __( | |
| 205 | 205 | 'Your video privacy settings for must be adjusted to allow displaying this video on your site.', |
| 206 | 206 | 'vimeography' |
| 207 | - )) | |
| 207 | + ) | |
| 208 | 208 | ); |
| 209 | 209 | default: |
| 210 | 210 | break; |
| 211 | 211 | } |