Plugin Directory

Changeset 2726827


Ignore:
Timestamp:
05/19/2022 01:00:23 PM (3 years ago)
Author:
wtsec
Message:

2.4.7

  • Fixed a issue related to using the function str_contains (HotFix)
Location:
wt-security
Files:
397 added
3 edited

Legend:

Unmodified
Added
Removed
  • wt-security/trunk/lib/Interface.php

    r2723090 r2726827  
    3939            }
    4040            elseif(WebTotemOption::isActivated()) {
    41                 // Checking whether agents are installed, if they not installed, then install.
     41                // Checking whether agents are installed, if they are not installed, then install.
    4242                self::checkAgents();
    4343            }
     
    5757
    5858    /**
    59      * Checking whether agents are installed, if they not installed, then install.
     59     * Checking whether agents are installed, if they are not installed, then install.
    6060     */
    6161    private static function checkAgents(){
     
    6363        $api_key = WebTotemOption::getOption('api_key');
    6464
     65        // Check if the plugin version has changed.
     66        WebTotemAgentManager::checkVersion();
     67
    6568        if(!$api_key){
    66             // Check if the plugin version has changed.
    67             WebTotemAgentManager::checkVersion();
    6869            $api_key = WebTotemOption::getOption('api_key');
    6970        }
     
    9192     */
    9293    public static function addNewSite($new_site){
    93         if(WebTotem::isMultiSite() and is_super_admin()) {
    9494            $domain = untrailingslashit($new_site->domain . $new_site->path);
    9595            WebTotemOption::setNotification( 'info', _('A new website has been added: ', 'wtotem') . $domain);
    9696            WebTotemAPI::addMultiSiteNewSites([$domain]);
    97         }
    9897    }
    9998
     
    123122     */
    124123    public static function enqueueScripts() {
    125         if( str_contains( WebTotemRequest::get( 'page' ), 'wtotem_' ) ){
     124        $_page = WebTotemRequest::get('page');
     125        if(strpos($_page, 'wtotem') === 0){
    126126            // Adding CSS files.
    127127            wp_register_style(
  • wt-security/trunk/readme.txt

    r2724948 r2726827  
    7171
    7272== Changelog ==
     73= 2.4.7 =
     74* Fixed a bug related to using the function str_contains
     75
    7376= 2.4.6 =
    7477* Internal improvements
  • wt-security/trunk/wt-security.php

    r2724948 r2726827  
    88 * Text Domain: wtotem
    99 * Domain Path: /lang
    10  * Version: 2.4.6
     10 * Version: 2.4.7
    1111 *
    1212 * PHP version 7
     
    5555 * Current version of the plugin's code.
    5656 */
    57 define('WEBTOTEM_VERSION', '2.4.6');
     57define('WEBTOTEM_VERSION', '2.4.7');
    5858
    5959/**
Note: See TracChangeset for help on using the changeset viewer.