Site Reviews - Version 5.12.2

Version Description

(2021-06-12) =

  • Fixed the Bulk Edit actions
Download this release

Release Info

Developer geminilabs
Plugin Icon 128x128 Site Reviews
Version 5.12.2
Comparing to
See all releases

Code changes from version 5.12.1 to 5.12.2

languages/site-reviews-en_US.mo CHANGED
Binary file
languages/site-reviews-en_US.po CHANGED
@@ -1251,7 +1251,7 @@ msgctxt "admin-text"
1251
  msgid "Restrict Limits To"
1252
  msgstr "Restrict Limits To"
1253
 
1254
- #: config/settings.php:531, plugin/Controllers/MetaboxController.php:38, plugin/Tinymce/SiteReviewsSummaryTinymce.php:25, plugin/Tinymce/SiteReviewsTinymce.php:56, views/partials/editor/bulk-edit-assigned-posts.php:6
1255
  msgctxt "admin-text"
1256
  msgid "Assigned Posts"
1257
  msgstr "Assigned Posts"
@@ -1261,7 +1261,7 @@ msgctxt "admin-text"
1261
  msgid "Assigned Terms"
1262
  msgstr "Assigned Terms"
1263
 
1264
- #: config/settings.php:533, plugin/Controllers/MetaboxController.php:39, plugin/Defaults/PostTypeColumnDefaults.php:19, views/partials/editor/bulk-edit-assigned-users.php:6
1265
  msgctxt "admin-text"
1266
  msgid "Assigned Users"
1267
  msgstr "Assigned Users"
@@ -1720,7 +1720,7 @@ msgctxt "admin-text"
1720
  msgid "Publicly responding to third-party %s reviews is disabled."
1721
  msgstr "Publicly responding to third-party %s reviews is disabled."
1722
 
1723
- #: plugin/Controllers/ListTableController.php:41, plugin/Overrides/ReviewsListTable.php:69
1724
  msgctxt "admin-text"
1725
  msgid "%s is currently editing"
1726
  msgstr "%s is currently editing"
@@ -1860,7 +1860,7 @@ msgctxt "admin-text"
1860
  msgid "Review Details"
1861
  msgstr "Review Details"
1862
 
1863
- #: plugin/Controllers/MetaboxController.php:41, plugin/Controllers/MetaboxController.php:120
1864
  msgctxt "admin-text"
1865
  msgid "Author"
1866
  msgstr "Author"
@@ -2043,12 +2043,12 @@ msgid_plural "%s reviews restored from the Trash."
2043
  msgstr[0] "%s review restored from the Trash."
2044
  msgstr[1] "%s reviews restored from the Trash."
2045
 
2046
- #: plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16
2047
  msgctxt "admin-text"
2048
  msgid "Unapproved"
2049
  msgstr "Unapproved"
2050
 
2051
- #: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19
2052
  msgctxt "admin-text"
2053
  msgid "Approved"
2054
  msgstr "Approved"
@@ -2256,6 +2256,11 @@ msgstr ""
2256
  "This custom translation is no longer valid as the original text has been "
2257
  "changed or removed."
2258
 
 
 
 
 
 
2259
  #: plugin/Shortcodes/SiteReviewsFormShortcode.php:96
2260
  msgctxt "admin-text"
2261
  msgid "Hide the rating field"
@@ -3130,16 +3135,11 @@ msgctxt "admin-text"
3130
  msgid "Remove assignment"
3131
  msgstr "Remove assignment"
3132
 
3133
- #: views/partials/editor/bulk-edit-assigned-posts.php:11, views/partials/editor/metabox-assigned-posts.php:6
3134
  msgctxt "admin-text"
3135
  msgid "Search by ID or title..."
3136
  msgstr "Search by ID or title..."
3137
 
3138
- #: views/partials/editor/bulk-edit-assigned-users.php:11, views/partials/editor/metabox-assigned-users.php:6
3139
- msgctxt "admin-text"
3140
- msgid "Search by ID or name..."
3141
- msgstr "Search by ID or name..."
3142
-
3143
  #: views/partials/editor/metabox-assigned-posts.php:9
3144
  msgctxt "admin-text"
3145
  msgid ""
@@ -3149,6 +3149,11 @@ msgstr ""
3149
  "Search for a Page, Post, or <abbr title=\"Custom Post Type\">CPT</abbr> "
3150
  "that you would like to assign this review to."
3151
 
 
 
 
 
 
3152
  #: views/partials/editor/metabox-assigned-users.php:9
3153
  msgctxt "admin-text"
3154
  msgid "Search for a user that you would like to assign this review to."
@@ -3184,7 +3189,7 @@ msgctxt "admin-text"
3184
  msgid "OK"
3185
  msgstr "OK"
3186
 
3187
- #: views/partials/editor/pinned.php:17, views/partials/screen/inline-edit.php:30
3188
  msgctxt "admin-text"
3189
  msgid "Cancel"
3190
  msgstr "Cancel"
@@ -3255,11 +3260,41 @@ msgctxt "admin-text"
3255
  msgid "Your Response"
