Title: Error with &#8220;wp_widget_description()&#8221;
Last modified: August 19, 2016

---

# Error with “wp_widget_description()”

 *  [niklas-schroder](https://wordpress.org/support/users/niklas-schroder/)
 * (@niklas-schroder)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/error-with-wp_widget_description/)
 * When I try to view my widgets (after upgrading), I get this…
 * “Fatal error: Call to undefined function: wp_widget_description() in /home/www/
   paperclipsandscrambledeggs.com/blog/wp-admin/includes/widgets.php on line 127”
 * Help?

Viewing 1 replies (of 1 total)

 *  [benjaminjackson](https://wordpress.org/support/users/benjaminjackson/)
 * (@benjaminjackson)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/error-with-wp_widget_description/#post-728310)
 * Looks like the WP team left that function out of widgets.php in the version I
   downloaded as well. Add this code at the top widgets.php, it worked for me:
 *     ```
       function wp_widget_description( $id ) {
         if ( !is_scalar($id) )
           return; 
   
         global $wp_registered_widgets; 
   
         if ( isset($wp_registered_widgets[$id]['description']) )
           return wp_specialchars( $wp_registered_widgets[$id]['description'] );
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Error with “wp_widget_description()”’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [benjaminjackson](https://wordpress.org/support/users/benjaminjackson/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/error-with-wp_widget_description/#post-728310)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
