Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Timeline
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Timeline
Commits
74de90be
Commit
74de90be
authored
10 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Correct logic errors that resulted in assets being enqueued on too many admin pages.
parent
b8be7686
Branches
develop
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eth-timeline.php
+1
-1
1 addition, 1 deletion
eth-timeline.php
with
1 addition
and
1 deletion
eth-timeline.php
+
1
−
1
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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment