Skip to content

Commit

Permalink
Fixed Warning: Illegal string offset
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed Jul 22, 2015
1 parent 24e2508 commit 4c2e4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/images.php
Expand Up @@ -171,8 +171,8 @@ function italystrap_get_404_image( $class = '' ){
$query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$image_404'";
$id = $wpdb->get_var($query);
$meta = wp_get_attachment_metadata( $id );
$width = $meta['width'];
$height = $meta['height'];
$width = ( isset( $meta['width'] ) ) ? $meta['width'] : '' ;
$height = ( isset( $meta['height'] ) ) ? $meta['height'] : '' ;
$alt = trim( strip_tags( get_post_meta($id, '_wp_attachment_image_alt', true) ) );

}else
Expand Down

0 comments on commit 4c2e4f9

Please sign in to comment.