PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | modules/logs/connectors/class-connector-posts.php +16 -20 5.2 → 6.2.1 View file →
@@ -113,11 +113,11 @@
113 113 if ( empty( $action ) ) {
114 114 return;
115 115 }
116 116
117 - // translators: Placeholders refer to a post title.
117 + // translators: %1$s: Post title.
118 118 $message = esc_html_x(
119 - '%1$s',
119 + 'Post: %1$s',
120 120 '1: Post title',
121 121 'mainwp'
122 122 );
123 123
@@ -127,17 +127,15 @@
127 127 );
128 128 $args = MainWP_Utility::right_array_merge( $default, $data );
129 129
130 130 $default_other = array(
131 - 'post_date' => '',
132 - 'post_date_gmt' => '',
133 - 'new_status' => '',
134 - 'old_status' => '',
135 - 'post_id' => '',
131 + 'post_date' => '',
132 + 'post_date_gmt' => '',
133 + 'new_uptime_status' => '',
134 + 'old_status' => '',
135 + 'post_id' => '',
136 136 );
137 137 $other = MainWP_Utility::right_array_merge( $default_other, $data );
138 - $args['siteurl'] = $website->url;
139 - $args['site_name'] = $website->name;
140 138 $args['extra_info'] = wp_json_encode( $other );
141 139 $state = 1;
142 140 $this->log(
143 141 $message,
@@ -164,11 +162,11 @@
164 162 return;
165 163 }
166 164
167 165 $action = '';
168 - // translators: Placeholders refer to a post title, and a post type singular name (e.g. "Hello World", "Post").
166 + // translators: %1$s: Post title, %2$s: Post type singular name (e.g. "Hello World", "Post").
169 167 $message = esc_html_x(
170 - '%1$s',
168 + 'Post: %1$s (%2$s)',
171 169 '1: Post title 2: singular name',
172 170 'mainwp'
173 171 );
174 172
@@ -188,21 +186,19 @@
188 186 return;
189 187 }
190 188
191 189 $default = array(
192 - 'post_title' => '',
193 - 'singular_name' => '',
194 - 'post_date' => '',
195 - 'post_date_gmt' => '',
196 - 'new_status' => '',
197 - 'old_status' => '',
190 + 'post_title' => '',
191 + 'singular_name' => '',
192 + 'post_date' => '',
193 + 'post_date_gmt' => '',
194 + 'new_uptime_status' => '',
195 + 'old_status' => '',
198 196 );
199 197
200 198 $args = MainWP_Utility::right_array_merge( $default, $data );
201 199
202 - $args['siteurl'] = $website->url;
203 - $args['site_name'] = $website->name;
204 - $state = 1;
200 + $state = 1;
205 201 $this->log(
206 202 $message,
207 203 $args,
208 204 $website->id,