• 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)
  • 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.