Plugin Directory

Changeset 2902827


Ignore:
Timestamp:
04/23/2023 12:27:32 AM (3 years ago)
Author:
ehops32
Message:

1.2.1

  • Adjusted for PHP 8 - defined field check was throwing an error
  • Added a new, check for any plugin being installed, using the name.

1.2.0

  • Added a check to be sure plugins_loaded as the hook
Location:
sackson-web-data/trunk
Files:
3 edited

Legend:

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

    r2804076 r2902827  
    55Requires at least: 3.0.1
    66Tested up to: 6.0
    7 Stable tag: 1.1.9
     7Stable tag: 1.2.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5151== Changelog ==
    5252
     53= 1.2.1 =
     54* Adjusted for PHP 8 - defined field check was throwing an error
     55* Added a new, check for any plugin being installed, using the name.
     56
     57= 1.2.0 =
     58* Added a check to be sure plugins_loaded as the hook
     59
     60
    5361= 1.1.9 =
    5462* Bugfix - was causing an issue on home page loading
  • sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php

    r2804076 r2902827  
    138138        $this->collected_data['WP_DEBUG_LOG'] = WP_DEBUG_LOG ? 'y' : 'n';
    139139        $this->collected_data['WP_DEBUG_DISPLAY'] = WP_DEBUG_DISPLAY ? 'y' : 'n';
    140         $this->collected_data['FS_METHOD'] = (null !== FS_METHOD) ? FS_METHOD : '';
     140        $this->collected_data['FS_METHOD'] =  defined(FS_METHOD) && (null !== FS_METHOD) ? FS_METHOD : '';
     141       
    141142
    142143        $this->getBlogInfoArray();    // get_bloginfo, i.e. bunch of stuff.
     
    430431        {
    431432            if ( str_contains($plugin,'simple-history'))
     433            {
     434                return true;
     435            }
     436        }
     437
     438        return false;
     439    }
     440
     441
     442    /**
     443     * Like above, but if you knew the name from the active plugins field then you can check for any plugin being active.
     444     */
     445    function isThisPluginActive( $plugin_short_name )
     446    {
     447        foreach ( $this->collected_data['active_plugins'] as $plugin )
     448        {
     449            if ( str_contains($plugin, $plugin_short_name))
    432450            {
    433451                return true;
  • sackson-web-data/trunk/sacksonweb-data.php

    r2804076 r2902827  
    1010 *
    1111 * @link              http://data.sacksonweb.com/author
    12  * @since             1.1.9
     12 * @since             1.2.1
    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.1.9
     19 * Version:           1.2.1
    2020 * Author:            Eric Thornton
    2121 * Author URI:        http://data.sacksonweb.com/author
     
    3535 *
    3636 */
    37 define( 'SACKSONWEB_DATA_VERSION', '1.1.9' );
     37define( 'SACKSONWEB_DATA_VERSION', '1.2.1' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.