Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-logs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-logs
Commits
c323c128
Commit
c323c128
authored
6 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
compare fix
parent
f8be9d99
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Feature/broken wc logger
Pipeline
#6312
passed
6 years ago
Stage: tools
Stage: tests
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/WC/WooCommerceCapture.php
+2
-2
2 additions, 2 deletions
src/WC/WooCommerceCapture.php
with
2 additions
and
2 deletions
src/WC/WooCommerceCapture.php
+
2
−
2
View file @
c323c128
...
...
@@ -16,7 +16,7 @@ class WooCommerceCapture
const
WOOCOMMERCE_AFTER_IS_LOADED_ACTION
=
'woocommerce_loaded'
;
/** @var string Minimal version of WooCommerce supported by logger capture */
const
SUPPORTED_WC_VERSION
=
'3.5'
;
const
SUPPORTED_WC_VERSION
=
'3.5
.0
'
;
/**
* Is logger filter captured by library.
...
...
@@ -81,7 +81,7 @@ class WooCommerceCapture
*/
public
static
function
isSupportedWCVersion
()
{
return
version_compare
(
WC_VERSION
,
self
::
SUPPORTED_WC_VERSION
,
'>='
)
>=
0
;
return
version_compare
(
\WooCommerce
::
instance
()
->
version
,
self
::
SUPPORTED_WC_VERSION
,
'>='
);
}
/**
...
...
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