Skip to content

Commit ea8f245

Browse files
committed
Code cleanup
1 parent 4039b6f commit ea8f245

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ajax-load-more-for-searchwp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ALM_SearchWP {
6464
* @since 1.0
6565
*/
6666
public function __construct() {
67-
add_filter( 'alm_searchwp', array( &$this, 'alm_searchwp_get_posts' ), 10, 2 );
67+
add_filter( 'alm_searchwp', [ &$this, 'alm_searchwp_get_posts' ], 10, 2 );
6868
}
6969

7070
/**
@@ -87,12 +87,12 @@ public function alm_searchwp_get_posts( $args, $engine ) {
8787
$term = sanitize_text_field( $args['s'] );
8888

8989
$swp_query = new SWP_Query(
90-
array(
90+
[
9191
'engine' => $engine,
9292
's' => $term,
9393
'fields' => 'ids',
9494
'posts_per_page' => -1,
95-
)
95+
]
9696
);
9797

9898
if ( ! empty( $swp_query->posts ) ) {

0 commit comments

Comments
 (0)