3256
  msgstr "Your Response"
3257
 
3258
- #: views/partials/screen/inline-edit.php:31
3259
  msgctxt "admin-text"
3260
  msgid "Update"
3261
  msgstr "Update"
3262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3263
  #: views/partials/screen/locked-indicator.php:6
3264
  msgctxt "admin-text"
3265
  msgid "&#8220;%s&#8221; is locked"
1251
  msgid "Restrict Limits To"
1252
  msgstr "Restrict Limits To"
1253
 
1254
+ #: config/settings.php:531, plugin/Controllers/MetaboxController.php:38, plugin/Tinymce/SiteReviewsSummaryTinymce.php:25, plugin/Tinymce/SiteReviewsTinymce.php:56, views/partials/screen/inline-edit.php:102
1255
  msgctxt "admin-text"
1256
  msgid "Assigned Posts"
1257
  msgstr "Assigned Posts"
1261
  msgid "Assigned Terms"
1262
  msgstr "Assigned Terms"
1263
 
1264
+ #: config/settings.php:533, plugin/Controllers/MetaboxController.php:39, plugin/Defaults/PostTypeColumnDefaults.php:19, views/partials/screen/inline-edit.php:113
1265
  msgctxt "admin-text"
1266
  msgid "Assigned Users"
1267
  msgstr "Assigned Users"
1720
  msgid "Publicly responding to third-party %s reviews is disabled."
1721
  msgstr "Publicly responding to third-party %s reviews is disabled."
1722
 
1723
+ #: plugin/Controllers/ListTableController.php:41, plugin/Overrides/ReviewsListTable.php:109
1724
  msgctxt "admin-text"
1725
  msgid "%s is currently editing"
1726
  msgstr "%s is currently editing"
1860
  msgid "Review Details"
1861
  msgstr "Review Details"
1862
 
1863
+ #: plugin/Controllers/MetaboxController.php:41, plugin/Controllers/MetaboxController.php:120, views/partials/screen/inline-edit.php:63
1864
  msgctxt "admin-text"
1865
  msgid "Author"
1866
  msgstr "Author"
2043
  msgstr[0] "%s review restored from the Trash."
2044
  msgstr[1] "%s reviews restored from the Trash."
2045
 
2046
+ #: 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
2047
  msgctxt "admin-text"
2048
  msgid "Unapproved"
2049
  msgstr "Unapproved"
2050
 
2051
+ #: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
2052
  msgctxt "admin-text"
2053
  msgid "Approved"
2054
  msgstr "Approved"
2256
  "This custom translation is no longer valid as the original text has been "
2257
  "changed or removed."
2258
 
2259
+ #: plugin/Overrides/ReviewsListTable.php:79, views/partials/screen/inline-edit.php:69, views/partials/screen/inline-edit.php:83, views/partials/screen/inline-edit.php:93
2260
+ msgctxt "admin-text"
2261
+ msgid "No Change"
2262
+ msgstr "No Change"
2263
+
2264
  #: plugin/Shortcodes/SiteReviewsFormShortcode.php:96
2265
  msgctxt "admin-text"
2266
  msgid "Hide the rating field"
3135
  msgid "Remove assignment"
3136
  msgstr "Remove assignment"
3137
 
3138
+ #: views/partials/editor/metabox-assigned-posts.php:6, views/partials/screen/inline-edit.php:107
3139
  msgctxt "admin-text"
3140
  msgid "Search by ID or title..."
3141
  msgstr "Search by ID or title..."
3142
 
 
 
 
 
 
3143
  #: views/partials/editor/metabox-assigned-posts.php:9
3144
  msgctxt "admin-text"
3145
  msgid ""
3149
  "Search for a Page, Post, or <abbr title=\"Custom Post Type\">CPT</abbr> "
3150
  "that you would like to assign this review to."
3151
 
3152
+ #: views/partials/editor/metabox-assigned-users.php:6, views/partials/screen/inline-edit.php:118
3153
+ msgctxt "admin-text"
3154
+ msgid "Search by ID or name..."
3155
+ msgstr "Search by ID or name..."
3156
+
3157
  #: views/partials/editor/metabox-assigned-users.php:9
3158
  msgctxt "admin-text"
3159
  msgid "Search for a user that you would like to assign this review to."
3189
  msgid "OK"
3190
  msgstr "OK"
3191
 
3192
+ #: views/partials/editor/pinned.php:17, views/partials/screen/inline-edit.php:30, views/partials/screen/inline-edit.php:127
3193
  msgctxt "admin-text"
3194
  msgid "Cancel"
3195
  msgstr "Cancel"
3260
  msgid "Your Response"
3261
  msgstr "Your Response"
3262
 
3263
+ #: views/partials/screen/inline-edit.php:31, views/partials/screen/inline-edit.php:128
3264
  msgctxt "admin-text"
3265
  msgid "Update"
3266
  msgstr "Update"
3267
 
