Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#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)

#1 @apeatling
11 years ago

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

No longer valid in rev 309 onwards.

#2 @(none)
10 years ago

  • Milestone Future Enhancements deleted

Milestone Future Enhancements deleted

Note: See TracTickets for help on using tickets.