Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#35 closed defect (bug) (no action required)

Don't show custom dashboard for /wp-admin/index.php?xxx URLs.

Reported by: bercon's profile 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)

#1 @apeatling
16 years ago

  • Resolution set to invalid
  • Status changed from new to closed

No longer valid in rev 309 onwards.

#2 @(none)
15 years ago

  • Milestone Future Enhancements deleted

Milestone Future Enhancements deleted

Note: See TracTickets for help on using tickets.