Plugin Directory

Changeset 3442269


Ignore:
Timestamp:
01/19/2026 07:37:54 AM (7 weeks ago)
Author:
awesomefootnotes
Message:

Adding the first version of my plugin

Location:
0-day-analytics
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • 0-day-analytics/tags/4.5.1/advanced-analytics.php

    r3442115 r3442269  
    1111 * Plugin Name:     0 Day Analytics
    1212 * Description:     Take full control of error log, crons, transients, plugins, requests, mails and DB tables.
    13  * Version:         4.5.0
     13 * Version:         4.5.1
    1414 * Author:          Stoil Dobrev
    1515 * Author URI:      https://github.com/sdobreff/
     
    3939// Constants.
    4040if ( ! defined( 'ADVAN_VERSION' ) ) {
    41     define( 'ADVAN_VERSION', '4.5.0' );
     41    define( 'ADVAN_VERSION', '4.5.1' );
    4242    define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' );
    4343    define( 'ADVAN_NAME', '0 Day Analytics' );
  • 0-day-analytics/tags/4.5.1/classes/vendor/helpers/class-settings.php

    r3442115 r3442269  
    19051905                $wp_debug_log_enable = ( array_key_exists( 'wp_debug_log_enable', $post_array ) ) ? filter_var( $post_array['wp_debug_log_enable'], FILTER_VALIDATE_BOOLEAN ) : false;
    19061906
    1907                 try {
    1908                     Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
    1909                 } catch ( \Throwable $e ) {
    1910                     $config_errors[] = array(
    1911                         'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
    1912                         'message' => $e->getMessage(),
    1913                     );
    1914                 }
    1915 
    19161907                if ( $wp_debug_log_enable ) {
     1908
     1909                    @clearstatcache( false, File_Helper::get_wp_config_file_path() );
     1910
    19171911                    $wp_debug_log_generate = ( array_key_exists( 'wp_debug_log_file_generate', $post_array ) ) ? filter_var( $post_array['wp_debug_log_file_generate'], FILTER_VALIDATE_BOOLEAN ) : false;
    19181912
     
    19481942                    }
    19491943
     1944                    // If at this point file is still not set, set to default.
     1945                    if ( false === $wp_debug_log_generate && '' === trim( $wp_debug_log_filename ) ) {
     1946                        try {
     1947                            Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
     1948                        } catch ( \Throwable $e ) {
     1949                            $config_errors[] = array(
     1950                                'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
     1951                                'message' => $e->getMessage(),
     1952                            );
     1953                        }
     1954                    }
     1955
    19501956                    // Clear the flag for keep reading the error log if WP settings are disabled (because at this point they are enabled).
    19511957                    $advanced_options['keep_reading_error_log'] = false;
    19521958                    $advanced_options['plugin_debug_enable']    = false;
     1959                } else {
     1960
     1961                    try {
     1962                        Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
     1963                    } catch ( \Throwable $e ) {
     1964                        $config_errors[] = array(
     1965                            'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
     1966                            'message' => $e->getMessage(),
     1967                        );
     1968                    }
    19531969                }
    19541970
  • 0-day-analytics/tags/4.5.1/classes/vendor/settings/settings-options/hooks-capture.php

    r3442115 r3442269  
    156156                            'id'   => 'group-description',
    157157                            'type' => 'textarea',
     158                            'default' => '',
    158159                        )
    159160                    );
  • 0-day-analytics/tags/4.5.1/readme.txt

    r3442115 r3442269  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 4.5.0
     7Stable tag: 4.5.1
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    9393== Changelog ==
    9494
     95= 4.5.1 =
     96* Fixes problems with settings save and debug log file name.
     97
    9598= 4.5.0 =
    9699* Bug fixes and code improvements. Hooks module introduced.
  • 0-day-analytics/trunk/advanced-analytics.php

    r3442115 r3442269  
    1111 * Plugin Name:     0 Day Analytics
    1212 * Description:     Take full control of error log, crons, transients, plugins, requests, mails and DB tables.
    13  * Version:         4.5.0
     13 * Version:         4.5.1
    1414 * Author:          Stoil Dobrev
    1515 * Author URI:      https://github.com/sdobreff/
     
    3939// Constants.
    4040if ( ! defined( 'ADVAN_VERSION' ) ) {
    41     define( 'ADVAN_VERSION', '4.5.0' );
     41    define( 'ADVAN_VERSION', '4.5.1' );
    4242    define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' );
    4343    define( 'ADVAN_NAME', '0 Day Analytics' );
  • 0-day-analytics/trunk/classes/vendor/helpers/class-settings.php

    r3442115 r3442269  
    19051905                $wp_debug_log_enable = ( array_key_exists( 'wp_debug_log_enable', $post_array ) ) ? filter_var( $post_array['wp_debug_log_enable'], FILTER_VALIDATE_BOOLEAN ) : false;
    19061906
    1907                 try {
    1908                     Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
    1909                 } catch ( \Throwable $e ) {
    1910                     $config_errors[] = array(
    1911                         'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
    1912                         'message' => $e->getMessage(),
    1913                     );
    1914                 }
    1915 
    19161907                if ( $wp_debug_log_enable ) {
     1908
     1909                    @clearstatcache( false, File_Helper::get_wp_config_file_path() );
     1910
    19171911                    $wp_debug_log_generate = ( array_key_exists( 'wp_debug_log_file_generate', $post_array ) ) ? filter_var( $post_array['wp_debug_log_file_generate'], FILTER_VALIDATE_BOOLEAN ) : false;
    19181912
     
    19481942                    }
    19491943
     1944                    // If at this point file is still not set, set to default.
     1945                    if ( false === $wp_debug_log_generate && '' === trim( $wp_debug_log_filename ) ) {
     1946                        try {
     1947                            Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
     1948                        } catch ( \Throwable $e ) {
     1949                            $config_errors[] = array(
     1950                                'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
     1951                                'message' => $e->getMessage(),
     1952                            );
     1953                        }
     1954                    }
     1955
    19501956                    // Clear the flag for keep reading the error log if WP settings are disabled (because at this point they are enabled).
    19511957                    $advanced_options['keep_reading_error_log'] = false;
    19521958                    $advanced_options['plugin_debug_enable']    = false;
     1959                } else {
     1960
     1961                    try {
     1962                        Config_Transformer::update( 'constant', 'WP_DEBUG_LOG', $wp_debug_log_enable, self::$config_args );
     1963                    } catch ( \Throwable $e ) {
     1964                        $config_errors[] = array(
     1965                            'context' => self::build_config_error_context( 'update', 'WP_DEBUG_LOG', $wp_debug_log_enable ),
     1966                            'message' => $e->getMessage(),
     1967                        );
     1968                    }
    19531969                }
    19541970
  • 0-day-analytics/trunk/classes/vendor/settings/settings-options/hooks-capture.php

    r3442115 r3442269  
    156156                            'id'   => 'group-description',
    157157                            'type' => 'textarea',
     158                            'default' => '',
    158159                        )
    159160                    );
  • 0-day-analytics/trunk/readme.txt

    r3442115 r3442269  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 4.5.0
     7Stable tag: 4.5.1
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    9393== Changelog ==
    9494
     95= 4.5.1 =
     96* Fixes problems with settings save and debug log file name.
     97
    9598= 4.5.0 =
    9699* Bug fixes and code improvements. Hooks module introduced.
Note: See TracChangeset for help on using the changeset viewer.