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
b785c83e
Commit
b785c83e
authored
2 years ago
by
Marcin Kolanko
Browse files
Options
Downloads
Patches
Plain Diff
fixed: deprecated error
parent
f66adf01
No related branches found
No related tags found
No related merge requests found
Pipeline
#129208
failed
2 years ago
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
src/deprecated/wpdesk-logger-factory.php
+2
-2
2 additions, 2 deletions
src/deprecated/wpdesk-logger-factory.php
with
7 additions
and
2 deletions
CHANGELOG.md
+
5
−
0
View file @
b785c83e
## [1.10.2] - 2022-11-14
### Fixed
-
Deprecated error in PHP 8.X
## [1.10.1] - 2022-10-01
### Fixed
-
WC logger initialisation
...
...
This diff is collapsed.
Click to expand it.
src/deprecated/wpdesk-logger-factory.php
+
2
−
2
View file @
b785c83e
...
...
@@ -42,7 +42,7 @@ if ( ! class_exists( 'WPDesk_Logger_Factory' ) ) {
*
* @see http://php.net/manual/en/function.debug-backtrace.php
*/
public
static
function
log_wp_error
(
WP_Error
$e
,
array
$backtrace
)
{
public
static
function
log_wp_error
(
WP_Error
$e
,
array
$backtrace
=
array
()
)
{
$message
=
'Error: '
.
get_class
(
$e
)
.
' Code: '
.
$e
->
get_error_code
()
.
' Message: '
.
$e
->
get_error_message
();
self
::
log_message_backtrace
(
$message
,
WPDesk_Logger
::
ERROR
,
$backtrace
);
...
...
@@ -79,7 +79,7 @@ if ( ! class_exists( 'WPDesk_Logger_Factory' ) ) {
* @param string $level Level of error.
* @param array $backtrace Backtrace information with snapshot of error env.
*/
public
static
function
log_message_backtrace
(
$message
,
$level
=
WPDesk_Logger
::
DEBUG
,
array
$backtrace
)
{
public
static
function
log_message_backtrace
(
$message
,
$level
=
WPDesk_Logger
::
DEBUG
,
array
$backtrace
=
array
()
)
{
$message
.
=
' Backtrace: '
.
json_encode
(
$backtrace
);
if
(
isset
(
$backtrace
[
self
::
BACKTRACE_FILENAME_KEY
]))
{
$filename
=
$backtrace
[
self
::
BACKTRACE_FILENAME_KEY
];
...
...
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