PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.4
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.4
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / inc / compat.php

compat.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.4, at inc/compat.php

20 lines 647 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
4 /**
5 * Create a CURLFile object.
6 *
7 * @since PHP 5.5
8 *
9 * @param string $filename Path to the file which will be uploaded.
10 * @param string $mimetype Mimetype of the file.
11 * @param string $postname Name of the file to be used in the upload data.
12 * @return string The CURLFile object.
13 */
14 if ( ! function_exists( 'curl_file_create' ) ) {
15 function curl_file_create( $filename, $mimetype = '', $postname = '' ) {
16 return "@$filename;filename="
17 . ( $postname ? $postname : basename( $filename ) )
18 . ( $mimetype ? ";type=$mimetype" : '' );
19 }
20 }