Plugin Directory

Changeset 3373091


Ignore:
Timestamp:
10/05/2025 10:01:04 AM (5 months ago)
Author:
awesomefootnotes
Message:

Adding the first version of my plugin

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

Legend:

Unmodified
Added
Removed
  • 0-day-analytics/tags/3.7.0/classes/controllers/class-requests-log.php

    r3367391 r3373091  
    348348         * @return string
    349349         *
    350          * @since latest
     350         * @since 3.7.1
    351351         */
    352352        private static function add_plugin_info_to_collected_item( string $message ) {
  • 0-day-analytics/tags/3.7.0/classes/entities/class-requests-log-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/tags/3.7.0/classes/entities/class-wp-mail-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/tags/3.7.0/classes/lists/views/class-requests-view.php

    r3367391 r3373091  
    659659         * @return void
    660660         *
    661          * @since latest
     661         * @since 3.7.1
    662662         */
    663663        public static function plugin_filter_action() {
  • 0-day-analytics/tags/3.7.1/advanced-analytics.php

    r3367391 r3373091  
    1313 * Plugin Name:     WP Control
    1414 * Description:     Take full control of error log, crons, transients, plugins, requests, mails and DB tables.
    15  * Version:         3.7.0
     15 * Version:         3.7.1
    1616 * Author:          Stoil Dobrev
    1717 * Author URI:      https://github.com/sdobreff/
     
    3939// Constants.
    4040if ( ! defined( 'ADVAN_VERSION' ) ) {
    41     define( 'ADVAN_VERSION', '3.7.0' );
     41    define( 'ADVAN_VERSION', '3.7.1' );
    4242    define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' );
    4343    define( 'ADVAN_NAME', 'WP Control' );
  • 0-day-analytics/tags/3.7.1/classes/controllers/class-requests-log.php

    r3367391 r3373091  
    348348         * @return string
    349349         *
    350          * @since latest
     350         * @since 3.7.1
    351351         */
    352352        private static function add_plugin_info_to_collected_item( string $message ) {
  • 0-day-analytics/tags/3.7.1/classes/entities/class-requests-log-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/tags/3.7.1/classes/entities/class-wp-mail-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/tags/3.7.1/classes/helpers/class-transients-helper.php

    r3354751 r3373091  
    403403                $sql[] = 'count(go.option_id)';
    404404            } else {
    405                 $sql[] = 'go.option_id, go.option_name, go.option_value, go.autoload, d.option_value AS time_to_run';
     405                $sql[] = 'go.option_id, go.option_name, go.option_value, go.autoload, d.option_value AS schedule';
    406406            }
    407407
     
    411411
    412412                // FROM.
     413               
     414            // old - ON d.option_name LIKE CONCAT('%_transient_timeout_', SUBSTRING_INDEX( go.option_name, '_transient_', -1 ), '%')
    413415
    414416                $sql[] = "LEFT JOIN
    415417                {$wpdb->options} d
    416                 ON d.option_name LIKE concat('%_transient_timeout_', SUBSTRING_INDEX( go.option_name, '_transient_', -1 ), '%')
     418                ON d.option_name = CONCAT(
     419                    '_transient_timeout_',
     420                    SUBSTRING( go.option_name, LENGTH( '_transient_' ) + 1 )
     421                )
    417422            WHERE ( go.option_name LIKE %s OR go.option_name LIKE %s ) AND go.option_name NOT LIKE %s";
    418423
     
    491496                        'transient_name' => self::get_transient_name( $transient['option_name'] ),
    492497                        'value'          => self::get_transient_value( $transient['option_value'] ),
    493                         'schedule'       => self::get_transient_expiration_time( $transient['option_name'] ),
     498                        'schedule'       => (int) $transient['schedule'] ,
    494499                        'id'             => $transient['option_id'],
    495 
    496500                    );
    497501                }
  • 0-day-analytics/tags/3.7.1/classes/lists/class-requests-list.php

    r3367391 r3373091  
    550550                            return __( 'Plugin: ', '0-day-analytics' ) . '<b>' . \esc_html( $plugin['Name'] ) . '</b><br>' . \__( 'Current version: ' ) . \esc_html( $plugin['Version'] );
    551551                        }
    552                     } else {
    553                         return \esc_html__( 'Core or Unknown', '0-day-analytics' );
    554552                    }
    555553            }
     
    11261124            if ( json_last_error() === JSON_ERROR_NONE ) {
    11271125
    1128                 if ( ! is_array( $encoded ) ) {
    1129                     return $encoded;
    1130                 }
    1131 
    11321126                foreach ( $encoded as $key => $value ) {
    11331127                    if ( ! empty( $value ) && is_string( $value ) && ! is_numeric( $value ) ) {
  • 0-day-analytics/tags/3.7.1/classes/lists/views/class-crons-view.php

    r3360761 r3373091  
    342342                \remove_query_arg(
    343343                    array( 'deleted' ),
    344                     add_query_arg(
     344                    \add_query_arg(
    345345                        array(
    346346                            'page'                   => Crons_List::CRON_MENU_SLUG,
    347347                            Crons_List::SEARCH_INPUT => Crons_List::escaped_search_input(),
    348348                            'updated'                => true,
     349                            'event_type'             => ( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' ),
    349350                        ),
    350351                        \admin_url( 'admin.php' )
     
    378379                            'page'                   => Crons_List::CRON_MENU_SLUG,
    379380                            Crons_List::SEARCH_INPUT => Crons_List::escaped_search_input(),
    380                             'updated'                => true,
     381                            'inserted'               => true,
    381382                        ),
    382383                        \admin_url( 'admin.php' )
  • 0-day-analytics/tags/3.7.1/classes/lists/views/class-requests-view.php

    r3367391 r3373091  
    659659         * @return void
    660660         *
    661          * @since latest
     661         * @since 3.7.1
    662662         */
    663663        public static function plugin_filter_action() {
  • 0-day-analytics/tags/3.7.1/classes/lists/views/class-transients-view.php

    r3356328 r3373091  
    9797                        <input type="hidden" name="action" value="<?php echo \esc_attr( Transients_List::UPDATE_ACTION ); ?>" />
    9898                        <?php \wp_nonce_field( Transients_List::NONCE_NAME ); ?>
    99 
    10099                        <?php
     100                        printf(
     101                            '<input type="hidden" name="event_type" value="%s"/>',
     102                            \esc_attr( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' )
     103                        );
     104
    101105                        if ( in_array( $name, Transients_Helper::WP_CORE_TRANSIENTS ) ) {
    102106                            ?>
     
    197201                        <input type="hidden" name="<?php echo \esc_attr( Transients_List::SEARCH_INPUT ); ?>" value="<?php echo esc_attr( Transients_List::escaped_search_input() ); ?>" />
    198202                        <input type="hidden" name="action" value="<?php echo \esc_attr( Transients_List::NEW_ACTION ); ?>" />
     203                        <?php
     204                        printf(
     205                            '<input type="hidden" name="event_type" value="%s"/>',
     206                            \esc_attr( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' )
     207                        );
     208                        ?>
    199209                        <?php \wp_nonce_field( Transients_List::NONCE_NAME ); ?>
    200210
     
    333343                            Transients_List::SEARCH_INPUT => Transients_List::escaped_search_input(),
    334344                            'updated'                     => true,
     345                            'event_type'                  => ( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' ),
    335346                        ),
    336347                        \admin_url( 'admin.php' )
  • 0-day-analytics/tags/3.7.1/readme.txt

    r3367391 r3373091  
    44Tested up to: 6.8.2
    55Requires PHP: 7.4
    6 Stable tag: 3.7.0
     6Stable tag: 3.7.1
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    108108== Changelog ==
    109109
     110= 3.7.1 =
     111Transients viewer optimizations and fixes. Small bug fixes and optimizations.
     112
    110113= 3.7.0 =
    111114Mail filtering fixes, added plugins filter to requests view, fixed HTML entities in the browser push notifications, bug fixes and improvements.
  • 0-day-analytics/trunk/advanced-analytics.php

    r3367391 r3373091  
    1313 * Plugin Name:     WP Control
    1414 * Description:     Take full control of error log, crons, transients, plugins, requests, mails and DB tables.
    15  * Version:         3.7.0
     15 * Version:         3.7.1
    1616 * Author:          Stoil Dobrev
    1717 * Author URI:      https://github.com/sdobreff/
     
    3939// Constants.
    4040if ( ! defined( 'ADVAN_VERSION' ) ) {
    41     define( 'ADVAN_VERSION', '3.7.0' );
     41    define( 'ADVAN_VERSION', '3.7.1' );
    4242    define( 'ADVAN_TEXTDOMAIN', '0-day-analytics' );
    4343    define( 'ADVAN_NAME', 'WP Control' );
  • 0-day-analytics/trunk/classes/controllers/class-requests-log.php

    r3367391 r3373091  
    348348         * @return string
    349349         *
    350          * @since latest
     350         * @since 3.7.1
    351351         */
    352352        private static function add_plugin_info_to_collected_item( string $message ) {
  • 0-day-analytics/trunk/classes/entities/class-requests-log-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/trunk/classes/entities/class-wp-mail-entity.php

    r3367391 r3373091  
    3838         * @var string
    3939         *
    40          * @since latest
     40         * @since 3.7.1
    4141         */
    4242        private static $drop_down_sites_rendered = false;
  • 0-day-analytics/trunk/classes/helpers/class-transients-helper.php

    r3354751 r3373091  
    403403                $sql[] = 'count(go.option_id)';
    404404            } else {
    405                 $sql[] = 'go.option_id, go.option_name, go.option_value, go.autoload, d.option_value AS time_to_run';
     405                $sql[] = 'go.option_id, go.option_name, go.option_value, go.autoload, d.option_value AS schedule';
    406406            }
    407407
     
    411411
    412412                // FROM.
     413               
     414            // old - ON d.option_name LIKE CONCAT('%_transient_timeout_', SUBSTRING_INDEX( go.option_name, '_transient_', -1 ), '%')
    413415
    414416                $sql[] = "LEFT JOIN
    415417                {$wpdb->options} d
    416                 ON d.option_name LIKE concat('%_transient_timeout_', SUBSTRING_INDEX( go.option_name, '_transient_', -1 ), '%')
     418                ON d.option_name = CONCAT(
     419                    '_transient_timeout_',
     420                    SUBSTRING( go.option_name, LENGTH( '_transient_' ) + 1 )
     421                )
    417422            WHERE ( go.option_name LIKE %s OR go.option_name LIKE %s ) AND go.option_name NOT LIKE %s";
    418423
     
    491496                        'transient_name' => self::get_transient_name( $transient['option_name'] ),
    492497                        'value'          => self::get_transient_value( $transient['option_value'] ),
    493                         'schedule'       => self::get_transient_expiration_time( $transient['option_name'] ),
     498                        'schedule'       => (int) $transient['schedule'] ,
    494499                        'id'             => $transient['option_id'],
    495 
    496500                    );
    497501                }
  • 0-day-analytics/trunk/classes/lists/class-requests-list.php

    r3367391 r3373091  
    550550                            return __( 'Plugin: ', '0-day-analytics' ) . '<b>' . \esc_html( $plugin['Name'] ) . '</b><br>' . \__( 'Current version: ' ) . \esc_html( $plugin['Version'] );
    551551                        }
    552                     } else {
    553                         return \esc_html__( 'Core or Unknown', '0-day-analytics' );
    554552                    }
    555553            }
     
    11261124            if ( json_last_error() === JSON_ERROR_NONE ) {
    11271125
    1128                 if ( ! is_array( $encoded ) ) {
    1129                     return $encoded;
    1130                 }
    1131 
    11321126                foreach ( $encoded as $key => $value ) {
    11331127                    if ( ! empty( $value ) && is_string( $value ) && ! is_numeric( $value ) ) {
  • 0-day-analytics/trunk/classes/lists/views/class-crons-view.php

    r3360761 r3373091  
    342342                \remove_query_arg(
    343343                    array( 'deleted' ),
    344                     add_query_arg(
     344                    \add_query_arg(
    345345                        array(
    346346                            'page'                   => Crons_List::CRON_MENU_SLUG,
    347347                            Crons_List::SEARCH_INPUT => Crons_List::escaped_search_input(),
    348348                            'updated'                => true,
     349                            'event_type'             => ( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' ),
    349350                        ),
    350351                        \admin_url( 'admin.php' )
     
    378379                            'page'                   => Crons_List::CRON_MENU_SLUG,
    379380                            Crons_List::SEARCH_INPUT => Crons_List::escaped_search_input(),
    380                             'updated'                => true,
     381                            'inserted'               => true,
    381382                        ),
    382383                        \admin_url( 'admin.php' )
  • 0-day-analytics/trunk/classes/lists/views/class-requests-view.php

    r3367391 r3373091  
    659659         * @return void
    660660         *
    661          * @since latest
     661         * @since 3.7.1
    662662         */
    663663        public static function plugin_filter_action() {
  • 0-day-analytics/trunk/classes/lists/views/class-transients-view.php

    r3356328 r3373091  
    9797                        <input type="hidden" name="action" value="<?php echo \esc_attr( Transients_List::UPDATE_ACTION ); ?>" />
    9898                        <?php \wp_nonce_field( Transients_List::NONCE_NAME ); ?>
    99 
    10099                        <?php
     100                        printf(
     101                            '<input type="hidden" name="event_type" value="%s"/>',
     102                            \esc_attr( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' )
     103                        );
     104
    101105                        if ( in_array( $name, Transients_Helper::WP_CORE_TRANSIENTS ) ) {
    102106                            ?>
     
    197201                        <input type="hidden" name="<?php echo \esc_attr( Transients_List::SEARCH_INPUT ); ?>" value="<?php echo esc_attr( Transients_List::escaped_search_input() ); ?>" />
    198202                        <input type="hidden" name="action" value="<?php echo \esc_attr( Transients_List::NEW_ACTION ); ?>" />
     203                        <?php
     204                        printf(
     205                            '<input type="hidden" name="event_type" value="%s"/>',
     206                            \esc_attr( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' )
     207                        );
     208                        ?>
    199209                        <?php \wp_nonce_field( Transients_List::NONCE_NAME ); ?>
    200210
     
    333343                            Transients_List::SEARCH_INPUT => Transients_List::escaped_search_input(),
    334344                            'updated'                     => true,
     345                            'event_type'                  => ( isset( $_REQUEST['event_type'] ) ? \sanitize_text_field( \wp_unslash( $_REQUEST['event_type'] ) ) : '' ),
    335346                        ),
    336347                        \admin_url( 'admin.php' )
  • 0-day-analytics/trunk/readme.txt

    r3367391 r3373091  
    44Tested up to: 6.8.2
    55Requires PHP: 7.4
    6 Stable tag: 3.7.0
     6Stable tag: 3.7.1
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    108108== Changelog ==
    109109
     110= 3.7.1 =
     111Transients viewer optimizations and fixes. Small bug fixes and optimizations.
     112
    110113= 3.7.0 =
    111114Mail filtering fixes, added plugins filter to requests view, fixed HTML entities in the browser push notifications, bug fixes and improvements.
Note: See TracChangeset for help on using the changeset viewer.