Plugin Directory

Changeset 854466


Ignore:
Timestamp:
02/09/2014 11:58:04 PM (12 years ago)
Author:
rydurham
Message:

Tagging v1.4

Location:
laravel-paste-embed/tags/1.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • laravel-paste-embed/tags/1.4/laravel-paste-embed.php

    r854439 r854466  
    5151    //Pull data from paste.laravel.com
    5252    $url = esc_url("http://laravel.io/bin/$paste");
    53     $response = wp_remote_get($url);
     53    $response = wp_remote_get($url, array('timeout' => 30));
    5454    $response_code = wp_remote_retrieve_response_code( $response );
    5555
    5656    if ( $response_code != '200' ) {
    57         $error_message = "Paste Error: " .  $response['response']['message'];
    58         return $error_message;
     57        $error = $response->get_error_code();
     58        $message = "<b>Paste Bin Error:</b> " . $response->get_error_message($error);
     59
     60        return $message;
    5961    } else {
    6062        //Parse the body of the response to pull out the relevant content.
  • laravel-paste-embed/tags/1.4/readme.txt

    r854439 r854466  
    22Contributors: rydurham
    33Donate link: http://www.ryandurham.com/projects
    4 Tags: Laravel Paste
     4Tags: Laravel, Laravel.io, Paste, Bin
    55Requires at least: 3.3
    6 Tested up to: 3.8
     6Tested up to: 3.8.1
    77Stable tag: 1.4
    88License: GPLv2
     
    20202. Activate the plugin through the 'Plugins' menu in WordPress
    21213. Go to laravel.io/bin and create the paste you are going to embed in your page or post.
    22 4. Grab the identifying bit from the end of the URL. 'cJ9' in this case: http://laravel.io/bin/cJ9
    23 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='cJ9']
     224. Grab the identifying bit from the end of the URL. 'Q6a' in this case: http://laravel.io/bin/Q6a
     235. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='Q6a']
    2424
    2525
  • laravel-paste-embed/tags/1.4/trunk/readme.txt

    r854446 r854466  
    22Contributors: rydurham
    33Donate link: http://www.ryandurham.com/projects
    4 Tags: Laravel Paste
     4Tags: Laravel, Laravel.io, Paste, Bin
    55Requires at least: 3.3
    6 Tested up to: 3.8
     6Tested up to: 3.8.1
    77Stable tag: 1.4
    88License: GPLv2
     
    20202. Activate the plugin through the 'Plugins' menu in WordPress
    21213. Go to laravel.io/bin and create the paste you are going to embed in your page or post.
    22 4. Grab the identifying bit from the end of the URL. 'cJ9' in this case: http://laravel.io/bin/cJ9
    23 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='cJ9']
     224. Grab the identifying bit from the end of the URL. 'Q6a' in this case: http://laravel.io/bin/Q6a
     235. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='Q6a']
    2424
    2525
Note: See TracChangeset for help on using the changeset viewer.