Plugin Directory

Changeset 1449649


Ignore:
Timestamp:
07/06/2016 12:46:59 AM (10 years ago)
Author:
udorami
Message:

Adding better error messages on is_wp_error being true

Location:
udorami-lists/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • udorami-lists/trunk/readme.txt

    r1437965 r1449649  
    55Requires at least: 3.9
    66Tested up to: 4.5.2
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060== Changelog ==
    6161
     62= 1.3.3 =
     63  Added some better error handling when is_wp_error is true.
     64
    6265= 1.3.2 =
    6366  Fixing up plugin to indicate udorami.com the company owns the plugin
  • udorami-lists/trunk/udorami-lists.php

    r1437965 r1449649  
    22/**
    33 * @package Udorami_Lists
    4  * @version 1.3.2
     4 * @version 1.3.3
    55 */
    66/*
     
    88Plugin URI: http://wordpress.org/extend/plugins/udorami-lists/
    99Description: Include a list from the Udorami social lists website.
    10 Version: 1.3.2
     10Version: 1.3.3
    1111Author: Jamii Corley
    1212Author URI: http://www.udorami.com/us/
     
    4949    $response = wp_remote_get( $url );
    5050    if ( is_wp_error( $response ) ) {
    51        return sprintf( 'The URL %1s could not be retrieved.', $url );
     51       $error_string = $response->get_error_message();
     52       return sprintf( '%s<br>The URL %1s could not be retrieved.', $error_string, $url );
    5253    }
    5354    $data = wp_remote_retrieve_body( $response );
Note: See TracChangeset for help on using the changeset viewer.