Changeset 2556073
- Timestamp:
- 06/29/2021 09:06:10 PM (5 years ago)
- Location:
- link-to-bible/trunk
- Files:
-
- 2 edited
-
ltb.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
link-to-bible/trunk/ltb.php
r2477796 r2556073 3 3 * Plugin Name: Link To Bible 4 4 * Description: Automatically links bible references in posts to the appropriate bible verse(s) at bibleserver.com 5 * Version: 2.5. 85 * Version: 2.5.9 6 6 * Plugin URI: https://wordpress.org/extend/plugins/link-to-bible/ 7 7 * Author: Thomas Kuhlmann 8 8 * Author URI: http://www.thk-systems.de 9 9 * Min WP Version: 3.2.1 10 * Max WP Version: 5. 610 * Max WP Version: 5.8 11 11 * Text Domain: ltb 12 12 */ … … 463 463 $result = curl_exec ( $ch ); 464 464 $errno = curl_errno ( $ch ); 465 $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); 465 466 $error = curl_error ( $ch ); 466 467 curl_close ( $ch ); 467 if (! $errno) {468 return $result;469 }468 if ((!$errno) && (in_array($http_code, [200, 201, 202, 204]))) { 469 return $result; 470 } 470 471 } else { 471 472 $http = array ( -
link-to-bible/trunk/readme.txt
r2477796 r2556073 3 3 Tags: bible, bible verse, bible reference, bibleserver.com, bibelvers, bibel, bibelstelle 4 4 Requires at least: 3.2.1 5 Tested up to: 5. 66 Stable tag: 2.5. 85 Tested up to: 5.8 6 Stable tag: 2.5.9 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/copyleft/gpl.html … … 20 20 = Notes = 21 21 - This plugin uses the webservice of bibleserver.com 22 - The links to bibleserver.com are added while saving a post, because the requests to bibleserver.com are limited per day and site. For posts created before activating 'Link-To-Bible' and never saved since then, the links to bibleserver.com are added when the post is viewed the first time.22 - <b>The links to bibleserver.com are added while saving a post</b>, because the requests to bibleserver.com are limited per day and site. For posts created before activating 'Link-To-Bible' and never saved since then, the links to bibleserver.com are added when the post is viewed the first time. 23 23 - Changing an already linked bible reference (e.g. "Gen 1,2" -> "Gen 2,1"), saving the post will automatically update the link to bibleserver.com. 24 24 … … 66 66 == Changelog == 67 67 68 = 2.5.9 = 69 70 - Improved handling of http error codes receiving from bibleserver.com backend 71 68 72 = 2.5.8 = 69 73
Note: See TracChangeset
for help on using the changeset viewer.