WPIntell

Source evidence

PHP Deprecated: Function create_function() is deprecated in…

Search Everything · support · 2018-09-04T15:01:00+00:00

complaintsentiment
mediumseverity
0.86relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
slomeli79 unresolved
PHP Deprecated: Function create_function() is deprecated in /.../public_html/wp-content/plugins/search-everything/search-everything.php on line 236 Will the plugin be updated anytime this year? Tested my website with PHP 7.2 and also saw the same issue. This function is used in one place: search-everything.php > line 236 $search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] )); Perhaps use an anonymous function? This reply was modified 7 years, 3 months ago by Preliot . This reply was modified 7 years, 3 months ago by Preliot . Fix (on your own risk). If you see an error, please comment here: //$search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] )); //Custom improvement $search_terms = array_filter(array_map( function($a) { return trim($a, "\"'\n\r "); }, $matches[0] )); Works for me! Thanks for the tip Yeah, that thing also works for me. Thanks

Comments

4 shown
Preliot 2019-02-28T08:19:00+00:00

Tested my website with PHP 7.2 and also saw the same issue. This function is used in one place: search-everything.php > line 236 $search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] )); Perhaps use an anonymous function? This reply was modified 7 years, 3 months ago by Preliot . This reply was modified 7 years, 3 months ago by Preliot .

Preliot 2019-05-01T08:36:00+00:00

Fix (on your own risk). If you see an error, please comment here: //$search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] )); //Custom improvement $search_terms = array_filter(array_map( function($a) { return trim($a, "\"'\n\r "); }, $matches[0] ));

fraserbrown 2019-07-30T23:18:00+00:00

Works for me! Thanks for the tip

mukii 2019-12-05T05:12:00+00:00

Yeah, that thing also works for me. Thanks