Version Description
(2021-11-17) =
- Fixed the Approve/Unapprove links on the All Reviews page
- Fixed PHP error when php_uname() is disabled (used when detecting the webhosting on the System Info page)
Download this release
Release Info
Developer | geminilabs |
Plugin | Site Reviews |
Version | 5.17.6 |
Comparing to | |
See all releases |
Code changes from version 5.17.5 to 5.17.6
- languages/site-reviews-en_US.mo +0 -0
- languages/site-reviews-en_US.po +28 -14
- languages/site-reviews.pot +28 -14
- plugin/Commands/ToggleStatus.php +22 -8
- plugin/Controllers/ListTableController.php +14 -0
- plugin/Defaults/ToggleStatusDefaults.php +1 -1
- plugin/Hooks.php +1 -0
- plugin/Modules/SystemInfo.php +3 -3
- readme.txt +6 -1
- site-reviews.php +1 -1
languages/site-reviews-en_US.mo
CHANGED
Binary file
|
languages/site-reviews-en_US.po
CHANGED
@@ -1801,6 +1801,20 @@ msgctxt "admin-text"
|
|
1801 |
msgid "Edit"
|
1802 |
msgstr "Edit"
|
1803 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1804 |
#: plugin/Controllers/AdminController.php:111
|
1805 |
msgctxt "admin-text"
|
1806 |
msgid "%s Review"
|
@@ -1848,37 +1862,42 @@ msgctxt "admin-text"
|
|
1848 |
msgid "Submitted"
|
1849 |
msgstr "Submitted"
|
1850 |
|
1851 |
-
#: plugin/Controllers/ListTableController.php:
|
|
|
|
|
|
|
|
|
|
|
1852 |
msgctxt "admin-text"
|
1853 |
msgid "Approve"
|
1854 |
msgstr "Approve"
|
1855 |
|
1856 |
-
#: plugin/Controllers/ListTableController.php:
|
1857 |
msgctxt "admin-text"
|
1858 |
msgid "Unapprove"
|
1859 |
msgstr "Unapprove"
|
1860 |
|
1861 |
-
#: plugin/Controllers/ListTableController.php:
|
1862 |
msgctxt "admin-text"
|
1863 |
msgid "Respond inline to “%s”"
|
1864 |
msgstr "Respond inline to “%s”"
|
1865 |
|
1866 |
-
#: plugin/Controllers/ListTableController.php:
|
1867 |
msgctxt "admin-text"
|
1868 |
msgid "Respond"
|
1869 |
msgstr "Respond"
|
1870 |
|
1871 |
-
#: plugin/Controllers/ListTableController.php:
|
1872 |
msgctxt "admin-text"
|
1873 |
msgid "Sorry, you are not allowed to respond to this review."
|
1874 |
msgstr "Sorry, you are not allowed to respond to this review."
|
1875 |
|
1876 |
-
#: plugin/Controllers/ListTableController.php:
|
1877 |
msgctxt "admin-text"
|
1878 |
msgid "Someone"
|
1879 |
msgstr "Someone"
|
1880 |
|
1881 |
-
#: plugin/Controllers/ListTableController.php:
|
1882 |
msgctxt "admin-text"
|
1883 |
msgid "Saving is disabled: %s is currently editing this review."
|
1884 |
msgstr "Saving is disabled: %s is currently editing this review."
|
@@ -2177,11 +2196,6 @@ msgid_plural "%s reviews restored from the Trash."
|
|
2177 |
msgstr[0] "%s review restored from the Trash."
|
2178 |
msgstr[1] "%s reviews restored from the Trash."
|
2179 |
|
2180 |
-
#: plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16, views/partials/screen/inline-edit.php:73
|
2181 |
-
msgctxt "admin-text"
|
2182 |
-
msgid "Unapproved"
|
2183 |
-
msgstr "Unapproved"
|
2184 |
-
|
2185 |
#: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
|
2186 |
msgctxt "admin-text"
|
2187 |
msgid "Approved"
|
@@ -4470,12 +4484,12 @@ msgstr ""
|
|
4470 |
"Google limits the schema types that can potentially trigger review rich "
|
4471 |
"results in search. To learn which schema types can be used, please %s."
|
4472 |
|
4473 |
-
#: plugin/Controllers/ListTableController.php:
|
4474 |
msgctxt "The Review Post ID (admin-text)"
|
4475 |
msgid "<span>ID: %d</span>"
|
4476 |
msgstr "<span>ID: %d</span>"
|
4477 |
|
4478 |
-
#: plugin/Controllers/ListTableController.php:
|
4479 |
msgctxt "Approve the review (admin-text)"
|
4480 |
msgid "%s this review"
|
4481 |
msgstr "%s this review"
|
1801 |
msgid "Edit"
|
1802 |
msgstr "Edit"
|
1803 |
|
1804 |
+
#: plugin/Commands/ToggleStatus.php:74
|
1805 |
+
msgctxt "admin-text"
|
1806 |
+
msgid "Approved <span class=\"count\">(%s)</span>"
|
1807 |
+
msgid_plural "Approved <span class=\"count\">(%s)</span>"
|
1808 |
+
msgstr[0] "Approved <span class=\"count\">(%s)</span>"
|
1809 |
+
msgstr[1] "Approved <span class=\"count\">(%s)</span>"
|
1810 |
+
|
1811 |
+
#: plugin/Commands/ToggleStatus.php:82
|
1812 |
+
msgctxt "admin-text"
|
1813 |
+
msgid "Unapproved <span class=\"count\">(%s)</span>"
|
1814 |
+
msgid_plural "Unapproved <span class=\"count\">(%s)</span>"
|
1815 |
+
msgstr[0] "Unapproved <span class=\"count\">(%s)</span>"
|
1816 |
+
msgstr[1] "Unapproved <span class=\"count\">(%s)</span>"
|
1817 |
+
|
1818 |
#: plugin/Controllers/AdminController.php:111
|
1819 |
msgctxt "admin-text"
|
1820 |
msgid "%s Review"
|
1862 |
msgid "Submitted"
|
1863 |
msgstr "Submitted"
|
1864 |
|
1865 |
+
#: plugin/Controllers/ListTableController.php:129, plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16, views/partials/screen/inline-edit.php:73
|
1866 |
+
msgctxt "admin-text"
|
1867 |
+
msgid "Unapproved"
|
1868 |
+
msgstr "Unapproved"
|
1869 |
+
|
1870 |
+
#: plugin/Controllers/ListTableController.php:149, plugin/Controllers/TranslationController.php:197, plugin/Defaults/PostStatusLabelsDefaults.php:18
|
1871 |
msgctxt "admin-text"
|
1872 |
msgid "Approve"
|
1873 |
msgstr "Approve"
|
1874 |
|
1875 |
+
#: plugin/Controllers/ListTableController.php:150
|
1876 |
msgctxt "admin-text"
|
1877 |
msgid "Unapprove"
|
1878 |
msgstr "Unapprove"
|
1879 |
|
1880 |
+
#: plugin/Controllers/ListTableController.php:166
|
1881 |
msgctxt "admin-text"
|
1882 |
msgid "Respond inline to “%s”"
|
1883 |
msgstr "Respond inline to “%s”"
|
1884 |
|
1885 |
+
#: plugin/Controllers/ListTableController.php:168
|
1886 |
msgctxt "admin-text"
|
1887 |
msgid "Respond"
|
1888 |
msgstr "Respond"
|
1889 |
|
1890 |
+
#: plugin/Controllers/ListTableController.php:241
|
1891 |
msgctxt "admin-text"
|
1892 |
msgid "Sorry, you are not allowed to respond to this review."
|
1893 |
msgstr "Sorry, you are not allowed to respond to this review."
|
1894 |
|
1895 |
+
#: plugin/Controllers/ListTableController.php:245
|
1896 |
msgctxt "admin-text"
|
1897 |
msgid "Someone"
|
1898 |
msgstr "Someone"
|
1899 |
|
1900 |
+
#: plugin/Controllers/ListTableController.php:246
|
1901 |
msgctxt "admin-text"
|
1902 |
msgid "Saving is disabled: %s is currently editing this review."
|
1903 |
msgstr "Saving is disabled: %s is currently editing this review."
|
2196 |
msgstr[0] "%s review restored from the Trash."
|
2197 |
msgstr[1] "%s reviews restored from the Trash."
|
2198 |
|
|
|
|
|
|
|
|
|
|
|
2199 |
#: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
|
2200 |
msgctxt "admin-text"
|
2201 |
msgid "Approved"
|
4484 |
"Google limits the schema types that can potentially trigger review rich "
|
4485 |
"results in search. To learn which schema types can be used, please %s."
|
4486 |
|
4487 |
+
#: plugin/Controllers/ListTableController.php:146
|
4488 |
msgctxt "The Review Post ID (admin-text)"
|
4489 |
msgid "<span>ID: %d</span>"
|
4490 |
msgstr "<span>ID: %d</span>"
|
4491 |
|
4492 |
+
#: plugin/Controllers/ListTableController.php:154
|
4493 |
msgctxt "Approve the review (admin-text)"
|
4494 |
msgid "%s this review"
|
4495 |
msgstr "%s this review"
|
languages/site-reviews.pot
CHANGED
@@ -1403,6 +1403,20 @@ msgctxt "admin-text"
|
|
1403 |
msgid "Edit"
|
1404 |
msgstr ""
|
1405 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1406 |
#: plugin/Controllers/AdminController.php:111
|
1407 |
msgctxt "admin-text"
|
1408 |
msgid "%s Review"
|
@@ -1450,47 +1464,52 @@ msgctxt "admin-text"
|
|
1450 |
msgid "Submitted"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
-
#: plugin/Controllers/ListTableController.php:132
|
|
|
|
|
|
|
|
|
|
|
1454 |
msgctxt "The Review Post ID (admin-text)"
|
1455 |
msgid "<span>ID: %d</span>"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
-
#: plugin/Controllers/ListTableController.php:
|
1459 |
msgctxt "admin-text"
|
1460 |
msgid "Approve"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
-
#: plugin/Controllers/ListTableController.php:
|
1464 |
msgctxt "admin-text"
|
1465 |
msgid "Unapprove"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: plugin/Controllers/ListTableController.php:
|
1469 |
msgctxt "Approve the review (admin-text)"
|
1470 |
msgid "%s this review"
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: plugin/Controllers/ListTableController.php:
|
1474 |
msgctxt "admin-text"
|
1475 |
msgid "Respond inline to “%s”"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
-
#: plugin/Controllers/ListTableController.php:
|
1479 |
msgctxt "admin-text"
|
1480 |
msgid "Respond"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: plugin/Controllers/ListTableController.php:
|
1484 |
msgctxt "admin-text"
|
1485 |
msgid "Sorry, you are not allowed to respond to this review."
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: plugin/Controllers/ListTableController.php:
|
1489 |
msgctxt "admin-text"
|
1490 |
msgid "Someone"
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: plugin/Controllers/ListTableController.php:
|
1494 |
msgctxt "admin-text"
|
1495 |
msgid "Saving is disabled: %s is currently editing this review."
|
1496 |
msgstr ""
|
@@ -1780,11 +1799,6 @@ msgid_plural "%s reviews restored from the Trash."
|
|
1780 |
msgstr[0] ""
|
1781 |
msgstr[1] ""
|
1782 |
|
1783 |
-
#: plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16, views/partials/screen/inline-edit.php:73
|
1784 |
-
msgctxt "admin-text"
|
1785 |
-
msgid "Unapproved"
|
1786 |
-
msgstr ""
|
1787 |
-
|
1788 |
#: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
|
1789 |
msgctxt "admin-text"
|
1790 |
msgid "Approved"
|
1403 |
msgid "Edit"
|
1404 |
msgstr ""
|
1405 |
|
1406 |
+
#: plugin/Commands/ToggleStatus.php:74
|
1407 |
+
msgctxt "admin-text"
|
1408 |
+
msgid "Approved <span class=\"count\">(%s)</span>"
|
1409 |
+
msgid_plural "Approved <span class=\"count\">(%s)</span>"
|
1410 |
+
msgstr[0] ""
|
1411 |
+
msgstr[1] ""
|
1412 |
+
|
1413 |
+
#: plugin/Commands/ToggleStatus.php:82
|
1414 |
+
msgctxt "admin-text"
|
1415 |
+
msgid "Unapproved <span class=\"count\">(%s)</span>"
|
1416 |
+
msgid_plural "Unapproved <span class=\"count\">(%s)</span>"
|
1417 |
+
msgstr[0] ""
|
1418 |
+
msgstr[1] ""
|
1419 |
+
|
1420 |
#: plugin/Controllers/AdminController.php:111
|
1421 |
msgctxt "admin-text"
|
1422 |
msgid "%s Review"
|
1464 |
msgid "Submitted"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
+
#: plugin/Controllers/ListTableController.php:129, plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16, views/partials/screen/inline-edit.php:73
|
1468 |
+
msgctxt "admin-text"
|
1469 |
+
msgid "Unapproved"
|
1470 |
+
msgstr ""
|
1471 |
+
|
1472 |
+
#: plugin/Controllers/ListTableController.php:146
|
1473 |
msgctxt "The Review Post ID (admin-text)"
|
1474 |
msgid "<span>ID: %d</span>"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
+
#: plugin/Controllers/ListTableController.php:149, plugin/Controllers/TranslationController.php:197, plugin/Defaults/PostStatusLabelsDefaults.php:18
|
1478 |
msgctxt "admin-text"
|
1479 |
msgid "Approve"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: plugin/Controllers/ListTableController.php:150
|
1483 |
msgctxt "admin-text"
|
1484 |
msgid "Unapprove"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: plugin/Controllers/ListTableController.php:154
|
1488 |
msgctxt "Approve the review (admin-text)"
|
1489 |
msgid "%s this review"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
+
#: plugin/Controllers/ListTableController.php:166
|
1493 |
msgctxt "admin-text"
|
1494 |
msgid "Respond inline to “%s”"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
+
#: plugin/Controllers/ListTableController.php:168
|
1498 |
msgctxt "admin-text"
|
1499 |
msgid "Respond"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: plugin/Controllers/ListTableController.php:241
|
1503 |
msgctxt "admin-text"
|
1504 |
msgid "Sorry, you are not allowed to respond to this review."
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: plugin/Controllers/ListTableController.php:245
|
1508 |
msgctxt "admin-text"
|
1509 |
msgid "Someone"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: plugin/Controllers/ListTableController.php:246
|
1513 |
msgctxt "admin-text"
|
1514 |
msgid "Saving is disabled: %s is currently editing this review."
|
1515 |
msgstr ""
|
1799 |
msgstr[0] ""
|
1800 |
msgstr[1] ""
|
1801 |
|
|
|
|
|
|
|
|
|
|
|
1802 |
#: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
|
1803 |
msgctxt "admin-text"
|
1804 |
msgid "Approved"
|
plugin/Commands/ToggleStatus.php
CHANGED
@@ -15,7 +15,7 @@ class ToggleStatus implements Contract
|
|
15 |
public function __construct(array $input)
|
16 |
{
|
17 |
$args = glsr(ToggleStatusDefaults::class)->restrict($input);
|
18 |
-
$this->id = $args['
|
19 |
$this->status = $args['status'];
|
20 |
}
|
21 |
|
@@ -60,9 +60,7 @@ class ToggleStatus implements Contract
|
|
60 |
*/
|
61 |
protected function getPostState($postId)
|
62 |
{
|
63 |
-
|
64 |
-
_post_states(get_post($postId));
|
65 |
-
return ob_get_clean();
|
66 |
}
|
67 |
|
68 |
/**
|
@@ -70,18 +68,34 @@ class ToggleStatus implements Contract
|
|
70 |
*/
|
71 |
protected function getStatusLinks()
|
72 |
{
|
73 |
-
global $avail_post_stati;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
$hookName = 'edit-'.glsr()->post_type;
|
75 |
set_current_screen($hookName);
|
76 |
-
$avail_post_stati = get_available_post_statuses(glsr()->post_type);
|
77 |
$table = new WP_Posts_List_Table(['screen' => $hookName]);
|
78 |
$views = apply_filters('views_'.$hookName, $table->get_views()); // get_views() is in the $compat_methods array for public access
|
79 |
if (empty($views)) {
|
80 |
return;
|
81 |
}
|
82 |
foreach ($views as $class => $view) {
|
83 |
-
$views[$class] =
|
84 |
}
|
85 |
-
return implode(
|
86 |
}
|
87 |
}
|
15 |
public function __construct(array $input)
|
16 |
{
|
17 |
$args = glsr(ToggleStatusDefaults::class)->restrict($input);
|
18 |
+
$this->id = $args['post_id'];
|
19 |
$this->status = $args['status'];
|
20 |
}
|
21 |
|
60 |
*/
|
61 |
protected function getPostState($postId)
|
62 |
{
|
63 |
+
return _post_states(get_post($postId), false);
|
|
|
|
|
64 |
}
|
65 |
|
66 |
/**
|
68 |
*/
|
69 |
protected function getStatusLinks()
|
70 |
{
|
71 |
+
global $avail_post_stati, $wp_post_statuses;
|
72 |
+
$avail_post_stati = get_available_post_statuses(glsr()->post_type);
|
73 |
+
if (isset($wp_post_statuses['publish']->label_count)) {
|
74 |
+
$wp_post_statuses['publish']->label_count = _nx_noop(
|
75 |
+
'Approved <span class="count">(%s)</span>',
|
76 |
+
'Approved <span class="count">(%s)</span>',
|
77 |
+
'admin-text',
|
78 |
+
'site-reviews'
|
79 |
+
);
|
80 |
+
}
|
81 |
+
if (isset($wp_post_statuses['pending']->label_count)) {
|
82 |
+
$wp_post_statuses['pending']->label_count = _nx_noop(
|
83 |
+
'Unapproved <span class="count">(%s)</span>',
|
84 |
+
'Unapproved <span class="count">(%s)</span>',
|
85 |
+
'admin-text',
|
86 |
+
'site-reviews'
|
87 |
+
);
|
88 |
+
}
|
89 |
$hookName = 'edit-'.glsr()->post_type;
|
90 |
set_current_screen($hookName);
|
|
|
91 |
$table = new WP_Posts_List_Table(['screen' => $hookName]);
|
92 |
$views = apply_filters('views_'.$hookName, $table->get_views()); // get_views() is in the $compat_methods array for public access
|
93 |
if (empty($views)) {
|
94 |
return;
|
95 |
}
|
96 |
foreach ($views as $class => $view) {
|
97 |
+
$views[$class] = sprintf('<li class="%s">%s', $class, $view);
|
98 |
}
|
99 |
+
return implode(" |</li>\t", $views).'</li>';
|
100 |
}
|
101 |
}
|
plugin/Controllers/ListTableController.php
CHANGED
@@ -117,6 +117,20 @@ class ListTableController extends Controller
|
|
117 |
return glsr()->filterArray('review-table/clauses', $clauses, $table, $query);
|
118 |
}
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
/**
|
121 |
* @param array $actions
|
122 |
* @param WP_Post $post
|
117 |
return glsr()->filterArray('review-table/clauses', $clauses, $table, $query);
|
118 |
}
|
119 |
|
120 |
+
/**
|
121 |
+
* @param string[] $states
|
122 |
+
* @param \WP_Post $post
|
123 |
+
* @return array
|
124 |
+
* @filter display_post_states
|
125 |
+
*/
|
126 |
+
public function filterPostStates($states, $post)
|
127 |
+
{
|
128 |
+
if (get_post_type($post) === glsr()->post_type && array_key_exists('pending', $states)) {
|
129 |
+
$states['pending'] = _x('Unapproved', 'admin-text', 'site-reviews');
|
130 |
+
}
|
131 |
+
return $states;
|
132 |
+
}
|
133 |
+
|
134 |
/**
|
135 |
* @param array $actions
|
136 |
* @param WP_Post $post
|
plugin/Defaults/ToggleStatusDefaults.php
CHANGED
@@ -31,7 +31,7 @@ class ToggleStatusDefaults extends Defaults
|
|
31 |
*/
|
32 |
protected function normalize(array $values = [])
|
33 |
{
|
34 |
-
$values['status'] = 'approve'
|
35 |
? 'publish'
|
36 |
: 'pending';
|
37 |
return $values;
|
31 |
*/
|
32 |
protected function normalize(array $values = [])
|
33 |
{
|
34 |
+
$values['status'] = 'approve' === glsr_get($values, 'status')
|
35 |
? 'publish'
|
36 |
: 'pending';
|
37 |
return $values;
|
plugin/Hooks.php
CHANGED
@@ -213,6 +213,7 @@ class Hooks implements HooksContract
|
|
213 |
add_filter('post_date_column_status', [$this->listtable, 'filterDateColumnStatus'], 10, 2);
|
214 |
add_filter('default_hidden_columns', [$this->listtable, 'filterDefaultHiddenColumns'], 10, 2);
|
215 |
add_filter('posts_clauses', [$this->listtable, 'filterPostClauses'], 10, 2);
|
|
|
216 |
add_filter('post_row_actions', [$this->listtable, 'filterRowActions'], 10, 2);
|
217 |
add_filter('screen_settings', [$this->listtable, 'filterScreenFilters'], 10, 2);
|
218 |
add_filter('manage_edit-'.glsr()->post_type.'_sortable_columns', [$this->listtable, 'filterSortableColumns']);
|
213 |
add_filter('post_date_column_status', [$this->listtable, 'filterDateColumnStatus'], 10, 2);
|
214 |
add_filter('default_hidden_columns', [$this->listtable, 'filterDefaultHiddenColumns'], 10, 2);
|
215 |
add_filter('posts_clauses', [$this->listtable, 'filterPostClauses'], 10, 2);
|
216 |
+
add_action('display_post_states', [$this->listtable, 'filterPostStates'], 10, 2);
|
217 |
add_filter('post_row_actions', [$this->listtable, 'filterRowActions'], 10, 2);
|
218 |
add_filter('screen_settings', [$this->listtable, 'filterScreenFilters'], 10, 2);
|
219 |
add_filter('manage_edit-'.glsr()->post_type.'_sortable_columns', [$this->listtable, 'filterSortableColumns']);
|
plugin/Modules/SystemInfo.php
CHANGED
@@ -392,7 +392,7 @@ class SystemInfo
|
|
392 |
'WPE_APIKEY' => 'WP Engine',
|
393 |
];
|
394 |
foreach ($checks as $key => $value) {
|
395 |
-
if (!$this->
|
396 |
continue;
|
397 |
}
|
398 |
return $value;
|
@@ -404,13 +404,13 @@ class SystemInfo
|
|
404 |
* @param string $key
|
405 |
* @return bool
|
406 |
*/
|
407 |
-
protected function
|
408 |
{
|
409 |
return defined($key)
|
410 |
|| filter_input(INPUT_SERVER, $key)
|
411 |
|| Str::contains($key, filter_input(INPUT_SERVER, 'SERVER_NAME'))
|
412 |
|| Str::contains($key, DB_HOST)
|
413 |
-
|| Str::contains($key, php_uname());
|
414 |
}
|
415 |
|
416 |
/**
|
392 |
'WPE_APIKEY' => 'WP Engine',
|
393 |
];
|
394 |
foreach ($checks as $key => $value) {
|
395 |
+
if (!$this->isWebhostFound($key)) {
|
396 |
continue;
|
397 |
}
|
398 |
return $value;
|
404 |
* @param string $key
|
405 |
* @return bool
|
406 |
*/
|
407 |
+
protected function isWebhostFound($key)
|
408 |
{
|
409 |
return defined($key)
|
410 |
|| filter_input(INPUT_SERVER, $key)
|
411 |
|| Str::contains($key, filter_input(INPUT_SERVER, 'SERVER_NAME'))
|
412 |
|| Str::contains($key, DB_HOST)
|
413 |
+
|| (function_exists('php_uname') && Str::contains($key, php_uname()));
|
414 |
}
|
415 |
|
416 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews, business rev
|
|
5 |
Tested up to: 5.8
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 5.17.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -140,6 +140,11 @@ All documentation can be found in the "Help" page of the plugin. If your questio
|
|
140 |
|
141 |
## Changelog
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
= 5.17.5 (2021-11-16) =
|
144 |
|
145 |
- Added setting to add a custom fallback avatar image
|
5 |
Tested up to: 5.8
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.17.6
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
140 |
|
141 |
## Changelog
|
142 |
|
143 |
+
= 5.17.6 (2021-11-17) =
|
144 |
+
|
145 |
+
- Fixed the Approve/Unapprove links on the All Reviews page
|
146 |
+
- Fixed PHP error when php_uname() is disabled (used when detecting the webhosting on the System Info page)
|
147 |
+
|
148 |
= 5.17.5 (2021-11-16) =
|
149 |
|
150 |
- Added setting to add a custom fallback avatar image
|
site-reviews.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
-
* Version: 5.17.
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
+
* Version: 5.17.6
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|