Plugin Directory

Changeset 2875540


Ignore:
Timestamp:
03/06/2023 10:56:46 PM (3 years ago)
Author:
logtivity
Message:

release 2.3.0

Location:
logtivity
Files:
67 added
8 edited

Legend:

Unmodified
Added
Removed
  • logtivity/trunk/Admin/Logtivity_Admin.php

    r2829637 r2875540  
    2222    public function maybeHideFromMenu($plugins)
    2323    {
     24        if ($name = (new Logtivity_Options)->customPluginName()) {
     25            if (isset($plugins['logtivity/logtivity.php'])) {
     26                $plugins['logtivity/logtivity.php']['Name'] = $name;
     27            }
     28        }
     29
    2430        if (!$this->shouldHidePluginFromUI(false)) {
    2531            return $plugins;
  • logtivity/trunk/Admin/Logtivity_Options.php

    r2861741 r2875540  
    2727        'logtivity_disabled_error_levels',
    2828        'logtivity_hide_plugin_from_ui',
     29        'logtivity_custom_plugin_name',
    2930    ];
    3031
     
    186187    {
    187188        return $this->getOption('logtivity_hide_plugin_from_ui');
     189    }
     190
     191    public function customPluginName()
     192    {
     193        return $this->getOption('logtivity_custom_plugin_name');
    188194    }
    189195
  • logtivity/trunk/Logs/Core/Logtivity_Core.php

    r2861741 r2875540  
    100100            'logtivity_disable_error_logging',
    101101            'logtivity_hide_plugin_from_ui',
     102            'logtivity_custom_plugin_name',
    102103            'logtivity_disable_default_logging',
    103104            'logtivity_site_api_key',
  • logtivity/trunk/Services/Logtivity_Api.php

    r2861741 r2875540  
    100100        $response = wp_remote_post($this->getEndpoint($url), [
    101101            'method' => $method,
    102             'timeout'   => ( $shouldLogLatestResponse ? 45 : 0.01),
     102            'timeout'   => ( $shouldLogLatestResponse ? 6 : 0.01),
    103103            'blocking'  => ( $shouldLogLatestResponse ? true : false),
    104104            'redirection' => 5,
     
    113113        $response = wp_remote_retrieve_body($response);
    114114
     115        if (empty($response)) {
     116            return $response;
     117        }
     118
    115119        if ($shouldLogLatestResponse && $this->notUpdatingWidgetInCustomizer() && $method === 'POST') {
    116 
    117120            $this->options->update([
    118121                    'logtivity_latest_response' => [
     
    146149                    'logtivity_enable_options_table_logging' => $body['settings']['enable_options_table_logging'] ?? null,
    147150                    'logtivity_enable_post_meta_logging' => $body['settings']['enable_post_meta_logging'] ?? null,
     151                    'logtivity_custom_plugin_name' => $body['settings']['custom_plugin_name'] ?? null,
    148152                ],
    149153                false
  • logtivity/trunk/Services/Logtivity_Check_For_New_Settings.php

    r2861741 r2875540  
    1616        update_option('logtivity_last_settings_check_in_at', ['date' => date("Y-m-d H:i:s")]);
    1717
    18         $api = new Logtivity_Api;
     18        try {
     19            $api = new Logtivity_Api;
    1920
    20         $response = $api->post('/settings-check', []);
     21            $response = $api->post('/settings-check', []);
    2122
    22         $response = wp_remote_retrieve_body($response);
     23            if (empty($response)) {
     24                return;
     25            }
     26           
     27            $body = json_decode($response, true);
    2328
    24         $body = json_decode($response, true);
    25 
    26         $api->updateSettings($body);
     29            $api->updateSettings($body);
     30        } catch (\Exception $e) {
     31           
     32        }
    2733    }
    2834
  • logtivity/trunk/logtivity.php

    r2866734 r2875540  
    55 * Plugin URI:  https://logtivity.io
    66 * Description: Dedicated Event Monitoring for WordPress using Logtivity.io.
    7  * Version:     2.2.1
     7 * Version:     2.3.0
    88 * Author:      Logtivity
    99 * Text Domain: logtivity
     
    1212class Logtivity
    1313{
    14     protected $version = '2.2.1';
     14    protected $version = '2.3.0';
    1515
    1616    /**
  • logtivity/trunk/readme.md

    r2866734 r2875540  
    55Requires at least: 4.7
    66Tested up to: 6.0
    7 Stable tag: 2.2.1
     7Stable tag: 2.3.0
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    262262
    263263== Changelog ==
     264
     265= 2.3.0 =
     266
     267_Release Date – Thursday 2nd March 2023_
     268
     269* Add ability to set a custom name for the plugin when listed in /wp-admin/plugins.php
     270* Reduce timeout when checking in the with API for settings updates to ensure to not affect performance.
    264271
    265272= 2.2.1 =
  • logtivity/trunk/readme.txt

    r2866734 r2875540  
    55Requires at least: 4.7
    66Tested up to: 6.0
    7 Stable tag: 2.2.1
     7Stable tag: 2.3.0
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    262262
    263263== Changelog ==
     264
     265= 2.3.0 =
     266
     267_Release Date – Thursday 2nd March 2023_
     268
     269* Add ability to set a custom name for the plugin when listed in /wp-admin/plugins.php
     270* Reduce timeout when checking in the with API for settings updates to ensure to not affect performance.
    264271
    265272= 2.2.1 =
Note: See TracChangeset for help on using the changeset viewer.