3268
+ #: views/partials/screen/inline-edit.php:43
3269
+ msgctxt "admin-text"
3270
+ msgid "Bulk Edit"
3271
+ msgstr "Bulk Edit"
3272
+
3273
+ #: views/partials/screen/inline-edit.php:67
3274
+ msgctxt "admin-text"
3275
+ msgid "Status"
3276
+ msgstr "Status"
3277
+
3278
+ #: views/partials/screen/inline-edit.php:81
3279
+ msgctxt "admin-text"
3280
+ msgid "Comments"
3281
+ msgstr "Comments"
3282
+
3283
+ #: views/partials/screen/inline-edit.php:84, views/partials/screen/inline-edit.php:94
3284
+ msgctxt "admin-text"
3285
+ msgid "Allow"
3286
+ msgstr "Allow"
3287
+
3288
+ #: views/partials/screen/inline-edit.php:85, views/partials/screen/inline-edit.php:95
3289
+ msgctxt "admin-text"
3290
+ msgid "Do not allow"
3291
+ msgstr "Do not allow"
3292
+
3293
+ #: views/partials/screen/inline-edit.php:91
3294
+ msgctxt "admin-text"
3295
+ msgid "Pings"
3296
+ msgstr "Pings"
3297
+
3298
  #: views/partials/screen/locked-indicator.php:6
3299
  msgctxt "admin-text"
3300
  msgid "&#8220;%s&#8221; is locked"
languages/site-reviews.pot CHANGED
@@ -882,7 +882,7 @@ msgctxt "admin-text"
882
  msgid "Restrict Limits To"
883
  msgstr ""
884
 
885
- #: config/settings.php:531, plugin/Controllers/MetaboxController.php:38, plugin/Tinymce/SiteReviewsSummaryTinymce.php:25, plugin/Tinymce/SiteReviewsTinymce.php:56, views/partials/editor/bulk-edit-assigned-posts.php:6
886
  msgctxt "admin-text"
887
  msgid "Assigned Posts"
888
  msgstr ""
@@ -892,7 +892,7 @@ msgctxt "admin-text"
892
  msgid "Assigned Terms"
893
  msgstr ""
894
 
895
- #: config/settings.php:533, plugin/Controllers/MetaboxController.php:39, plugin/Defaults/PostTypeColumnDefaults.php:19, views/partials/editor/bulk-edit-assigned-users.php:6
896
  msgctxt "admin-text"
897
  msgid "Assigned Users"
898
  msgstr ""
@@ -1349,7 +1349,7 @@ msgctxt "admin-text"
1349
  msgid "Publicly responding to third-party %s reviews is disabled."
1350
  msgstr ""
1351
 
1352
- #: plugin/Controllers/ListTableController.php:41, plugin/Overrides/ReviewsListTable.php:69
1353
  msgctxt "admin-text"
1354
  msgid "%s is currently editing"
1355
  msgstr ""
@@ -1499,7 +1499,7 @@ msgctxt "admin-text"
1499
  msgid "Review Details"
1500
  msgstr ""
1501
 
1502
- #: plugin/Controllers/MetaboxController.php:41, plugin/Controllers/MetaboxController.php:120
1503
  msgctxt "admin-text"
1504
  msgid "Author"
1505
  msgstr ""
@@ -1679,12 +1679,12 @@ msgid_plural "%s reviews restored from the Trash."
1679
  msgstr[0] ""
1680
  msgstr[1] ""
1681
 
1682
- #: plugin/Controllers/TranslationController.php:132, plugin/Controllers/TranslationController.php:167, plugin/Defaults/PostStatusLabelsDefaults.php:15, plugin/Defaults/PostStatusLabelsDefaults.php:16
1683
  msgctxt "admin-text"
1684
  msgid "Unapproved"
1685
  msgstr ""
1686
 
1687
- #: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19
1688
  msgctxt "admin-text"
1689
  msgid "Approved"
1690
  msgstr ""
@@ -2065,6 +2065,11 @@ msgctxt "admin-text"
2065
  msgid "This custom translation is no longer valid as the original text has been changed or removed."
2066
  msgstr ""
2067
 
 
 
 
 
 
2068
  #: plugin/Shortcodes/Shortcode.php:207
2069
  msgid "Excellent"
2070
  msgstr ""
@@ -2950,19 +2955,19 @@ msgctxt "admin-text"
2950
  msgid "Remove assignment"
2951
  msgstr ""
2952
 
2953
- #: views/partials/editor/bulk-edit-assigned-posts.php:11, views/partials/editor/metabox-assigned-posts.php:6
2954
  msgctxt "admin-text"
2955
  msgid "Search by ID or title..."
2956
  msgstr ""
2957
 
2958
- #: views/partials/editor/bulk-edit-assigned-users.php:11, views/partials/editor/metabox-assigned-users.php:6
2959
  msgctxt "admin-text"
2960
- msgid "Search by ID or name..."
2961
  msgstr ""
2962
 
2963
- #: views/partials/editor/metabox-assigned-posts.php:9
2964
  msgctxt "admin-text"
