[gnome-web-www] Remove dimensions from all post images



commit 937b9bb076577745570d1edae39753e4048603d4
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Thu Feb 2 20:11:30 2017 +0200

    Remove dimensions from all post images

 theme/functions.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/theme/functions.php b/theme/functions.php
index 23e1b3f..6b41861 100644
--- a/theme/functions.php
+++ b/theme/functions.php
@@ -531,8 +531,7 @@ function bootstrap_responsive_images( $html ){
     $html = preg_replace('/(<img.*?)(\/>)/', '$1 class="' . $classes . '" $2', $html);
   }
   // remove dimensions from images, does not need it!
-  // Keep dimensions for now..
-  // $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
+  $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
   return $html;
 }
 add_filter( 'the_content','bootstrap_responsive_images',10 );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]