Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Development
WordPress
Commits
7837b8f1
Commit
7837b8f1
authored
Feb 09, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
civicrm.php
View file @
7837b8f1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment