Changeset 3129214
- Timestamp:
- 08/01/2024 07:27:59 AM (20 months ago)
- Location:
- sg-security/trunk
- Files:
-
- 1 added
- 10 edited
-
core/Activity_Log/Activity_Log_Unknown.php (modified) (2 diffs)
-
core/Admin/Admin.php (modified) (1 diff)
-
core/Cli/Cli.php (modified) (1 diff)
-
core/Cli/Cli_Config.php (added)
-
core/Cli/Cli_Limit_Login_Attempts.php (modified) (1 diff)
-
core/Cli/Cli_List.php (modified) (3 diffs)
-
core/Cli/Cli_Log.php (modified) (2 diffs)
-
core/Custom_Login_Url/Custom_Login_Url.php (modified) (2 diffs)
-
core/Plugins_Service/Plugins_Service.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
-
sg-security.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sg-security/trunk/core/Activity_Log/Activity_Log_Unknown.php
r3119951 r3129214 193 193 // If no user-agent set as unknown. 194 194 if ( ! isset( $_SERVER['HTTP_USER_AGENT'] ) ) { 195 return 'Unknown';195 return __( 'Unknown', 'sg-security' ); 196 196 } 197 197 … … 204 204 } 205 205 206 return 'Human';206 return __( 'Human', 'sg-security' ); 207 207 } 208 208 -
sg-security/trunk/core/Admin/Admin.php
r3059737 r3129214 265 265 266 266 $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' ); 267 271 268 272 return $menu_order; -
sg-security/trunk/core/Cli/Cli.php
r2796592 r3129214 32 32 // Get Custom Login URL status or disable it. 33 33 \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' ); 35 36 } 36 37 } -
sg-security/trunk/core/Cli/Cli_Limit_Login_Attempts.php
r2549607 r3129214 20 20 */ 21 21 class Cli_Limit_Login_Attempts { 22 23 /** 24 * Login_Service class. 25 * 26 * @var Object. 27 */ 28 public $login_service; 29 22 30 /** 23 31 * Enable specific setting for SG Security plugin. -
sg-security/trunk/core/Cli/Cli_List.php
r2685886 r3129214 31 31 32 32 /** 33 * The default in retval on which the data should be gathered.33 * The default interval on which the data should be gathered. 34 34 * 35 35 * @var null … … 43 43 */ 44 44 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; 45 59 46 60 /** … … 102 116 */ 103 117 public function get_query( $type ) { 104 global $wpdb;105 106 118 // Bail if table doesn't exist. 107 119 if ( ! Helper::table_exists( $this->wpdb->sgs_log ) ) { -
sg-security/trunk/core/Cli/Cli_Log.php
r2572999 r3129214 6 6 * WP-CLI: wp sg log {setting} value. 7 7 * 8 * Run the `wp sg log {setting} {option} {action} {value} {value}` command to change the sett gins of specific plugin functionality.8 * Run the `wp sg log {setting} {option} {action} {value} {value}` command to change the settings of specific plugin functionality. 9 9 * 10 10 * @since 1.1.0 … … 19 19 */ 20 20 class Cli_Log { 21 22 /** 23 * IP. 24 * 25 * @var String. 26 */ 27 public $ip; 28 21 29 /** 22 30 * Enable specific setting for SiteGround Security plugin. -
sg-security/trunk/core/Custom_Login_Url/Custom_Login_Url.php
r3119951 r3129214 110 110 } 111 111 112 if ( in_array( $path, array( 'wp-login', 'wp-login.php' )) ) {112 if ( false !== strpos( $path, 'wp-login' ) || false !== strpos( $path, 'wp-login.php' ) ) { 113 113 $this->handle_login(); 114 114 } … … 117 117 $this->handle_registration(); 118 118 } 119 119 120 } 120 121 -
sg-security/trunk/core/Plugins_Service/Plugins_Service.php
r3008784 r3129214 21 21 22 22 /** 23 * Enable maint anance mode.23 * Enable maintenance mode. 24 24 * 25 25 * @since 1.0.0 … … 80 80 } 81 81 82 // Add extra at ributes so we make things less complicated.82 // Add extra attributes so we make things less complicated. 83 83 $plugins[] = array( 84 84 'path' => $plugin, … … 98 98 * @since 1.0.0. 99 99 * 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. 101 101 * 102 102 * @return bool/array true/false or array containing the error data. … … 108 108 } 109 109 110 // Build the download url.110 // Build the download URL. 111 111 $package = sprintf( 112 112 'https://downloads.wordpress.org/plugin/%s.%s.zip', … … 143 143 } 144 144 145 // Prepare the neces ary dependencies.145 // Prepare the necessary dependencies. 146 146 $skin = new \WP_Ajax_Upgrader_Skin(); 147 147 $upgrader = new \Plugin_Upgrader( $skin ); … … 150 150 // Activate the plugin if it was previously activated. 151 151 if ( 1 === $plugin['is_active'] ) { 152 activate_plugin( $plugin['path'] );152 activate_plugin( $plugin['path'], '', false, true ); 153 153 } 154 154 -
sg-security/trunk/readme.txt
r3119951 r3129214 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.0 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 144 144 145 145 == Changelog == 146 147 = Version 1.5.2 = 148 Release 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 146 155 147 156 = Version 1.5.1 = -
sg-security/trunk/sg-security.php
r3119951 r3129214 11 11 * Plugin URI: https://siteground.com 12 12 * 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. 113 * Version: 1.5.2 14 14 * Author: SiteGround 15 15 * Author URI: https://www.siteground.com … … 32 32 // Define version constant. 33 33 if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { 34 define( __NAMESPACE__ . '\VERSION', '1.5. 1' );34 define( __NAMESPACE__ . '\VERSION', '1.5.2' ); 35 35 } 36 36
Note: See TracChangeset
for help on using the changeset viewer.