Commit 7837b8f1 authored by colemanw's avatar colemanw
Browse files

Merge pull request #72 from christianwach/crm-15937

Load `wp_head` scripts when on Civi admin page (CRM-15937)
parents 176160cd 5019973a
......@@ -565,7 +565,7 @@ class CiviCRM_For_WordPress {
);
// add top level menu item
add_menu_page(
$menu_page = add_menu_page(
__( 'CiviCRM', 'civicrm-wordpress' ),
__( 'CiviCRM', 'civicrm-wordpress' ),
'access_civicrm',
......@@ -574,6 +574,9 @@ class CiviCRM_For_WordPress {
$civilogo
);
// add CiviCRM scripts and styles to admin head
add_action( 'admin_head-' . $menu_page, array( $this, 'wp_head' ), 50 );
} else {
// add menu item to options menu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment