Plugin Directory

Changeset 1796121


Ignore:
Timestamp:
01/02/2018 10:51:26 PM (8 years ago)
Author:
proxymis
Message:

Fixed: EMPTY website get_site_url, get_home_url

Location:
html5-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • html5-chat/trunk/index.php

    r1758825 r1796121  
    1818    private static $adminPanel;
    1919    private static $code;
    20 
    2120
    2221    /*
     
    3736        $username = $user->user_login;;
    3837        $domain = get_site_url(null, '', '');
    39         $domain = parse_url($domain)['host'];
     38
     39        if (!$domain) {
     40            $domain = get_home_url(null, '', '');
     41        }
     42        if (!$domain) {
     43            $domain = $_SERVER['SERVER_NAME'];
     44        }
     45        $domain = parse_url($domain)['host'];
    4046        $params = array ('a'=>'createAccountWP', 'username'=>$username, 'email' => $email, 'isAdmin' => $isAdmin, 'url'=>$domain);
    4147        $query = http_build_query ($params);
  • html5-chat/trunk/readme.txt

    r1768162 r1796121  
    44Author URI: https://html5-chat.com
    55Tags: chat, tchat, webcam, cam, tchat,videochat
    6 Requires at least: 4.5
    7 Tested up to: 4.9
    8 Stable tag: 4.7
     6Requires at least: 4.0
     7Tested up to: 4.9.1
    98License: GPLv2 or later
    109License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4039
    4140You can do that inside your config panel: you can inject some css, change the way html5 works
     41
     42
     43== Changelog ==
     44fixed error on empty blog information
     45
    4246 
    4347== Questions ==
Note: See TracChangeset for help on using the changeset viewer.