File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $filters = json_decode( $filters_json, true )['hooks'];
2929// Search for filters matching a string:
3030$search = ' permalink' ;
3131$results = array_filter( $filters , function( array $hook ) use ( $search ) {
32- return ( false ! == strpos( $hook [' name' ], $search ) );
32+ return ( strpos( $hook [' name' ], $search ) ! == false );
3333} );
3434
3535var_dump( $results );
@@ -44,7 +44,7 @@ const filters = require('@wp-hooks/wordpress-core/hooks/filters.json').hooks;
4444
4545// Search for actions matching a string:
4646const search = ' menu' ;
47- const results = actions.filter( hook => ( null ! == hook.name.match( search ) ) );
47+ const results = actions.filter( hook => ( hook.name.match( search ) ! == null ) );
4848
4949console.log(results);
5050` ` `
You can’t perform that action at this time.
0 commit comments