2965
- msgid "Search for a Page, Post, or <abbr title=\"Custom Post Type\">CPT</abbr> that you would like to assign this review to."
2966
  msgstr ""
2967
 
2968
  #: views/partials/editor/metabox-assigned-users.php:9
@@ -3000,7 +3005,7 @@ msgctxt "admin-text"
3000
  msgid "OK"
3001
  msgstr ""
3002
 
3003
- #: views/partials/editor/pinned.php:17, views/partials/screen/inline-edit.php:30
3004
  msgctxt "admin-text"
3005
  msgid "Cancel"
3006
  msgstr ""
@@ -3065,11 +3070,41 @@ msgctxt "admin-text"
3065
  msgid "Your Response"
3066
  msgstr ""
3067
 
3068
- #: views/partials/screen/inline-edit.php:31
3069
  msgctxt "admin-text"
3070
  msgid "Update"
3071
  msgstr ""
3072
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3073
  #: views/partials/screen/locked-indicator.php:6
3074
  msgctxt "admin-text"
3075
  msgid "&#8220;%s&#8221; is locked"
882
  msgid "Restrict Limits To"
883
  msgstr ""
884
 
885
+ #: config/settings.php:531, plugin/Controllers/MetaboxController.php:38, plugin/Tinymce/SiteReviewsSummaryTinymce.php:25, plugin/Tinymce/SiteReviewsTinymce.php:56, views/partials/screen/inline-edit.php:102
886
  msgctxt "admin-text"
887
  msgid "Assigned Posts"
888
  msgstr ""
892
  msgid "Assigned Terms"
893
  msgstr ""
894
 
895
+ #: config/settings.php:533, plugin/Controllers/MetaboxController.php:39, plugin/Defaults/PostTypeColumnDefaults.php:19, views/partials/screen/inline-edit.php:113
896
  msgctxt "admin-text"
897
  msgid "Assigned Users"
898
  msgstr ""
1349
  msgid "Publicly responding to third-party %s reviews is disabled."
1350
  msgstr ""
1351
 
1352
+ #: plugin/Controllers/ListTableController.php:41, plugin/Overrides/ReviewsListTable.php:109
1353
  msgctxt "admin-text"
1354
  msgid "%s is currently editing"
1355
  msgstr ""
1499
  msgid "Review Details"
1500
  msgstr ""
1501
 
1502
+ #: plugin/Controllers/MetaboxController.php:41, plugin/Controllers/MetaboxController.php:120, views/partials/screen/inline-edit.php:63
1503
  msgctxt "admin-text"
1504
  msgid "Author"
1505
  msgstr ""
1679
  msgstr[0] ""
1680
  msgstr[1] ""
1681
 
1682
+ #: 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
1683
  msgctxt "admin-text"
1684
  msgid "Unapproved"
1685
  msgstr ""
1686
 
1687
+ #: plugin/Controllers/TranslationController.php:166, plugin/Controllers/TranslationController.php:198, plugin/Defaults/PostStatusLabelsDefaults.php:19, views/partials/screen/inline-edit.php:71
1688
  msgctxt "admin-text"
1689
  msgid "Approved"
1690
  msgstr ""
2065
  msgid "This custom translation is no longer valid as the original text has been changed or removed."
2066
  msgstr ""
2067
 
2068
+ #: plugin/Overrides/ReviewsListTable.php:79, views/partials/screen/inline-edit.php:69, views/partials/screen/inline-edit.php:83, views/partials/screen/inline-edit.php:93
2069
+ msgctxt "admin-text"
2070
+ msgid "No Change"
2071
+ msgstr ""
2072
+
2073
  #: plugin/Shortcodes/Shortcode.php:207
2074
  msgid "Excellent"
2075
  msgstr ""
2955
  msgid "Remove assignment"
2956
  msgstr ""
2957
 
2958
+ #: views/partials/editor/metabox-assigned-posts.php:6, views/partials/screen/inline-edit.php:107
2959
  msgctxt "admin-text"
2960
  msgid "Search by ID or title..."
2961
  msgstr ""
2962
 
2963
+ #: views/partials/editor/metabox-assigned-posts.php:9
2964
  msgctxt "admin-text"
2965
+ msgid "Search for a Page, Post, or <abbr title=\"Custom Post Type\">CPT</abbr> that you would like to assign this review to."
2966
  msgstr ""
2967
 
2968
+ #: views/partials/editor/metabox-assigned-users.php:6, views/partials/screen/inline-edit.php:118
2969
  msgctxt "admin-text"
2970
+ msgid "Search by ID or name..."
2971
  msgstr ""
2972
 
2973
  #: views/partials/editor/metabox-assigned-users.php:9
3005
  msgid "OK"
3006
  msgstr ""
3007
 
3008
+ #: views/partials/editor/pinned.php:17, views/partials/screen/inline-edit.php:30, views/partials/screen/inline-edit.php:127
3009
  msgctxt "admin-text"
3010
  msgid "Cancel"
3011
  msgstr ""
3070
  msgid "Your Response"
3071
  msgstr ""
