|
@@ -243,7 +243,7 @@ discard block |
|
|
block discarded – undo |
|
243
|
243
|
/** |
|
244
|
244
|
* Add admin script to the no-conflict scripts whitelist |
|
245
|
245
|
* @param array $allowed Scripts allowed in no-conflict mode |
|
246
|
|
- * @return array Scripts allowed in no-conflict mode, plus the search widget script |
|
|
246
|
+ * @return string[] Scripts allowed in no-conflict mode, plus the search widget script |
|
247
|
247
|
*/ |
|
248
|
248
|
public function register_no_conflict( $allowed ) { |
|
249
|
249
|
$allowed[] = 'gravityview_searchwidget_admin'; |
|
@@ -709,7 +709,6 @@ discard block |
|
|
block discarded – undo |
|
709
|
709
|
* Dropin for the legacy flat filters when \GF_Query is available. |
|
710
|
710
|
* |
|
711
|
711
|
* @param \GF_Query $query The current query object reference |
|
712
|
|
- * @param \GV\View $this The current view object |
|
713
|
712
|
* @param \GV\Request $request The request object |
|
714
|
713
|
*/ |
|
715
|
714
|
public function gf_query_filter( &$query, $view, $request ) { |
|
@@ -1199,7 +1198,7 @@ discard block |
|
|
block discarded – undo |
|
1199
|
1198
|
/** |
|
1200
|
1199
|
* Get the label for a search form field |
|
1201
|
1200
|
* @param array $field Field setting as sent by the GV configuration - has `field`, `input` (input type), and `label` keys |
|
1202
|
|
- * @param array $form_field Form field data, as fetched by `gravityview_get_field()` |
|
|
1201
|
+ * @param GF_Field|null $form_field Form field data, as fetched by `gravityview_get_field()` |
|
1203
|
1202
|
* @return string Label for the search form |
|
1204
|
1203
|
*/ |
|
1205
|
1204
|
private static function get_field_label( $field, $form_field = array() ) { |
|
@@ -1364,7 +1363,7 @@ discard block |
|
|
block discarded – undo |
|
1364
|
1363
|
/** |
|
1365
|
1364
|
* Require the datepicker script for the frontend GV script |
|
1366
|
1365
|
* @param array $js_dependencies Array of existing required scripts for the fe-views.js script |
|
1367
|
|
- * @return array Array required scripts, with `jquery-ui-datepicker` added |
|
|
1366
|
+ * @return string[] Array required scripts, with `jquery-ui-datepicker` added |
|
1368
|
1367
|
*/ |
|
1369
|
1368
|
public function add_datepicker_js_dependency( $js_dependencies ) { |
|
1370
|
1369
|
|
|
@@ -1376,7 +1375,7 @@ discard block |
|
|
block discarded – undo |
|
1376
|
1375
|
/** |
|
1377
|
1376
|
* Modify the array passed to wp_localize_script() |
|
1378
|
1377
|
* |
|
1379
|
|
- * @param array $js_localization The data padded to the Javascript file |
|
|
1378
|
+ * @param array $localizations The data padded to the Javascript file |
|
1380
|
1379
|
* @param array $view_data View data array with View settings |
|
1381
|
1380
|
* |
|
1382
|
1381
|
* @return array |