Changeset 2990393
- Timestamp:
- 11/07/2023 04:43:56 AM (2 years ago)
- Location:
- sackson-web-data/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
includes/class-sacksonweb-data-helper.php (modified) (2 diffs)
-
sacksonweb-data.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sackson-web-data/trunk/README.txt
r2984633 r2990393 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.0 7 Stable tag: 1.2. 47 Stable tag: 1.2.5 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 50 50 51 51 == Changelog == 52 53 = 1.2.5 = 54 * A new datapoint allowing the monitoring of minimum plugin versions. 52 55 53 56 = 1.2.4 = -
sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php
r2984633 r2990393 154 154 $this->getSimpleHistoryLastLoginData(); 155 155 $this->getUserData(); 156 $this->getPluginUpdateData(); 157 156 158 } 157 159 160 158 161 /** 159 162 * … … 368 371 369 372 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 } 370 394 } 371 395 -
sackson-web-data/trunk/sacksonweb-data.php
r2984633 r2990393 10 10 * 11 11 * @link http://data.sacksonweb.com/author 12 * @since 1.2. 412 * @since 1.2.5 13 13 * @package Sacksonweb_Data 14 14 * … … 17 17 * Plugin URI: http://data.sacksonweb.com 18 18 * Description: A tool to monitor security issues, performance issues, and Wordpress settings that should be changed. 19 * Version: 1.2. 419 * Version: 1.2.5 20 20 * Author: Eric Thornton 21 21 * Author URI: http://data.sacksonweb.com/author … … 35 35 * 36 36 */ 37 define( 'SACKSONWEB_DATA_VERSION', '1.2. 4' );37 define( 'SACKSONWEB_DATA_VERSION', '1.2.5' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.