Skip to content

Commit

Permalink
Merge pull request #2616 from kprajapatii/master
Browse files Browse the repository at this point in the history
2.3.58
  • Loading branch information
kprajapatii authored Jun 20, 2024
2 parents 0fa91c2 + ef82131 commit ffd0305
Show file tree
Hide file tree
Showing 16 changed files with 198 additions and 179 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.6",
"ayecode/wp-font-awesome-settings": "^1",
"ayecode/wp-super-duper": "^1.0",
"ayecode/wp-deactivation-survey": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions geodirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: GeoDirectory
* Plugin URI: https://wpgeodirectory.com/
* Description: GeoDirectory - Business Directory Plugin for WordPress.
* Version: 2.3.57
* Version: 2.3.58
* Author: AyeCode - WP Business Directory Plugins
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand All @@ -34,7 +34,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.3.57';
public $version = '2.3.58';

/**
* GeoDirectory instance.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-geodir-maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static function get_marker_size( $icon, $default_size = array( 'w' => 36,

$sizes = array();
if ( is_file( $icon ) && file_exists( $icon ) ) {
$size = getimagesize( trim( $icon ) );
$size = function_exists( 'wp_getimagesize' ) ? wp_getimagesize( trim( $icon ) ) : @getimagesize( trim( $icon ) );

// Check for .svg image
if ( empty( $size ) && preg_match( '/\.svg$/i', $icon ) ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-geodir-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static function create_image_sizes( $file, $attachment_id = 0 ) {
}

$metadata = array();
$imagesize = getimagesize( $file );
$imagesize = function_exists( 'wp_getimagesize' ) ? wp_getimagesize( $file ) : @getimagesize( $file );
$metadata['width'] = $imagesize[0];
$metadata['height'] = $imagesize[1];

Expand Down
2 changes: 1 addition & 1 deletion includes/image-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ function geodir_get_image_dimension( $image_url, $default = array() ) {

$dimension = array();
if ( is_file( $image_url ) && file_exists( $image_url ) ) {
$size = @getimagesize( trim( $image_url ) );
$size = function_exists( 'wp_getimagesize' ) ? wp_getimagesize( trim( $image_url ) ) : @getimagesize( trim( $image_url ) );

// Check for .svg image
if ( empty( $size ) && preg_match( '/\.svg$/i', $image_url ) ) {
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit ffd0305

Please sign in to comment.