3072
 
3073
+ #: views/partials/screen/inline-edit.php:31, views/partials/screen/inline-edit.php:128
3074
  msgctxt "admin-text"
3075
  msgid "Update"
3076
  msgstr ""
3077
 
3078
+ #: views/partials/screen/inline-edit.php:43
3079
+ msgctxt "admin-text"
3080
+ msgid "Bulk Edit"
3081
+ msgstr ""
3082
+
3083
+ #: views/partials/screen/inline-edit.php:67
3084
+ msgctxt "admin-text"
3085
+ msgid "Status"
3086
+ msgstr ""
3087
+
3088
+ #: views/partials/screen/inline-edit.php:81
3089
+ msgctxt "admin-text"
3090
+ msgid "Comments"
3091
+ msgstr ""
3092
+
3093
+ #: views/partials/screen/inline-edit.php:84, views/partials/screen/inline-edit.php:94
3094
+ msgctxt "admin-text"
3095
+ msgid "Allow"
3096
+ msgstr ""
3097
+
3098
+ #: views/partials/screen/inline-edit.php:85, views/partials/screen/inline-edit.php:95
3099
+ msgctxt "admin-text"
3100
+ msgid "Do not allow"
3101
+ msgstr ""
3102
+
3103
+ #: views/partials/screen/inline-edit.php:91
3104
+ msgctxt "admin-text"
3105
+ msgid "Pings"
3106
+ msgstr ""
3107
+
3108
  #: views/partials/screen/locked-indicator.php:6
3109
  msgctxt "admin-text"
3110
  msgid "&#8220;%s&#8221; is locked"
