PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.1
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.1
2.7.1 2.7.2 2.7.0 2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 All 141 releases
← All changes | custom-pages/class-metasync-custom-pages-admin.php +35 -21 2.6.20 → 2.7.1 View file →
@@ -156,33 +156,36 @@
156 156 text-decoration: underline;
157 157 }
158 158
159 159 .metasync-page-status {
160 + display: inline-flex;
161 + align-items: center;
162 + gap: 6px;
163 + font-size: 13px;
164 + font-weight: 500;
165 + cursor: default;
166 + }
167 +
168 + .metasync-page-status::before {
169 + content: '';
160 170 display: inline-block;
161 - padding: 4px 10px;
162 - border-radius: 4px;
163 - font-size: 11px;
164 - font-weight: 600;
165 - text-transform: uppercase;
166 - letter-spacing: 0.5px;
171 + width: 8px;
172 + height: 8px;
173 + border-radius: 50%;
174 + background: currentColor;
175 + flex-shrink: 0;
167 176 }
168 -
177 +
169 178 .metasync-page-status.metasync-status-publish {
170 - background: #d4edda;
171 - color: #155724;
172 - border: 1px solid #c3e6cb;
179 + color: #1e7e34;
173 180 }
174 -
181 +
175 182 .metasync-page-status.metasync-status-draft {
176 - background: #fff3cd;
177 - color: #856404;
178 - border: 1px solid #ffeaa7;
183 + color: #a06800;
179 184 }
180 -
185 +
181 186 .metasync-page-status.metasync-status-pending {
182 - background: #d1ecf1;
183 187 color: #0c5460;
184 - border: 1px solid #bee5eb;
185 188 }
186 189
187 190 .metasync-page-actions {
188 191 white-space: nowrap;
@@ -312,12 +315,12 @@
312 315 <?php echo esc_html($page->post_title ?: '(No title)'); ?>
313 316 </a>
314 317 </strong>
315 318 <?php if ($created_via_api === '1'): ?>
316 - <span class="metasync-html-badge metasync-api-badge">API</span>
319 + <span class="metasync-html-badge metasync-api-badge" title="This page was created through the MetaSync REST API">API</span>
317 320 <?php endif; ?>
318 321 <?php if ($html_enabled === '1'): ?>
319 - <span class="metasync-html-badge">RAW HTML</span>
322 + <span class="metasync-html-badge" title="This page uses Raw HTML mode: its content is edited as raw HTML instead of the block editor">RAW HTML</span>
320 323 <?php endif; ?>
321 324 </td>
322 325 <td>
323 326 <a href="<?php echo esc_url($page_url); ?>"
@@ -327,10 +330,21 @@
327 330 <span class="dashicons dashicons-external" style="font-size: 14px;"></span>
328 331 </a>
329 332 </td>
330 333 <td>
334 + <?php
335 + $status_labels = array(
336 + 'publish' => 'Published',
337 + 'draft' => 'Draft',
338 + 'pending' => 'Pending Review',
339 + 'private' => 'Private',
340 + );
341 + $status_label = isset($status_labels[$page->post_status])
342 + ? $status_labels[$page->post_status]
343 + : ucfirst($page->post_status);
344 + ?>
331 345 <span class="metasync-page-status metasync-status-<?php echo esc_attr($page->post_status); ?>">
332 - <?php echo esc_html(ucfirst($page->post_status)); ?>
346 + <?php echo esc_html($status_label); ?>
333 347 </span>
334 348 </td>
335 349 <td class="metasync-page-actions">
336 350 <a href="<?php echo esc_url($edit_url); ?>" class="button button-small">
@@ -376,9 +390,9 @@
376 390 if (!isset($_GET['_wpnonce']) || !wp_verify_nonce($_GET['_wpnonce'], 'metasync_custom_pages_action')) {
377 391 return;
378 392 }
379 393
380 - $action = sanitize_text_field($_GET['action']);
394 + $action = sanitize_text_field(wp_unslash($_GET['action']));
381 395
382 396 switch ($action) {
383 397 case 'delete':
384 398 if (isset($_GET['page_id'])) {