Changeset 1268935
- Timestamp:
- 10/19/2015 09:16:29 PM (10 years ago)
- Location:
- dobsondev-shortcodes
- Files:
-
- 3 edited
- 7 copied
-
tags/1.1.10 (copied) (copied from dobsondev-shortcodes/trunk)
-
tags/1.1.10/changelog.txt (copied) (copied from dobsondev-shortcodes/trunk/changelog.txt) (1 diff)
-
tags/1.1.10/css (copied) (copied from dobsondev-shortcodes/trunk/css)
-
tags/1.1.10/dobsondev-shortcodes.php (copied) (copied from dobsondev-shortcodes/trunk/dobsondev-shortcodes.php) (5 diffs)
-
tags/1.1.10/js (copied) (copied from dobsondev-shortcodes/trunk/js)
-
tags/1.1.10/libs (copied) (copied from dobsondev-shortcodes/trunk/libs)
-
tags/1.1.10/readme.txt (copied) (copied from dobsondev-shortcodes/trunk/readme.txt) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/dobsondev-shortcodes.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dobsondev-shortcodes/tags/1.1.10/changelog.txt
r1265965 r1268935 9 9 Bug Fixes 10 10 11 * Fixed a bug where the GitHub File Contents shortcode didn't work. When changing from version 1.1.8 to 1.1.9 the API call was mistakenly switched to the README file but this has now been fixed. Thanks to [Igor Pečovnik](https://github.com/igorpecovnik) for finding the error and letting me know. (1.1.10) 11 12 * Found a bug where the GitHub Readme and GitHub File Contents shortcodes would not return anything because cURL was unable to verify the certificate provided by the server. This can now be avoided using the insecure="true" attribute on the shortcode. Thanks to [JacobD10](https://profiles.wordpress.org/jacobd10/) for finding the error. (1.1.9) 12 13 * More substantial error handling has been added to both the GitHub Readme and GitHub File Contents shortcodes which should help users identify what kind of cURL error they are getting. (1.1.9) -
dobsondev-shortcodes/tags/1.1.10/dobsondev-shortcodes.php
r1265965 r1268935 4 4 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/ 5 5 * Description: A collection of helpful shortcodes. 6 * Version: 1.1. 96 * Version: 1.1.10 7 7 * Author: Alex Dobson 8 8 * Author URI: http://dobsondev.com/ … … 136 136 $parsedown = new Parsedown(); 137 137 $output_readme = $parsedown->text(base64_decode($response_array->content)); 138 if ( $cache_id !== "NULL" ) {138 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 139 139 // set the transient so we can use it later for faster loading times 140 140 set_transient( 'ddghr-' . md5( $owner . $repo . $cache_id ), $output_readme, DAY_IN_SECONDS ); … … 170 170 curl_setopt_array($curl, array( 171 171 CURLOPT_RETURNTRANSFER => 1, 172 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/ readme',172 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/contents/' . $path, 173 173 CURLOPT_USERAGENT => $repo, 174 174 CURLOPT_HEADER => false, … … 179 179 curl_setopt_array($curl, array( 180 180 CURLOPT_RETURNTRANSFER => 1, 181 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/ readme',181 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/contents/' . $path, 182 182 CURLOPT_USERAGENT => $repo, 183 183 CURLOPT_HEADER => false … … 197 197 $parsedown = new Parsedown(); 198 198 $output_md_file = $parsedown->text(base64_decode($response_array->content)); 199 if ( $cache_id !== "NULL" ) {199 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 200 200 // set the transient if the cache_id is set so we can use it later for faster loading time 201 201 set_transient( 'ddghf-' . md5( $owner . $repo . $path . $cache_id ), $output_md_file, DAY_IN_SECONDS ); 202 202 } 203 var_dump("DID NOT get Transient"); 203 204 return $output_md_file; 204 205 } else { 205 206 $output_file = nl2br(base64_decode($response_array->content)); 206 if ( $cache_id !== "NULL" ) {207 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 207 208 // set the transient if the cache_id is set so we can use it later for faster loading time 208 209 set_transient( 'ddghf-' . md5( $owner . $repo . $path . $cache_id ), $output_file, DAY_IN_SECONDS ); -
dobsondev-shortcodes/tags/1.1.10/readme.txt
r1265965 r1268935 7 7 Requires at least: 2.5 8 8 Tested up to: 4.3 9 Stable tag: 1.1. 99 Stable tag: 1.1.10 10 10 11 11 Add a collection of helpful shortcodes to your site. … … 165 165 Bug Fixes 166 166 167 * Fixed a bug where the GitHub File Contents shortcode didn't work. When changing from version 1.1.8 to 1.1.9 the API call was mistakenly switched to the README file but this has now been fixed. Thanks to [Igor Pečovnik](https://github.com/igorpecovnik) for finding the error and letting me know. (1.1.10) 167 168 * Found a bug where the GitHub Readme and GitHub File Contents shortcodes would not return anything because cURL was unable to verify the certificate provided by the server. This can now be avoided using the insecure="true" attribute on the shortcode. Thanks to [JacobD10](https://profiles.wordpress.org/jacobd10/) for finding the error. (1.1.9) 168 169 * More substantial error handling has been added to both the GitHub Readme and GitHub File Contents shortcodes which should help users identify what kind of cURL error they are getting. (1.1.9) -
dobsondev-shortcodes/trunk/changelog.txt
r1265965 r1268935 9 9 Bug Fixes 10 10 11 * Fixed a bug where the GitHub File Contents shortcode didn't work. When changing from version 1.1.8 to 1.1.9 the API call was mistakenly switched to the README file but this has now been fixed. Thanks to [Igor Pečovnik](https://github.com/igorpecovnik) for finding the error and letting me know. (1.1.10) 11 12 * Found a bug where the GitHub Readme and GitHub File Contents shortcodes would not return anything because cURL was unable to verify the certificate provided by the server. This can now be avoided using the insecure="true" attribute on the shortcode. Thanks to [JacobD10](https://profiles.wordpress.org/jacobd10/) for finding the error. (1.1.9) 12 13 * More substantial error handling has been added to both the GitHub Readme and GitHub File Contents shortcodes which should help users identify what kind of cURL error they are getting. (1.1.9) -
dobsondev-shortcodes/trunk/dobsondev-shortcodes.php
r1265965 r1268935 4 4 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/ 5 5 * Description: A collection of helpful shortcodes. 6 * Version: 1.1. 96 * Version: 1.1.10 7 7 * Author: Alex Dobson 8 8 * Author URI: http://dobsondev.com/ … … 136 136 $parsedown = new Parsedown(); 137 137 $output_readme = $parsedown->text(base64_decode($response_array->content)); 138 if ( $cache_id !== "NULL" ) {138 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 139 139 // set the transient so we can use it later for faster loading times 140 140 set_transient( 'ddghr-' . md5( $owner . $repo . $cache_id ), $output_readme, DAY_IN_SECONDS ); … … 170 170 curl_setopt_array($curl, array( 171 171 CURLOPT_RETURNTRANSFER => 1, 172 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/ readme',172 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/contents/' . $path, 173 173 CURLOPT_USERAGENT => $repo, 174 174 CURLOPT_HEADER => false, … … 179 179 curl_setopt_array($curl, array( 180 180 CURLOPT_RETURNTRANSFER => 1, 181 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/ readme',181 CURLOPT_URL => 'https://api.github.com/repos/' . $owner . '/' . $repo . '/contents/' . $path, 182 182 CURLOPT_USERAGENT => $repo, 183 183 CURLOPT_HEADER => false … … 197 197 $parsedown = new Parsedown(); 198 198 $output_md_file = $parsedown->text(base64_decode($response_array->content)); 199 if ( $cache_id !== "NULL" ) {199 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 200 200 // set the transient if the cache_id is set so we can use it later for faster loading time 201 201 set_transient( 'ddghf-' . md5( $owner . $repo . $path . $cache_id ), $output_md_file, DAY_IN_SECONDS ); 202 202 } 203 var_dump("DID NOT get Transient"); 203 204 return $output_md_file; 204 205 } else { 205 206 $output_file = nl2br(base64_decode($response_array->content)); 206 if ( $cache_id !== "NULL" ) {207 if ( $cache_id !== "NULL" || !empty( $cache_id ) ) { 207 208 // set the transient if the cache_id is set so we can use it later for faster loading time 208 209 set_transient( 'ddghf-' . md5( $owner . $repo . $path . $cache_id ), $output_file, DAY_IN_SECONDS ); -
dobsondev-shortcodes/trunk/readme.txt
r1265965 r1268935 7 7 Requires at least: 2.5 8 8 Tested up to: 4.3 9 Stable tag: 1.1. 99 Stable tag: 1.1.10 10 10 11 11 Add a collection of helpful shortcodes to your site. … … 165 165 Bug Fixes 166 166 167 * Fixed a bug where the GitHub File Contents shortcode didn't work. When changing from version 1.1.8 to 1.1.9 the API call was mistakenly switched to the README file but this has now been fixed. Thanks to [Igor Pečovnik](https://github.com/igorpecovnik) for finding the error and letting me know. (1.1.10) 167 168 * Found a bug where the GitHub Readme and GitHub File Contents shortcodes would not return anything because cURL was unable to verify the certificate provided by the server. This can now be avoided using the insecure="true" attribute on the shortcode. Thanks to [JacobD10](https://profiles.wordpress.org/jacobd10/) for finding the error. (1.1.9) 168 169 * More substantial error handling has been added to both the GitHub Readme and GitHub File Contents shortcodes which should help users identify what kind of cURL error they are getting. (1.1.9)
Note: See TracChangeset
for help on using the changeset viewer.