plugin/Controllers/BulkEditorController.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
-
3
- namespace GeminiLabs\SiteReviews\Controllers;
4
-
5
- class BulkEditorController extends Controller
6
- {
7
- /**
8
- * @param string $columnName
9
- * @param string $postType
10
- * @return void
11
- * @action bulk_edit_custom_box
12
- */
13
- public function renderBulkEditFields($columnName, $postType)
14
- {
15
- foreach (['posts', 'users'] as $assignment) {
16
- if (glsr()->post_type === $postType && 'assigned_'.$assignment === $columnName) {
17
- glsr()->render('partials/editor/bulk-edit-assigned-'.$assignment);
18
- }
19
- }
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin/Hooks.php CHANGED
@@ -6,7 +6,6 @@ use GeminiLabs\SiteReviews\Contracts\HooksContract;
6
  use GeminiLabs\SiteReviews\Controllers\AdminController;
7
  use GeminiLabs\SiteReviews\Controllers\Api\Version1\RestController;
8
  use GeminiLabs\SiteReviews\Controllers\BlocksController;
9
- use GeminiLabs\SiteReviews\Controllers\BulkEditorController;
10
  use GeminiLabs\SiteReviews\Controllers\EditorController;
11
  use GeminiLabs\SiteReviews\Controllers\IntegrationController;
12
  use GeminiLabs\SiteReviews\Controllers\ListTableController;
@@ -31,7 +30,6 @@ class Hooks implements HooksContract
31
  protected $admin;
32
  protected $basename;
33
  protected $blocks;
34
- protected $bulkeditor;
35
  protected $editor;
36
  protected $integrations;
37
  protected $listtable;
@@ -56,7 +54,6 @@ class Hooks implements HooksContract
56
  $this->admin = glsr(AdminController::class);
57
  $this->basename = plugin_basename(glsr()->file);
58
  $this->blocks = glsr(BlocksController::class);
59
- $this->bulkeditor = glsr(BulkEditorController::class);
60
  $this->editor = glsr(EditorController::class);
61
  $this->integrations = glsr(IntegrationController::class);
62
  $this->listtable = glsr(ListTableController::class);
@@ -101,7 +98,6 @@ class Hooks implements HooksContract
101
  add_action('site-reviews/route/ajax/toggle-status', [$this->admin, 'toggleStatusAjax']);
102
  add_action('init', [$this->blocks, 'registerAssets'], 9);
103
  add_action('init', [$this->blocks, 'registerBlocks']);
104
- add_action('bulk_edit_custom_box', [$this->bulkeditor, 'renderBulkEditFields'], 10, 2);
105
  add_action('site-reviews/route/ajax/mce-shortcode', [$this->editor, 'mceShortcodeAjax']);
106
  add_action('edit_form_top', [$this->editor, 'renderReviewNotice']);
107
  add_action('elementor/init', [$this->integrations, 'registerElementorCategory']);
6
  use GeminiLabs\SiteReviews\Controllers\AdminController;
7
  use GeminiLabs\SiteReviews\Controllers\Api\Version1\RestController;
8
  use GeminiLabs\SiteReviews\Controllers\BlocksController;
 
9
  use GeminiLabs\SiteReviews\Controllers\EditorController;
10
  use GeminiLabs\SiteReviews\Controllers\IntegrationController;
11
  use GeminiLabs\SiteReviews\Controllers\ListTableController;
30
  protected $admin;
31
  protected $basename;
32
  protected $blocks;
 
33
  protected $editor;
34
  protected $integrations;
35
  protected $listtable;
54
  $this->admin = glsr(AdminController::class);
55
  $this->basename = plugin_basename(glsr()->file);
56
  $this->blocks = glsr(BlocksController::class);
 
57
  $this->editor = glsr(EditorController::class);
58
  $this->integrations = glsr(IntegrationController::class);
59
  $this->listtable = glsr(ListTableController::class);
98
  add_action('site-reviews/route/ajax/toggle-status', [$this->admin, 'toggleStatusAjax']);
99
  add_action('init', [$this->blocks, 'registerAssets'], 9);
100
  add_action('init', [$this->blocks, 'registerBlocks']);
 
101
  add_action('site-reviews/route/ajax/mce-shortcode', [$this->editor, 'mceShortcodeAjax']);
102
  add_action('edit_form_top', [$this->editor, 'renderReviewNotice']);
103
  add_action('elementor/init', [$this->integrations, 'registerElementorCategory']);
plugin/Overrides/ReviewsListTable.php CHANGED
@@ -37,12 +37,52 @@ class ReviewsListTable extends \WP_Posts_List_Table
37
  */
38
  public function inline_edit()
39
  {
 
40
  glsr()->render('partials/screen/inline-edit', [
 
 
41
  'columns' => $this->get_column_count(),
42
- 'screenId' => esc_attr($this->screen->id),
 
 
43
  ]);
44
  }
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  /**
47
  * @return void
48
  */
37
  */
38
  public function inline_edit()
39
  {
40
+ global $mode;
41
  glsr()->render('partials/screen/inline-edit', [
42
+ 'additional_fieldsets' => $this->getAdditionalFieldsets(),
43
+ 'author_dropdown' => $this->getAuthorDropdown(),
44
  'columns' => $this->get_column_count(),
45
+ 'mode' => esc_attr((isset($mode) && 'excerpt' === $mode) ? 'excerpt' : 'list'),
46
+ 'screen_id' => esc_attr($this->screen->id),
47
+ 'taxonomy' => get_taxonomy(glsr()->taxonomy),
48
  ]);
49
  }
50
 
51
+ protected function getAdditionalFieldsets()
52
+ {
53
+ ob_start();
54
+ list($columns) = $this->get_column_info();
55
+ $coreColumns = ['author', 'categories', 'cb', 'comments', 'date', 'tags', 'title'];
56
+ foreach ($columns as $columnName => $columnTitle) {
57
+ if (!in_array($columnName, $coreColumns)) {
58
+ do_action('bulk_edit_custom_box', $columnName, glsr()->post_type); // @since WP 2.7.0
59
+ }
60
+ }
61
+ return ob_get_clean();
62
+ }
63
+
64
+ /**
65
+ * @return string
66
+ */
67
+ protected function getAuthorDropdown()
68
+ {
69
+ if (!glsr()->can('edit_others_posts')) {
70
+ return '';
71
+ }
72
+ $args = [
73
+ 'class' => 'authors',
74
+ 'echo' => 0,
75
+ 'hide_if_only_one_author' => false,
76
+ 'multi' => 1,
77
+ 'name' => 'post_author',
78
+ 'show' => 'display_name_with_login',
79
+ 'show_option_none' => '&mdash; '._x('No Change', 'admin-text', 'site-reviews').' &mdash;',
80
+ 'who' => 'authors',
81
+ ];
82
+ $args = apply_filters('quick_edit_dropdown_authors_args', $args, $bool = true); // @since WP 5.6.0
83
+ return wp_dropdown_users($args);
84
+ }
85
+
86
  /**
87
  * @return void
88
  */
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews
5
  Tested up to: 5.7
6
  Requires at least: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 5.12.1
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -137,6 +137,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
137
 
138
  ## Changelog
139
 
 
 
 
 
140
  = 5.12.1 (2021-06-12) =
141
 
142
  - Fixed the "respond_to_*" capabilities, users can now respond to reviews if they are the author of one of the assigned posts
5
  Tested up to: 5.7
6
  Requires at least: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 5.12.2
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
137
 
138
  ## Changelog
139
 
140
+ = 5.12.2 (2021-06-12) =
141
+
142
+ - Fixed the Bulk Edit actions
143
+
144
  = 5.12.1 (2021-06-12) =
145
 
146
  - Fixed the "respond_to_*" capabilities, users can now respond to reviews if they are the author of one of the assigned posts
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.12.1
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.12.2
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2
views/partials/editor/bulk-edit-assigned-posts.php DELETED
@@ -1,20 +0,0 @@
1
- <?php defined('ABSPATH') || die; ?>
2
-
3
- <fieldset class="inline-edit-col-right">
4
- <div class="inline-edit-col">
5
- <div class="inline-edit-group wp-clearfix">
6
- <span class="title"><?= _x('Assigned Posts', 'admin-text', 'site-reviews'); ?></span>
7
- <div class="glsr-search-multibox" id="glsr-search-posts">
8
- <div class="glsr-spinner"><span class="spinner"></span></div>
9
- <div class="glsr-search-multibox-entries">
10
- <div class="glsr-selected-entries"></div>
11
- <input class="glsr-search-input" type="search" autocomplete="off" placeholder="<?= esc_attr_x('Search by ID or title...', 'admin-text', 'site-reviews'); ?>">
12
- </div>
13
- <div class="glsr-search-results"></div>
14
- </div>
15
- </div>
16
- </div>
17
- <script type="text/html" id="tmpl-glsr-assigned-posts">
18
- <?php include glsr()->path('views/partials/editor/assigned-entry.php'); ?>
19
- </script>
20
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/partials/editor/bulk-edit-assigned-users.php DELETED
@@ -1,20 +0,0 @@
1
- <?php defined('ABSPATH') || die; ?>
2
-
3
- <fieldset class="inline-edit-col-right">
4
- <div class="inline-edit-col">
5
- <div class="inline-edit-group wp-clearfix">
6
- <span class="title"><?= _x('Assigned Users', 'admin-text', 'site-reviews'); ?></span>
7
- <div class="glsr-search-multibox" id="glsr-search-users">
8
- <div class="glsr-spinner"><span class="spinner"></span></div>
9
- <div class="glsr-search-multibox-entries">
10
- <div class="glsr-selected-entries"></div>
11
- <input class="glsr-search-input" type="search" autocomplete="off" placeholder="<?= esc_attr_x('Search by ID or name...', 'admin-text', 'site-reviews'); ?>">
12
- </div>
13
- <div class="glsr-search-results"></div>
14
- </div>
15
- </div>
16
- </div>
17
- <script type="text/html" id="tmpl-glsr-assigned-users">
18
- <?php include glsr()->path('views/partials/editor/assigned-entry.php'); ?>
19
- </script>
20
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/partials/screen/inline-edit.php CHANGED
@@ -26,7 +26,7 @@
26
  </fieldset>
27
  <div class="submit inline-edit-save">
28
  <?php wp_nonce_field('inlineeditnonce', '_inline_edit', false); ?>
29
- <input type="hidden" name="screen" value="<?= $screenId; ?>" />
30
  <button type="button" class="button cancel alignleft"><?= _x('Cancel', 'admin-text', 'site-reviews'); ?></button>
31
  <button type="button" class="button button-primary save alignright"><?= _x('Update', 'admin-text', 'site-reviews'); ?></button>
32
  <span class="spinner"></span>
@@ -37,6 +37,111 @@
37
  </div>
38
  </td>
39
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  </tbody>
41
  </table>
42
  </form>
 
 
 
 
 
 
 
26
  </fieldset>
27
  <div class="submit inline-edit-save">
28
  <?php wp_nonce_field('inlineeditnonce', '_inline_edit', false); ?>
29
+ <input type="hidden" name="screen" value="<?= $screen_id; ?>" />
30
  <button type="button" class="button cancel alignleft"><?= _x('Cancel', 'admin-text', 'site-reviews'); ?></button>
31
  <button type="button" class="button button-primary save alignright"><?= _x('Update', 'admin-text', 'site-reviews'); ?></button>
32
  <span class="spinner"></span>
37
  </div>
38
  </td>
39
  </tr>
40
+ <tr id="bulk-edit" style="display:none" class="inline-edit-row inline-edit-row-post bulk-edit-row bulk-edit-row-post bulk-edit-<?= glsr()->post_type; ?>">
41
+ <td colspan="<?= $columns; ?>" class="colspanchange">
42
+ <fieldset class="inline-edit-col-left">
43
+ <legend class="inline-edit-legend"><?= _x('Bulk Edit', 'admin-text', 'site-reviews'); ?></legend>
44
+ <div class="inline-edit-col">
45
+ <div id="bulk-title-div">
46
+ <div id="bulk-titles" style="margin-bottom:0;"></div>
47
+ </div>
48
+ </div>
49
+ </fieldset>
50
+ <fieldset class="inline-edit-col-center inline-edit-categories">
51
+ <div class="inline-edit-col">
52
+ <span class="title inline-edit-categories-label"><?= esc_html($taxonomy->labels->name); ?></span>
53
+ <input type="hidden" name="tax_input[<?= esc_attr($taxonomy->name); ?>][]" value="0" />
54
+ <ul class="cat-checklist <?= esc_attr($taxonomy->name); ?>-checklist">
55
+ <?php wp_terms_checklist(0, ['taxonomy' => $taxonomy->name]); ?>
56
+ </ul>
57
+ </div>
58
+ </fieldset>
59
+ <fieldset class="inline-edit-col-right">
60
+ <div class="inline-edit-col">
61
+ <div class="inline-edit-group wp-clearfix">
62
+ <label class="inline-edit-author alignleft">
63
+ <span class="title"><?= _x('Author', 'admin-text', 'site-reviews'); ?></span>
64
+ <?= $author_dropdown; ?>
65
+ </label>
66
+ <label class="inline-edit-status alignright">
67
+ <span class="title"><?= _x('Status', 'admin-text', 'site-reviews'); ?></span>
68
+ <select name="_status">
69
+ <option value="-1">&mdash; <?= _x('No Change', 'admin-text', 'site-reviews'); ?> &mdash;</option>
70
+ <?php if (glsr()->can('publish_posts')) : ?>
71
+ <option value="publish"><?= _x('Approved', 'admin-text', 'site-reviews'); ?></option>
72
+ <?php endif; ?>
73
+ <option value="pending"><?= _x('Unapproved', 'admin-text', 'site-reviews'); ?></option>
74
+ </select>
75
+ </label>
76
+ </div>
77
+ <?php if (post_type_supports(glsr()->post_type, 'comments') || post_type_supports(glsr()->post_type, 'trackbacks')) : ?>
78
+ <div class="inline-edit-group wp-clearfix">
79
+ <?php if (post_type_supports(glsr()->post_type, 'comments')) : ?>
80
+ <label class="alignleft">
81
+ <span class="title"><?= _x('Comments', 'admin-text', 'site-reviews'); ?></span>
82
+ <select name="comment_status">
83
+ <option value="">&mdash; <?= _x('No Change', 'admin-text', 'site-reviews'); ?> &mdash;</option>
84
+ <option value="open"><?= _x('Allow', 'admin-text', 'site-reviews'); ?></option>
85
+ <option value="closed"><?= _x('Do not allow', 'admin-text', 'site-reviews'); ?></option>
86
+ </select>
87
+ </label>
88
+ <?php endif; ?>
89
+ <?php if (post_type_supports(glsr()->post_type, 'trackbacks')) : ?>
90
+ <label class="alignright">
91
+ <span class="title"><?= _x('Pings', 'admin-text', 'site-reviews'); ?></span>
92
+ <select name="ping_status">
93
+ <option value="">&mdash; <?= _x('No Change', 'admin-text', 'site-reviews'); ?> &mdash;</option>
94
+ <option value="open"><?= _x('Allow', 'admin-text', 'site-reviews'); ?></option>
95
+ <option value="closed"><?= _x('Do not allow', 'admin-text', 'site-reviews'); ?></option>
96
+ </select>
97
+ </label>
98
+ <?php endif; ?>
99
+ </div>
100
+ <?php endif; ?>
101
+ <div class="inline-edit-group wp-clearfix">
102
+ <span class="title"><?= _x('Assigned Posts', 'admin-text', 'site-reviews'); ?></span>
103
+ <div class="glsr-search-multibox" id="glsr-search-posts">
104
+ <div class="glsr-spinner"><span class="spinner"></span></div>
105
+ <div class="glsr-search-multibox-entries">
106
+ <div class="glsr-selected-entries"></div>
107
+ <input class="glsr-search-input" type="search" autocomplete="off" placeholder="<?= esc_attr_x('Search by ID or title...', 'admin-text', 'site-reviews'); ?>">
108
+ </div>
109
+ <div class="glsr-search-results"></div>
110
+ </div>
111
+ </div>
112
+ <div class="inline-edit-group wp-clearfix">
113
+ <span class="title"><?= _x('Assigned Users', 'admin-text', 'site-reviews'); ?></span>
114
+ <div class="glsr-search-multibox" id="glsr-search-users">
115
+ <div class="glsr-spinner"><span class="spinner"></span></div>
116
+ <div class="glsr-search-multibox-entries">
117
+ <div class="glsr-selected-entries"></div>
118
+ <input class="glsr-search-input" type="search" autocomplete="off" placeholder="<?= esc_attr_x('Search by ID or name...', 'admin-text', 'site-reviews'); ?>">
119
+ </div>
120
+ <div class="glsr-search-results"></div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </fieldset>
125
+ <?= $additional_fieldsets; ?>
126
+ <div class="submit inline-edit-save">
127
+ <button type="button" class="button cancel alignleft"><?= _x('Cancel', 'admin-text', 'site-reviews'); ?></button>
128
+ <input type="submit" name="bulk_edit" id="bulk_edit" class="button button-primary alignright" value="<?= esc_attr_x('Update', 'admin-text', 'site-reviews'); ?>">
129
+ <input type="hidden" name="post_view" value="<?= $mode; ?>" />
130
+ <input type="hidden" name="screen" value="<?= $screen_id; ?>" />
131
+ <br class="clear">
132
+ <div class="notice notice-error notice-alt inline hidden">
133
+ <p class="error"></p>
134
+ </div>
135
+ </div>
136
+ </td>
137
+ </tr>
138
  </tbody>
139
  </table>
140
  </form>
141
+
142
+ <script type="text/html" id="tmpl-glsr-assigned-posts">
143
+ <?php include glsr()->path('views/partials/editor/assigned-entry.php'); ?>
144
+ </script>
145
+ <script type="text/html" id="tmpl-glsr-assigned-users">
146
+ <?php include glsr()->path('views/partials/editor/assigned-entry.php'); ?>
147
+ </script>