Plugin Directory

Changeset 890198


Ignore:
Timestamp:
04/09/2014 04:24:48 PM (12 years ago)
Author:
bookingLive
Message:
  • Improvements to plugin site registration process
Location:
bookinglive/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bookinglive/trunk/bookingLive.php

    r886247 r890198  
    1 <?php 
    2 /* 
     1<?php
     2/*
    33Plugin Name: Booking Live Plugin
    44Plugin URI: http://wordpress.org/plugins/bookinglive/
     
    66Author: BookingLive.
    77Author URI: http://www.bookinglive.com
    8 Version: 0.2
     8Version: 0.4
    99*/
    1010if ( ! defined( 'WP_PLUGIN_URL' ) ) define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
     
    174174    if(!preg_match('~^http://|https://~',$newInput)) $newInput = 'http://' . $newInput;
    175175    $file_headers = @get_headers($newInput);
    176     if($file_headers[0] != 'HTTP/1.0 200 OK') {
    177         add_settings_error( 'bookingLive_siteHost_name', esc_attr( 'settings_updated' ),'The URL for the host is incorrect');
     176    if(strpos($file_headers[0], '200') === false) {
     177        add_settings_error( 'bookingLive_siteHost_name', esc_attr( 'settings_updated' ),'Error: Could not connect to the host URL');
    178178        $newInput='';
    179179        return $newInput;
     
    197197        else{
    198198            if($arrCurlReturn['body']=='false'){
    199                 add_settings_error( 'bookingLive_siteHost_name', esc_attr( 'settings_updated' ),'The URL for the host is incorrect');
     199                add_settings_error( 'bookingLive_siteHost_name', esc_attr( 'settings_updated' ),'Error: Unable to register wih host site');
    200200            }
    201201            else{
  • bookinglive/trunk/readme.txt

    r886247 r890198  
    44Requires at least: 3.3
    55Tested up to: 3.7
    6 Stable tag: 0.3
     6Stable tag: 0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
     51= 0.4 =
     52* Improvements to plugin site registration process
     53
     54= 0.3 =
     55* Fixed bug preventing javascript loading
     56
    5157= 0.2 =
    5258* Changes to the user interface
Note: See TracChangeset for help on using the changeset viewer.