Plugin Directory

Changeset 2255003


Ignore:
Timestamp:
03/05/2020 10:48:34 AM (6 years ago)
Author:
autooffice
Message:

update plugin

Location:
aopush/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • aopush/trunk/aopush_plugin.php

    r2179249 r2255003  
    55Description: Плагин для лёгкого подключения push-уведомлений на вашем сайте. Пройдя двухминутную регистрацию прямо через Wordpress, вы сможете включить подписку на push на вашем сайте одной кнопкой. Плагин поддерживает два способа отправки пуш: автоматический - при создании или обновлении записи на блоге, и ручную рассылку по подписчикам.
    66Author: Autooffice
    7 Version: 1.0.09
     7Version: 1.0.10
    88Author URI: https://profiles.wordpress.org/autooffice#content-plugins
    99*/
  • aopush/trunk/includes/AopushPushApi.php

    r2108105 r2255003  
    364364    private function aopush_request($method='', $data=[])
    365365    {
    366         if (empty($method) || empty($data)) {
     366        if (empty($method) || empty($data) || empty($data['email'])) {
    367367            return false;
    368368        }
     
    377377        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);       
    378378        $answer = curl_exec($ch);
     379       
     380        error_log($answer."\r\n".PHP_EOL, 3, dirname(__FILE__).'/log.log');
     381       
    379382        $array = json_decode($answer, true);
    380383        if (empty($array) || !is_array($array)) {
  • aopush/trunk/readme.txt

    r2179249 r2255003  
    55Tested up to: 7.3.10
    66Requires PHP: 5.2
    7 Stable tag: 1.0.09
     7Stable tag: 1.0.10
    88
    99===Description===
Note: See TracChangeset for help on using the changeset viewer.