script error in dashboard.php
-
Hi everyone,
I am trying to log in to my Site Admin page to write a new post and all I get is a blank screen with this on it:
Fatal error: Call to undefined function: register_sidebar() in /home/laurenc/public_html/blog/wp-admin/includes/dashboard.php on line 12
At /home/laurenc/public_html/blog/wp-admin/includes/dashboard.php, the script looks like this (from the top of the page, down past line 12):
<?php
// Registers dashboard widgets, handles POST data, sets up filters
function wp_dashboard_setup() {
global $wpdb, $wp_dashboard_sidebars;
$update = false;
if ( !$widget_options = get_option( ‘dashboard_widget_options’ ) )
$widget_options = array();/* Register WP Dashboard Dynamic Sidebar */
register_sidebar ( array(
‘name’ => ‘WordPress Dashboard’,
‘id’ => ‘wp_dashboard’,
‘before_widget’ => “\t<div class=’dashboard-widget-holder %2\$s’ id=’%1\$s’>\n\n\t\t<div class=’dashboard-widget’>\n\n”,
‘after_widget’ => “\t\t</div>\n\n\t</div>\n\n”,I know this is probably a simple thing and I’ve tried changing ( array( to a couple different things but I don’t know enough to know what it should be…
Would appreciate any help – my blog is at https://www.laurencarter.ca/blog
Thanks,
Lauren
- The topic ‘script error in dashboard.php’ is closed to new replies.