Plugin Directory

Changeset 2333071


Ignore:
Timestamp:
06/30/2020 08:19:38 PM (6 years ago)
Author:
agentevolution
Message:

Version 2.5.3

Location:
wp-listings
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-listings/tags/2.5.3/README.md

    r2326100 r2333071  
    1212**Tested up to:** 5.4.1
    1313
    14 **Stable tag:** 2.5.2
     14**Stable tag:** 2.5.3
    1515
    1616**Requires PHP:** 5.6
     
    190190
    191191## Changelog ##
     192
     193## 2.5.3 ##
     194*Released 6-30-2020*
     195* Fix: Error handling compatibility issue during the listing import process when using PHP 7+
     196* Fix: Resolves issue that prevented use of a theme provided single-listing.php as the default listing post template
    192197
    193198## 2.5.2 ##
  • wp-listings/tags/2.5.3/includes/class-listing-import.php

    r2322612 r2333071  
    367367            if ( substr( $image_url, 0, 2 ) === '//' ) {
    368368                $response = wp_remote_get( 'https:' . $image_url );
    369                 try {
     369                // If wp_remote_get() fails using https, attempt again using http before continuing.
     370                if ( is_wp_error( $response ) ) {
     371                    $response = wp_remote_get( 'http:' . $image_url );
     372                }
     373                // Check for an error and make sure $response['body'] is populated.
     374                if ( is_wp_error( $response ) || empty( $response['body'] ) ) {
     375                    $image_data = null;
     376                } else {
    370377                    $image_data = $response['body'];
    371                 } catch ( Exception $e ) {
    372                     $response = wp_remote_get( 'http:' . $image_url );
    373                     try {
    374                         $image_data = $response['body'];
    375                     } catch ( Exception $e ) {
    376                         $image_data = null;
    377                     }
    378378                }
    379379            } else {
    380380                $response = wp_remote_get( $image_url );
    381                 try {
     381                // Check for an error and make sure $response['body'] is populated.
     382                if ( is_wp_error( $response ) || empty( $response['body'] ) ) {
     383                    $image_data = null;
     384                } else {
    382385                    $image_data = $response['body'];
    383                 } catch ( Exception $e ) {
    384                     $image_data = null;
    385386                }
    386387            }
  • wp-listings/tags/2.5.3/includes/class-listing-template.php

    r2322612 r2333071  
    4747            }
    4848        }
     49        // Check if theme has a single-listing template.
     50        if ( locate_template( 'single-listing.php' ) ) {
     51            return locate_template( 'single-listing.php' );
     52        }
    4953        // Return default template if no custom template match is found.
    5054        return plugin_dir_path( __FILE__ ) . 'views/single-listing.php';
  • wp-listings/tags/2.5.3/plugin.php

    r2326100 r2333071  
    88    Text Domain: wp-listings
    99
    10     Version: 2.5.2
     10    Version: 2.5.3
    1111
    1212    License: GNU General Public License v2.0 (or later)
     
    6767    define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) );
    6868    define( 'WP_LISTINGS_DIR', plugin_dir_path( __FILE__ ) );
    69     define( 'WP_LISTINGS_VERSION', '2.4.1' );
     69    define( 'WP_LISTINGS_VERSION', '2.5.3' );
    7070
    7171    /** Load textdomain for translation */
  • wp-listings/tags/2.5.3/readme.txt

    r2326100 r2333071  
    66Requires at least: 4.0
    77Tested up to: 5.4.1
    8 Stable tag: 2.5.2
     8Stable tag: 2.5.3
    99Requires PHP: 5.6
    1010License: GPLv2 or later
     
    203203
    204204== Changelog ==
     205
     206= 2.5.3 =
     207*Released 6-30-2020*
     208* Fix: Error handling compatibility issue during the listing import process when using PHP 7+
     209* Fix: Resolves issue that prevented use of a theme provided single-listing.php as the default listing post template
    205210
    206211= 2.5.2 =
  • wp-listings/trunk/README.md

    r2326100 r2333071  
    1212**Tested up to:** 5.4.1
    1313
    14 **Stable tag:** 2.5.2
     14**Stable tag:** 2.5.3
    1515
    1616**Requires PHP:** 5.6
     
    190190
    191191## Changelog ##
     192
     193## 2.5.3 ##
     194*Released 6-30-2020*
     195* Fix: Error handling compatibility issue during the listing import process when using PHP 7+
     196* Fix: Resolves issue that prevented use of a theme provided single-listing.php as the default listing post template
    192197
    193198## 2.5.2 ##
  • wp-listings/trunk/includes/class-listing-import.php

    r2322612 r2333071  
    367367            if ( substr( $image_url, 0, 2 ) === '//' ) {
    368368                $response = wp_remote_get( 'https:' . $image_url );
    369                 try {
     369                // If wp_remote_get() fails using https, attempt again using http before continuing.
     370                if ( is_wp_error( $response ) ) {
     371                    $response = wp_remote_get( 'http:' . $image_url );
     372                }
     373                // Check for an error and make sure $response['body'] is populated.
     374                if ( is_wp_error( $response ) || empty( $response['body'] ) ) {
     375                    $image_data = null;
     376                } else {
    370377                    $image_data = $response['body'];
    371                 } catch ( Exception $e ) {
    372                     $response = wp_remote_get( 'http:' . $image_url );
    373                     try {
    374                         $image_data = $response['body'];
    375                     } catch ( Exception $e ) {
    376                         $image_data = null;
    377                     }
    378378                }
    379379            } else {
    380380                $response = wp_remote_get( $image_url );
    381                 try {
     381                // Check for an error and make sure $response['body'] is populated.
     382                if ( is_wp_error( $response ) || empty( $response['body'] ) ) {
     383                    $image_data = null;
     384                } else {
    382385                    $image_data = $response['body'];
    383                 } catch ( Exception $e ) {
    384                     $image_data = null;
    385386                }
    386387            }
  • wp-listings/trunk/includes/class-listing-template.php

    r2322612 r2333071  
    4747            }
    4848        }
     49        // Check if theme has a single-listing template.
     50        if ( locate_template( 'single-listing.php' ) ) {
     51            return locate_template( 'single-listing.php' );
     52        }
    4953        // Return default template if no custom template match is found.
    5054        return plugin_dir_path( __FILE__ ) . 'views/single-listing.php';
  • wp-listings/trunk/plugin.php

    r2326100 r2333071  
    88    Text Domain: wp-listings
    99
    10     Version: 2.5.2
     10    Version: 2.5.3
    1111
    1212    License: GNU General Public License v2.0 (or later)
     
    6767    define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) );
    6868    define( 'WP_LISTINGS_DIR', plugin_dir_path( __FILE__ ) );
    69     define( 'WP_LISTINGS_VERSION', '2.4.1' );
     69    define( 'WP_LISTINGS_VERSION', '2.5.3' );
    7070
    7171    /** Load textdomain for translation */
  • wp-listings/trunk/readme.txt

    r2326100 r2333071  
    66Requires at least: 4.0
    77Tested up to: 5.4.1
    8 Stable tag: 2.5.2
     8Stable tag: 2.5.3
    99Requires PHP: 5.6
    1010License: GPLv2 or later
     
    203203
    204204== Changelog ==
     205
     206= 2.5.3 =
     207*Released 6-30-2020*
     208* Fix: Error handling compatibility issue during the listing import process when using PHP 7+
     209* Fix: Resolves issue that prevented use of a theme provided single-listing.php as the default listing post template
    205210
    206211= 2.5.2 =
Note: See TracChangeset for help on using the changeset viewer.