From 29d3a19129a55be519948ae25ebe64596b0a4c57 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 27 May 2020 19:35:57 +0200 Subject: [PATCH] =?UTF-8?q?Elimina=20la=20visualizaci=C3=B3n=20de=20datos?= =?UTF-8?q?=20EXIF=20en=20fotos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se desinstala el plugin "Exifography" y se elimina la función add_exif_data() porque ya no se van a mostrar los datos EXIF de las imágenes del álbum de fotos al instalarse el plugin "ShortPixel Image Optimizer" que los elimina para mejorar la tasa de compresión. --- www/wp-content/themes/enfold-cille/functions.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index befca8d..4d20a9c 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -32,18 +32,6 @@ function add_category_name( $classes = '' ) { return $classes; } -/* - * Add EXIF data only in photoblog posts using a filter. - * See https://ithemes.com/2011/03/20/automatically-add-content-to-your-wordpress-posts-and-pages#Using_Filters - */ -add_filter( 'the_content', 'add_exif_data' ); -function add_exif_data( $content ) { - if ( function_exists('exifography_display_exif') && is_single() && has_category( 976 ) ) { - $content .= exifography_display_exif(); - } - return $content; -} - /* * Visual consolidation of tag clouds. * See https://codex.wordpress.org/Function_Reference/wp_tag_cloud