#35 closed defect (bug) (no action required)
Don't show custom dashboard for /wp-admin/index.php?xxx URLs.
Reported by: | bercon | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | dashboard | |
Cc: |
Description
The dashboard should only be visible for the /wp-admin/index.php URL and not for any /wp-admin/index.php?xxx URL like /wp-admin/index.php?page=popularity-contest.php to be able to see data from plugins that display under the main dashboard.
Replace:
/* Are we viewing the dashboard? */ if ( strpos( $_SERVER['SCRIPT_NAME'],'/index.php') ) { add_action( 'admin_head', 'start_dash' ); }
with something like:
/* Are we viewing the dashboard? */ if ( strpos( $_SERVER['SCRIPT_NAME'],'/index.php') && ('' == $_SERVER['QUERY_STRING']) ) { add_action( 'admin_head', 'start_dash' ); }
Change History (2)
Note: See
TracTickets for help on using
tickets.
No longer valid in rev 309 onwards.