Plugin Directory

Changeset 2990393


Ignore:
Timestamp:
11/07/2023 04:43:56 AM (2 years ago)
Author:
ehops32
Message:

1.2.5

  • A new datapoint allowing the monitoring of minimum plugin versions.
Location:
sackson-web-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sackson-web-data/trunk/README.txt

    r2984633 r2990393  
    55Requires at least: 3.0.1
    66Tested up to: 6.0
    7 Stable tag: 1.2.4
     7Stable tag: 1.2.5
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52
     53= 1.2.5 =
     54* A new datapoint allowing the monitoring of minimum plugin versions.
    5255
    5356= 1.2.4 =
  • sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php

    r2984633 r2990393  
    154154        $this->getSimpleHistoryLastLoginData();
    155155        $this->getUserData();
     156        $this->getPluginUpdateData();
     157
    156158    }
    157159   
     160
    158161    /**
    159162     *
     
    368371   
    369372        echo "<script>console.log('Debug Objects: " . $output . "' );</script>";
     373    }
     374
     375   
     376    /**
     377     * I would like to get information about plugins, specifically version, so trying this approach
     378     */
     379    public function getPluginUpdateData()
     380    {
     381        if ( is_admin() )
     382        {
     383            // Check if get_plugins() function exists. This is required on the front end of the
     384            // site, since it is in a file that is normally only loaded in the admin.
     385            if ( ! function_exists( 'get_plugins' ) )
     386            {
     387                require_once ABSPATH . 'wp-admin/includes/plugin.php';
     388            }
     389
     390            $all_plugins = get_plugins();
     391
     392            $this->collected_data['all_plugins'] = json_encode($all_plugins);
     393        }
    370394    }
    371395
  • sackson-web-data/trunk/sacksonweb-data.php

    r2984633 r2990393  
    1010 *
    1111 * @link              http://data.sacksonweb.com/author
    12  * @since             1.2.4
     12 * @since             1.2.5
    1313 * @package           Sacksonweb_Data
    1414 *
     
    1717 * Plugin URI:        http://data.sacksonweb.com
    1818 * Description:       A tool to monitor security issues, performance issues, and Wordpress settings that should be changed.
    19  * Version:           1.2.4
     19 * Version:           1.2.5
    2020 * Author:            Eric Thornton
    2121 * Author URI:        http://data.sacksonweb.com/author
     
    3535 *
    3636 */
    37 define( 'SACKSONWEB_DATA_VERSION', '1.2.4' );
     37define( 'SACKSONWEB_DATA_VERSION', '1.2.5' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.