Title: Deprecated warning
Last modified: December 5, 2019

---

# Deprecated warning

 *  Resolved [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-warning-11/)
 * Hi Otto,
 * As mentioned [before](https://wordpress.org/support/topic/deprecated-usage-of-create_function/)
   this plugin causes a deprecated warning and in my case also a “The plugin generated
   215 characters of unexpected output during activation. If you notice “headers
   already sent” messages .. ” warning. You did update plugin few months ago, why
   didn’t you fix the issues mentioned above? If this plugin doesn’t work properly
   anymore, why not just remove it from repository? Because now I found out after
   installing plugin.
 * Guido

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Frank Gomez](https://wordpress.org/support/users/frank6tg/)
 * (@frank6tg)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/deprecated-warning-11/#post-12310016)
 * Same here. [09-Jan-2020 21:25:29 UTC] PHP Deprecated: Function create_function()
   is deprecated in /home/s28/html/wp-content/plugins/php-code-widget/execphp.php
   on line 62
 *  [Dugonja](https://wordpress.org/support/users/h3llas/)
 * (@h3llas)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/deprecated-warning-11/#post-12380261)
 * Until plugin author updates the plugin, you can fix the notice by manually changing
   line 62 in execphp.php
 * `add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));`
 * to
 *     ```
       add_action( 'widgets_init', function() {
           register_widget("PHP_Code_Widget");
       } );
       ```
   
    -  This reply was modified 6 years, 2 months ago by [Dugonja](https://wordpress.org/support/users/h3llas/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated warning’ is closed to new replies.

 * ![](https://ps.w.org/php-code-widget/assets/icon.svg?rev=992095)
 * [PHP Code Widget](https://wordpress.org/plugins/php-code-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-widget/reviews/)

## Tags

 * [create_function](https://wordpress.org/support/topic-tag/create_function/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 2 replies
 * 3 participants
 * Last reply from: [Dugonja](https://wordpress.org/support/users/h3llas/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/deprecated-warning-11/#post-12380261)
 * Status: resolved