re enabled image calc

This commit is contained in:
nomadics9 2025-04-03 19:39:42 +03:00
parent 82e69aedad
commit 707c4efcb5

View file

@ -11,7 +11,7 @@
/** /**
* Define Constants * Define Constants
*/ */
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.6.2' ); define( 'CHILD_THEME_OONT_THEME_VERSION', '1.6.3' );
define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' ); define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' );
define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' ); define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' );
define('SOFTOBA_THEME_DIR', get_stylesheet_directory()); define('SOFTOBA_THEME_DIR', get_stylesheet_directory());
@ -31,9 +31,9 @@ $wp_upload_dir = wp_upload_dir ();
! defined ( 'SOFTOBA_UPLOAD_ERR_WRONG_IMAGE_FORMAT' ) && define ( 'SOFTOBA_UPLOAD_ERR_WRONG_IMAGE_FORMAT', 22 ); ! defined ( 'SOFTOBA_UPLOAD_ERR_WRONG_IMAGE_FORMAT' ) && define ( 'SOFTOBA_UPLOAD_ERR_WRONG_IMAGE_FORMAT', 22 );
// Disable srcset and sizes attributes /*// Disable srcset and sizes attributes*/
add_filter('wp_calculate_image_srcset', '__return_false'); /*add_filter('wp_calculate_image_srcset', '__return_false');*/
add_filter('wp_calculate_image_sizes', '__return_false'); /*add_filter('wp_calculate_image_sizes', '__return_false');*/
/** /**
* Enqueue styles * Enqueue styles