Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Timeline
Commits
74de90be
Commit
74de90be
authored
Apr 15, 2014
by
Erick Hitter
Browse files
Correct logic errors that resulted in assets being enqueued on too many admin pages.
parent
b8be7686
Changes
1
Hide whitespace changes
Inline
Side-by-side
eth-timeline.php
View file @
74de90be
...
...
@@ -157,7 +157,7 @@ class ETH_Timeline {
public
function
action_admin_enqueue_scripts
()
{
$screen
=
get_current_screen
();
if
(
is_object
(
$screen
)
&&
!
is_wp_error
(
$screen
)
&&
$this
->
post_type
=
$screen
->
post_type
)
{
if
(
is_object
(
$screen
)
&&
!
is_wp_error
(
$screen
)
&&
$this
->
post_type
=
==
$screen
->
post_type
&&
'post'
===
$screen
->
base
)
{
wp_enqueue_script
(
'eth-timeline-admin'
,
plugins_url
(
'js/admin.js'
,
__FILE__
),
array
(
'jquery'
,
'jquery-ui-datepicker'
),
20130721
,
false
);
wp_enqueue_style
(
'eth-timeline-admin'
,
plugins_url
(
'css/smoothness.min.css'
,
__FILE__
),
array
(),
20130721
,
'screen'
);
...
...
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