Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
themes-misc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Noblogs
themes-misc
Commits
ceef3d5c
Commit
ceef3d5c
authored
1 year ago
by
lechuck
Browse files
Options
Downloads
Patches
Plain Diff
Fixed thematic usage of method_exists
parent
9a45c319
Branches
Branches containing commit
Tags
v0.1.28
Tags containing commit
No related merge requests found
Pipeline
#57874
passed
1 year ago
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
thematic/library/extensions/widgets-extensions.php
+3
-3
3 additions, 3 deletions
thematic/library/extensions/widgets-extensions.php
with
3 additions
and
3 deletions
thematic/library/extensions/widgets-extensions.php
+
3
−
3
View file @
ceef3d5c
...
...
@@ -391,7 +391,7 @@ function thematic_primary_aside() {
dynamic_sidebar
(
'primary-aside'
);
echo
thematic_after_widget_area
(
'primary-aside'
);
// WordPress 3.4
}
elseif
(
method_exists
(
$wp_customize
,
'is_preview'
)
&&
$wp_customize
->
is_preview
()
){
}
elseif
(
is_object
(
$wp_customize
)
&&
method_exists
(
$wp_customize
,
'is_preview'
)
&&
$wp_customize
->
is_preview
()
){
echo
thematic_before_widget_area
(
'primary-aside'
);
the_widget
(
'Thematic_Widget_Search'
,
null
,
$args
);
the_widget
(
'WP_Widget_Pages'
,
null
,
$args
);
...
...
@@ -419,7 +419,7 @@ function thematic_secondary_aside() {
dynamic_sidebar
(
'secondary-aside'
);
echo
thematic_after_widget_area
(
'secondary-aside'
);
// WordPress 3.4
}
elseif
(
method_exists
(
$wp_customize
,
'is_preview'
)
&&
$wp_customize
->
is_preview
()
){
}
elseif
(
is_object
(
$wp_customize
)
&&
method_exists
(
$wp_customize
,
'is_preview'
)
&&
$wp_customize
->
is_preview
()
){
echo
thematic_before_widget_area
(
'secondary-aside'
);
the_widget
(
'Thematic_Widget_RSS'
,
null
,
$args
);
the_widget
(
'Thematic_Widget_Meta'
,
null
,
$args
);
...
...
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