Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix featured image adjust for iPhone/iPod Touch

  • Loading branch information...
commit 2811d68e56e620856a81a9c600b2b919c81c4960 1 parent ca8dd7e
Dougal Campbell authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  functions.php
View
3  functions.php
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.