Plugin Directory

Changeset 3129214


Ignore:
Timestamp:
08/01/2024 07:27:59 AM (20 months ago)
Author:
stoyangeorgiev
Message:

Bump to 1.5.2

Location:
sg-security/trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • sg-security/trunk/core/Activity_Log/Activity_Log_Unknown.php

    r3119951 r3129214  
    193193        // If no user-agent set as unknown.
    194194        if ( ! isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
    195             return 'Unknown';
     195            return __( 'Unknown', 'sg-security' );
    196196        }
    197197
     
    204204        }
    205205
    206         return 'Human';
     206        return __( 'Human', 'sg-security' );
    207207    }
    208208
  • sg-security/trunk/core/Admin/Admin.php

    r3059737 r3129214  
    265265
    266266        $submenu['sg-security'][0][0] = __( 'Dashboard', 'sg-security' );
     267        $submenu['sg-security'][1][0] = __( 'Site Security', 'sg-security' );
     268        $submenu['sg-security'][2][0] = __( 'Login Security', 'sg-security' );
     269        $submenu['sg-security'][3][0] = __( 'Activity Log', 'sg-security' );
     270        $submenu['sg-security'][4][0] = __( 'Post-hack Actions', 'sg-security' );
    267271
    268272        return $menu_order;
  • sg-security/trunk/core/Cli/Cli.php

    r2796592 r3129214  
    3232        // Get Custom Login URL status or disable it.
    3333        \WP_CLI::add_command( 'sg custom-login', 'SG_Security\Cli\Cli_Custom_Login_Url' );
    34 
     34        // Config.
     35        \WP_CLI::add_command( 'sg security-config', 'SG_Security\Cli\Cli_Config' );
    3536    }
    3637}
  • sg-security/trunk/core/Cli/Cli_Limit_Login_Attempts.php

    r2549607 r3129214  
    2020 */
    2121class Cli_Limit_Login_Attempts {
     22
     23    /**
     24     * Login_Service class.
     25     *
     26     * @var Object.
     27     */
     28    public $login_service;
     29
    2230    /**
    2331     * Enable specific setting for SG Security plugin.
  • sg-security/trunk/core/Cli/Cli_List.php

    r2685886 r3129214  
    3131
    3232    /**
    33      * The default inretval on which the data should be gathered.
     33     * The default interval on which the data should be gathered.
    3434     *
    3535     * @var null
     
    4343     */
    4444    public $wpdb = null;
     45
     46    /**
     47     * The property to hold the db query.
     48     *
     49     * @var String.
     50     */
     51    public $query;
     52
     53    /**
     54     * Rest_Helper_Activity class.
     55     *
     56     * @var Object.
     57     */
     58    public $rest_helper_activity;
    4559
    4660    /**
     
    102116     */
    103117    public function get_query( $type ) {
    104         global $wpdb;
    105 
    106118        // Bail if table doesn't exist.
    107119        if ( ! Helper::table_exists( $this->wpdb->sgs_log ) ) {
  • sg-security/trunk/core/Cli/Cli_Log.php

    r2572999 r3129214  
    66 * WP-CLI: wp sg log {setting} value.
    77 *
    8  * Run the `wp sg log {setting} {option} {action} {value} {value}` command to change the settgins of specific plugin functionality.
     8 * Run the `wp sg log {setting} {option} {action} {value} {value}` command to change the settings of specific plugin functionality.
    99 *
    1010 * @since 1.1.0
     
    1919 */
    2020class Cli_Log {
     21
     22    /**
     23     * IP.
     24     *
     25     * @var String.
     26     */
     27    public $ip;
     28
    2129    /**
    2230     * Enable specific setting for SiteGround Security plugin.
  • sg-security/trunk/core/Custom_Login_Url/Custom_Login_Url.php

    r3119951 r3129214  
    110110        }
    111111
    112         if ( in_array( $path, array( 'wp-login', 'wp-login.php' ) ) ) {
     112        if ( false !== strpos( $path, 'wp-login' ) || false !== strpos( $path, 'wp-login.php' ) ) {
    113113            $this->handle_login();
    114114        }
     
    117117            $this->handle_registration();
    118118        }
     119
    119120    }
    120121
  • sg-security/trunk/core/Plugins_Service/Plugins_Service.php

    r3008784 r3129214  
    2121
    2222    /**
    23      * Enable maintanance mode.
     23     * Enable maintenance mode.
    2424     *
    2525     * @since  1.0.0
     
    8080            }
    8181
    82             // Add extra atributes so we make things less complicated.
     82            // Add extra attributes so we make things less complicated.
    8383            $plugins[] = array(
    8484                'path'      => $plugin,
     
    9898     * @since  1.0.0.
    9999     *
    100      * @param  array $plugin The array containing the data needed for a successful reinstal.
     100     * @param  array $plugin The array containing the data needed for a successful reinstall.
    101101     *
    102102     * @return bool/array true/false or array containing the error data.
     
    108108        }
    109109
    110         // Build the download url.
     110        // Build the download URL.
    111111        $package = sprintf(
    112112            'https://downloads.wordpress.org/plugin/%s.%s.zip',
     
    143143        }
    144144
    145         // Prepare the necesary dependencies.
     145        // Prepare the necessary dependencies.
    146146        $skin     = new \WP_Ajax_Upgrader_Skin();
    147147        $upgrader = new \Plugin_Upgrader( $skin );
     
    150150        // Activate the plugin if it was previously activated.
    151151        if ( 1 === $plugin['is_active'] ) {
    152             activate_plugin( $plugin['path'] );
     152            activate_plugin( $plugin['path'], '', false, true );
    153153        }
    154154
  • sg-security/trunk/readme.txt

    r3119951 r3129214  
    55Tested up to: 6.6
    66Requires PHP: 7.0
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.2
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    144144
    145145== Changelog ==
     146
     147= Version 1.5.2 =
     148Release Date: Aug 1st, 2024
     149
     150* Improved Custom Login Url handling
     151* Improved Plugins Reinstall actions
     152* Improved Translations
     153* Improved plugin config
     154* Fixed deprecated warnings in custom WP-CLI commands
    146155
    147156= Version 1.5.1 =
  • sg-security/trunk/sg-security.php

    r3119951 r3129214  
    1111 * Plugin URI:        https://siteground.com
    1212 * Description:       Security Optimizer by SiteGround is the all-in-one security solution for your WordPress website. With the carefully selected and easy to configure functions the plugin provides everything you need to secure your website and prevent a number of threats such as brute-force attacks, compromised login, data leaks and more.
    13  * Version:           1.5.1
     13 * Version:           1.5.2
    1414 * Author:            SiteGround
    1515 * Author URI:        https://www.siteground.com
     
    3232// Define version constant.
    3333if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
    34     define( __NAMESPACE__ . '\VERSION', '1.5.1' );
     34    define( __NAMESPACE__ . '\VERSION', '1.5.2' );
    3535}
    3636
Note: See TracChangeset for help on using the changeset viewer.