Skip to content

Commit d37269c

Browse files
authored
Tweak: Removed text domain loading method in favor of WordPress standard loading (#230)
1 parent 314f3fc commit d37269c

2 files changed

Lines changed: 22 additions & 17 deletions

File tree

aryo-activity-log.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ final class AAL_Main {
8181
*/
8282
public $notifications;
8383

84-
/**
85-
* Load text domain
86-
*/
87-
public function load_textdomain() {
88-
load_plugin_textdomain( 'aryo-activity-log' );
89-
}
90-
9184
/**
9285
* Construct
9386
*/
@@ -105,8 +98,6 @@ protected function __construct() {
10598

10699
// set up our DB name
107100
$wpdb->activity_log = $wpdb->prefix . 'aryo_activity_log';
108-
109-
add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) );
110101
}
111102

112103
/**
@@ -119,8 +110,15 @@ protected function __construct() {
119110
* @return void
120111
*/
121112
public function __clone() {
122-
// Cloning instances of the class is forbidden
123-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' );
113+
_doing_it_wrong(
114+
__FUNCTION__,
115+
sprintf(
116+
/* translators: %s: Class name. */
117+
__( 'Cloning instances of the singleton "%s" class is forbidden.', 'aryo-activity-log' ),
118+
get_class( $this )
119+
),
120+
'2.0.7'
121+
);
124122
}
125123

126124
/**
@@ -130,8 +128,15 @@ public function __clone() {
130128
* @return void
131129
*/
132130
public function __wakeup() {
133-
// Unserializing instances of the class is forbidden
134-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' );
131+
_doing_it_wrong(
132+
__FUNCTION__,
133+
sprintf(
134+
/* translators: %s: Class name. */
135+
__( 'Unserializing instances of the singleton "%s" class is forbidden.', 'aryo-activity-log' ),
136+
get_class( $this )
137+
),
138+
'2.0.7'
139+
);
135140
}
136141

137142
/**

readme.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: elemntor, KingYes, ariel.k
33
Tags: Activity Log, User Log, Audit Log, Security, Email Log,
44
Requires at least: 6.0
5-
Requires PHP: 7.0
5+
Requires PHP: 7.4
66
Tested up to: 7.1
77
Stable tag: 2.12.0
88
License: GPLv2 or later
@@ -99,7 +99,7 @@ Uninstalling the plugin removes all of its data from your database automatically
9999
== Frequently Asked Questions ==
100100

101101
= Requirements =
102-
__Requires PHP 7.0__ for list management functionality.
102+
__Requires PHP 7.4__ for list management functionality.
103103

104104
= What is the plugin license? =
105105

@@ -425,8 +425,8 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
425425
* Added filter by date - All Time, Today, Yesterday, Week, Month
426426
* Added Avatar to author
427427
* Added role for author
428-
* Added log for activeted theme
429-
* Re-order Culoumns
428+
* Added log for activated theme
429+
* Re-order Columns
430430
* Compatible up to 3.8.1
431431
* Settings page is now accessible directly from Activity Log's menu
432432
* Keep your log for any time your wants

0 commit comments

Comments
 (0)