WPIntell

Source evidence

Using PHP 7.2 Create_Function() is deprecated

Special Text Boxes · support · 2020-07-25T17:53:00+00:00

complaintsentiment
mediumseverity
0.86relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

6 / 35 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Gary H unresolved
The text boxes seem to be working correctly but when I enable debug mode i get the following error. Deprecated: Function create_function() is deprecated in W:\websites\www.mywebsitename.com\wp-content\plugins\wp-special-textboxes\wp-special-textboxes.php on line 48 How can I resolve this? I am ok with copying and pasting PHP code, but don’t understand it enough to know how to fix this. Thank you in advance. Change line 48 to: add_action(‘widgets_init’, function() {return register_widget(“special_text”); } ); It should help. I have fixed it by replacing line 48 with: // add_action('widgets_init', create_function('', 'return register_widget("special_text");')); add_action('widgets_init', function() { return register_widget("special_text"); } );

Comments

2 shown
errorsys 2020-12-23T13:31:00+00:00

Change line 48 to: add_action(‘widgets_init’, function() {return register_widget(“special_text”); } ); It should help.

hardoman 2021-04-24T15:04:00+00:00

I have fixed it by replacing line 48 with: // add_action('widgets_init', create_function('', 'return register_widget("special_text");')); add_action('widgets_init', function() { return register_widget("special_text"); } );