Plugin Directory

Changeset 2220792


Ignore:
Timestamp:
01/02/2020 07:58:28 AM (6 years ago)
Author:
2p1d
Message:

v0.9.2

Location:
aj-stock
Files:
53 added
3 edited

Legend:

Unmodified
Added
Removed
  • aj-stock/trunk/aj-stock.php

    r2216695 r2220792  
    77Plugin Name: AJ-Stock
    88Description: 주가 정보를 보여주는 Plugin 입니다.
    9 Version: 0.9.1.0
     9Version: 0.9.2
    1010Author: AJ Bang
    11 Author URI: https://2p1d.com/aj-%ec%a3%bc%ec%8b%9d-%ed%94%8c%eb%9f%ac%ea%b7%b8%ec%9d%b8/aj-%ec%a3%bc%ec%8b%9d-shortcodes/
     11Author URI: https://2p1d.com
    1212License: GPLv2 or later
    1313*/
    1414//if ( ! defined( 'WPINC' ) ) { die; }
    1515
    16 $ajStockInfoVersion = "0.9.1";
     16$ajStockInfoVersion = "0.9.2";
    1717$ajStockInfoDBVersion = "1.0";
    1818
  • aj-stock/trunk/function.php

    r2216695 r2220792  
    11<?php
    2 date_default_timezone_set(get_option('timezone_string'));
     2$ajsi_tz = get_option('timezone_string');
     3if($ajsi_tz){
     4    date_default_timezone_set($ajsi_tz);
     5}else{
     6    date_default_timezone_set('Asia/Seoul');
     7}
    38$mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
    49$mysqli->query('set names utf8');
     
    5560    $url = str_replace("[CODE]", $ajsi_opt_stockcode, AJSI_PLUGIN_API_REALTIME_PRICE);
    5661
    57     $request = wp_remote_get($url);
    58     $content = "";
    59     if(200 !== wp_remote_retrieve_response_code($request) OR "OK" !== wp_remote_retrieve_response_message($request)){
    60         $content = wp_remote_retrieve_body($request);
    61     }
     62    $content = file_get_contents($url);
    6263    if ($content) {
    6364        $data = "";
  • aj-stock/trunk/readme.txt

    r2216695 r2220792  
    33Tags: stock,stockchart,stockinfo
    44Donate link: [https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5M98KHRP9YDGG](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5M98KHRP9YDGG)
    5 Requires at least: 0.9.1
     5Requires at least: 5.1
    66Tested up to: 5.3
    77Requires PHP: 7.2
    8 Stable tag: 0.9.1
     8Stable tag: 0.9.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5959
    6060== Changelog ==
    61 첫번째 릴리즈
     61v0.9.2
     62* 몇몇 환경에서 KRX 데이터를 가져오지 못하는 문제 해결
    6263
    6364== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.