Changeset 2333071
- Timestamp:
- 06/30/2020 08:19:38 PM (6 years ago)
- Location:
- wp-listings
- Files:
-
- 10 edited
- 1 copied
-
tags/2.5.3 (copied) (copied from wp-listings/trunk)
-
tags/2.5.3/README.md (modified) (2 diffs)
-
tags/2.5.3/includes/class-listing-import.php (modified) (1 diff)
-
tags/2.5.3/includes/class-listing-template.php (modified) (1 diff)
-
tags/2.5.3/plugin.php (modified) (2 diffs)
-
tags/2.5.3/readme.txt (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/includes/class-listing-import.php (modified) (1 diff)
-
trunk/includes/class-listing-template.php (modified) (1 diff)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-listings/tags/2.5.3/README.md
r2326100 r2333071 12 12 **Tested up to:** 5.4.1 13 13 14 **Stable tag:** 2.5. 214 **Stable tag:** 2.5.3 15 15 16 16 **Requires PHP:** 5.6 … … 190 190 191 191 ## 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 192 197 193 198 ## 2.5.2 ## -
wp-listings/tags/2.5.3/includes/class-listing-import.php
r2322612 r2333071 367 367 if ( substr( $image_url, 0, 2 ) === '//' ) { 368 368 $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 { 370 377 $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 }378 378 } 379 379 } else { 380 380 $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 { 382 385 $image_data = $response['body']; 383 } catch ( Exception $e ) {384 $image_data = null;385 386 } 386 387 } -
wp-listings/tags/2.5.3/includes/class-listing-template.php
r2322612 r2333071 47 47 } 48 48 } 49 // Check if theme has a single-listing template. 50 if ( locate_template( 'single-listing.php' ) ) { 51 return locate_template( 'single-listing.php' ); 52 } 49 53 // Return default template if no custom template match is found. 50 54 return plugin_dir_path( __FILE__ ) . 'views/single-listing.php'; -
wp-listings/tags/2.5.3/plugin.php
r2326100 r2333071 8 8 Text Domain: wp-listings 9 9 10 Version: 2.5. 210 Version: 2.5.3 11 11 12 12 License: GNU General Public License v2.0 (or later) … … 67 67 define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) ); 68 68 define( 'WP_LISTINGS_DIR', plugin_dir_path( __FILE__ ) ); 69 define( 'WP_LISTINGS_VERSION', '2. 4.1' );69 define( 'WP_LISTINGS_VERSION', '2.5.3' ); 70 70 71 71 /** Load textdomain for translation */ -
wp-listings/tags/2.5.3/readme.txt
r2326100 r2333071 6 6 Requires at least: 4.0 7 7 Tested up to: 5.4.1 8 Stable tag: 2.5. 28 Stable tag: 2.5.3 9 9 Requires PHP: 5.6 10 10 License: GPLv2 or later … … 203 203 204 204 == 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 205 210 206 211 = 2.5.2 = -
wp-listings/trunk/README.md
r2326100 r2333071 12 12 **Tested up to:** 5.4.1 13 13 14 **Stable tag:** 2.5. 214 **Stable tag:** 2.5.3 15 15 16 16 **Requires PHP:** 5.6 … … 190 190 191 191 ## 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 192 197 193 198 ## 2.5.2 ## -
wp-listings/trunk/includes/class-listing-import.php
r2322612 r2333071 367 367 if ( substr( $image_url, 0, 2 ) === '//' ) { 368 368 $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 { 370 377 $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 }378 378 } 379 379 } else { 380 380 $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 { 382 385 $image_data = $response['body']; 383 } catch ( Exception $e ) {384 $image_data = null;385 386 } 386 387 } -
wp-listings/trunk/includes/class-listing-template.php
r2322612 r2333071 47 47 } 48 48 } 49 // Check if theme has a single-listing template. 50 if ( locate_template( 'single-listing.php' ) ) { 51 return locate_template( 'single-listing.php' ); 52 } 49 53 // Return default template if no custom template match is found. 50 54 return plugin_dir_path( __FILE__ ) . 'views/single-listing.php'; -
wp-listings/trunk/plugin.php
r2326100 r2333071 8 8 Text Domain: wp-listings 9 9 10 Version: 2.5. 210 Version: 2.5.3 11 11 12 12 License: GNU General Public License v2.0 (or later) … … 67 67 define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) ); 68 68 define( 'WP_LISTINGS_DIR', plugin_dir_path( __FILE__ ) ); 69 define( 'WP_LISTINGS_VERSION', '2. 4.1' );69 define( 'WP_LISTINGS_VERSION', '2.5.3' ); 70 70 71 71 /** Load textdomain for translation */ -
wp-listings/trunk/readme.txt
r2326100 r2333071 6 6 Requires at least: 4.0 7 7 Tested up to: 5.4.1 8 Stable tag: 2.5. 28 Stable tag: 2.5.3 9 9 Requires PHP: 5.6 10 10 License: GPLv2 or later … … 203 203 204 204 == 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 205 210 206 211 = 2.5.2 =
Note: See TracChangeset
for help on using the changeset viewer.