Changeset 854466
- Timestamp:
- 02/09/2014 11:58:04 PM (12 years ago)
- Location:
- laravel-paste-embed/tags/1.4
- Files:
-
- 3 edited
-
laravel-paste-embed.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
laravel-paste-embed/tags/1.4/laravel-paste-embed.php
r854439 r854466 51 51 //Pull data from paste.laravel.com 52 52 $url = esc_url("http://laravel.io/bin/$paste"); 53 $response = wp_remote_get($url );53 $response = wp_remote_get($url, array('timeout' => 30)); 54 54 $response_code = wp_remote_retrieve_response_code( $response ); 55 55 56 56 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; 59 61 } else { 60 62 //Parse the body of the response to pull out the relevant content. -
laravel-paste-embed/tags/1.4/readme.txt
r854439 r854466 2 2 Contributors: rydurham 3 3 Donate link: http://www.ryandurham.com/projects 4 Tags: Laravel Paste4 Tags: Laravel, Laravel.io, Paste, Bin 5 5 Requires at least: 3.3 6 Tested up to: 3.8 6 Tested up to: 3.8.1 7 7 Stable tag: 1.4 8 8 License: GPLv2 … … 20 20 2. Activate the plugin through the 'Plugins' menu in WordPress 21 21 3. 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/cJ923 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste=' cJ9']22 4. Grab the identifying bit from the end of the URL. 'Q6a' in this case: http://laravel.io/bin/Q6a 23 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='Q6a'] 24 24 25 25 -
laravel-paste-embed/tags/1.4/trunk/readme.txt
r854446 r854466 2 2 Contributors: rydurham 3 3 Donate link: http://www.ryandurham.com/projects 4 Tags: Laravel Paste4 Tags: Laravel, Laravel.io, Paste, Bin 5 5 Requires at least: 3.3 6 Tested up to: 3.8 6 Tested up to: 3.8.1 7 7 Stable tag: 1.4 8 8 License: GPLv2 … … 20 20 2. Activate the plugin through the 'Plugins' menu in WordPress 21 21 3. 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/cJ923 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste=' cJ9']22 4. Grab the identifying bit from the end of the URL. 'Q6a' in this case: http://laravel.io/bin/Q6a 23 5. In your page or post add this shortcode, with the relevant part of the URL in question: [lpe paste='Q6a'] 24 24 25 25
Note: See TracChangeset
for help on using the changeset viewer.