Permalink
Browse files

Fix featured image adjust for iPhone/iPod Touch

  • Loading branch information...
1 parent ca8dd7e commit 2811d68e56e620856a81a9c600b2b919c81c4960 Dougal Campbell committed Apr 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 functions.php
View
@@ -96,6 +96,7 @@
* @since Formattd 1.0
*/
function formattd_setup() {
+ global $is_ios, $is_iphone, $is_ipad, $is_ipod;
// Load main stylesheet
if (! is_admin() ) {
wp_enqueue_style( 'formattd', get_template_directory_uri() . '/style.css', array(), $formattd_css_version );
@@ -114,7 +115,7 @@ function formattd_setup() {
// Auto-add a float-right thumbnail featured image, when set
if (function_exists('set_post_thumbnail_size')) {
- if ($is_ios) {
+ if ($is_iphone || $is_ipod) {
set_post_thumbnail_size( 120, 120, true );
} else {
set_post_thumbnail_size( 240, 240, true );

0 comments on commit 2811d68

Please sign in to comment.