Changeset 1716291
- Timestamp:
- 08/19/2017 01:56:59 PM (9 years ago)
- Location:
- link-to-bible/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
link-to-bible/trunk/.project
r1064951 r1716291 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name>link-to-bible </name>3 <name>link-to-bible@4.8.1</name> 4 4 <comment></comment> 5 5 <projects> -
link-to-bible/trunk/ltb.php
r1653698 r1716291 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. 45 * Version: 2.5.5 6 6 * Plugin URI: https://wordpress.org/extend/plugins/link-to-bible/ 7 7 * Author: Thomas Kuhlmann 8 8 * Author URI: http://oss.thk-systems.de 9 9 * Min WP Version: 3.2.1 10 * Max WP Version: 4. 7.410 * Max WP Version: 4.8.1 11 11 * Text Domain: ltb 12 12 */ … … 68 68 // ... on showing a post 69 69 function ltb_show_post($content) { 70 if(!$content) 71 return $content; 70 72 $options = ltb_get_options (); 71 73 global $post; … … 86 88 // ... on saving a post 87 89 function ltb_save_post($content) { 90 if(!$content) 91 return $content; 88 92 global $post; 89 93 if (! get_post_meta ( $post->ID, 'LTB_DISABLE', true )) { … … 108 112 // Add the links to the content 109 113 function ltb_add_links($content, $post, $options, $ignore_errors = false) { 114 if(!$content) 115 return $content; 116 110 117 $content = ltb_mark_to_ignore_false_positive ( $options, $content ); 111 118 $result = ltb_ask_bibleserver ( $options, $content, $post ); … … 161 168 ); 162 169 163 return ltb_http_post_request ( 'http ://www.bibleserver.com/api/parser', $params );170 return ltb_http_post_request ( 'https://www.bibleserver.com/api/parser', $params ); 164 171 } 165 172 … … 253 260 'apikey_send' => 'API-Key+generieren' 254 261 ); 255 $html = ltb_http_post_request ( "http ://www.bibleserver.com/webmasters/index.php#apikey", $params );262 $html = ltb_http_post_request ( "https://www.bibleserver.com/webmasters/index.php#apikey", $params ); 256 263 if (! $html) 257 264 return null; // Connection error … … 456 463 curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); 457 464 curl_setopt ( $ch, CURLOPT_USERAGENT, "LinkToBible/" . $GLOBALS ['LTB_VERSION'] ); 465 curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, 0); 466 curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0); 458 467 $result = curl_exec ( $ch ); 459 468 $errno = curl_errno ( $ch ); -
link-to-bible/trunk/readme.txt
r1653698 r1716291 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: 4. 7.46 Stable tag: 2.5. 45 Tested up to: 4.8.1 6 Stable tag: 2.5.5 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/copyleft/gpl.html … … 58 58 59 59 == Changelog == 60 61 = 2.5.5 = 62 63 - Added a workaround to ommit error 'Link-To-Bible Error: "ERROR - unknown data"' on creating new posts 64 - Updated all bibleserver.com urls to use https ones (with disabled host verification) 60 65 61 66 = 2.5.4 =
Note: See TracChangeset
for help on using the changeset viewer.