Plugin Directory

Changeset 1716291


Ignore:
Timestamp:
08/19/2017 01:56:59 PM (9 years ago)
Author:
thomask777
Message:

2.5.5

Location:
link-to-bible/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • link-to-bible/trunk/.project

    r1064951 r1716291  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<projectDescription>
    3     <name>link-to-bible</name>
     3    <name>link-to-bible@4.8.1</name>
    44    <comment></comment>
    55    <projects>
  • link-to-bible/trunk/ltb.php

    r1653698 r1716291  
    33 * Plugin Name: Link To Bible
    44 * Description: Automatically links bible references in posts to the appropriate bible verse(s) at bibleserver.com
    5  * Version: 2.5.4
     5 * Version: 2.5.5
    66 * Plugin URI: https://wordpress.org/extend/plugins/link-to-bible/
    77 * Author: Thomas Kuhlmann
    88 * Author URI: http://oss.thk-systems.de
    99 * Min WP Version: 3.2.1
    10  * Max WP Version: 4.7.4
     10 * Max WP Version: 4.8.1
    1111 * Text Domain: ltb
    1212 */
     
    6868// ... on showing a post
    6969function ltb_show_post($content) {
     70    if(!$content)
     71        return $content;
    7072    $options = ltb_get_options ();
    7173    global $post;
     
    8688// ... on saving a post
    8789function ltb_save_post($content) {
     90    if(!$content)
     91        return $content;
    8892    global $post;
    8993    if (! get_post_meta ( $post->ID, 'LTB_DISABLE', true )) {
     
    108112// Add the links to the content
    109113function ltb_add_links($content, $post, $options, $ignore_errors = false) {
     114    if(!$content)
     115        return $content;
     116   
    110117    $content = ltb_mark_to_ignore_false_positive ( $options, $content );
    111118    $result = ltb_ask_bibleserver ( $options, $content, $post );
     
    161168    );
    162169   
    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 );
    164171}
    165172
     
    253260            'apikey_send' => 'API-Key+generieren'
    254261    );
    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 );
    256263    if (! $html)
    257264        return null; // Connection error
     
    456463        curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
    457464        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);
    458467        $result = curl_exec ( $ch );
    459468        $errno = curl_errno ( $ch );
  • link-to-bible/trunk/readme.txt

    r1653698 r1716291  
    33Tags: bible, bible verse, bible reference, bibleserver.com, bibelvers, bibel, bibelstelle
    44Requires at least: 3.2.1
    5 Tested up to: 4.7.4
    6 Stable tag: 2.5.4
     5Tested up to: 4.8.1
     6Stable tag: 2.5.5
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/copyleft/gpl.html
     
    5858
    5959== 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)
    6065
    6166= 2.5.4 =
Note: See TracChangeset for help on using the changeset viewer.