| @@ -198,28 +198,31 @@ | ||
| 198 | 198 | { |
| 199 | 199 | global $wpdb; |
| 200 | 200 | |
| 201 | 201 | $db_gallery_settings = $wpdb->get_results( |
| 202 | - $wpdb->prepare( | |
| 203 | - ' | |
| 204 | - SELECT * | |
| 205 | - FROM ' . $wpdb->vimeography_gallery_meta . ' AS meta | |
| 206 | - JOIN ' . $wpdb->vimeography_gallery . ' AS gallery | |
| 207 | - ON meta.gallery_id = gallery.id | |
| 208 | - WHERE meta.gallery_id = %d | |
| 209 | - LIMIT 1; | |
| 210 | - ', | |
| 211 | - $id | |
| 212 | - ) | |
| 213 | - ); | |
| 202 | + ' | |
| 203 | + SELECT * | |
| 204 | + FROM ' . | |
| 205 | + $wpdb->vimeography_gallery_meta . | |
| 206 | + ' AS meta | |
| 207 | + JOIN ' . | |
| 208 | + $wpdb->vimeography_gallery . | |
| 209 | + ' AS gallery | |
| 210 | + ON meta.gallery_id = gallery.id | |
| 211 | + WHERE meta.gallery_id = ' . | |
| 212 | + $id . | |
| 213 | + ' | |
| 214 | + LIMIT 1; | |
| 215 | + ' | |
| 216 | + ); | |
| 214 | 217 | |
| 215 | 218 | if (empty($db_gallery_settings)) { |
| 216 | 219 | throw new Vimeography_Exception( |
| 217 | 220 | sprintf( |
| 218 | - wp_kses_post(__( | |
| 221 | + __( | |
| 219 | 222 | 'a Vimeography gallery with an ID of "%1$s" was not found.', |
| 220 | 223 | 'vimeography' |
| 221 | - )), | |
| 224 | + ), | |
| 222 | 225 | intval($id) |
| 223 | 226 | ) |
| 224 | 227 | ); |
| 225 | 228 | } |
| @@ -350,13 +353,13 @@ | ||
| 350 | 353 | |
| 351 | 354 | ob_start(); |
| 352 | 355 | ?> |
| 353 | 356 | <div class="vimeography-error"> |
| 354 | - <h2><?php wp_kses_post(_e( | |
| 357 | + <h2><?php _e( | |
| 355 | 358 | 'This video gallery couldn\'t be loaded.', |
| 356 | 359 | 'vimeography' |
| 357 | - )); ?></h2> | |
| 358 | - <p><?php echo wp_kses_post($e->getMessage()); ?></p> | |
| 360 | + ); ?></h2> | |
| 361 | + <p><?php echo $e->getMessage(); ?></p> | |
| 359 | 362 | </div> |
| 360 | 363 | |
| 361 | 364 | <style> |
| 362 | 365 | .vimeography-error { |