Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wpct Plugin Abstracts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codeccoop
WordPress
plugins
Wpct Plugin Abstracts
Compare revisions
813fccde8bb90463c8f8a5df5ec63b07c6aa8970 to b8cfb0d0162ee04fcc8188194f1039fda0c9b031
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
codeccoop/wp/plugins/wpct-plugin-abstracts
Select target project
No results found
b8cfb0d0162ee04fcc8188194f1039fda0c9b031
Select Git revision
Branches
main
release/forms-bridge
Swap
Target
codeccoop/wp/plugins/wpct-plugin-abstracts
Select target project
codeccoop/wp/plugins/wpct-plugin-abstracts
1 result
813fccde8bb90463c8f8a5df5ec63b07c6aa8970
Select Git revision
Branches
main
release/forms-bridge
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
fix: settings cache update priority
· b8cfb0d0
Lucas García
authored
8 months ago
b8cfb0d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
class-settings.php
+2
-2
2 additions, 2 deletions
class-settings.php
with
2 additions
and
2 deletions
class-settings.php
View file @
b8cfb0d0
...
...
@@ -115,13 +115,13 @@ if (!class_exists('\WPCT_ABSTRACT\Settings')) :
if
(
$option
===
$setting_name
&&
!
empty
(
$to
))
{
static
::
$cache
[
$setting_name
]
=
$value
;
}
},
90
,
2
);
},
5
,
2
);
add_action
(
'update_option'
,
function
(
$option
,
$from
,
$to
)
use
(
$setting_name
)
{
if
(
$option
===
$setting_name
&&
!
empty
(
$to
))
{
static
::
$cache
[
$setting_name
]
=
$to
;
}
},
90
,
3
);
},
5
,
3
);
add_action
(
'admin_init'
,
function
()
use
(
$setting_name
,
$setting
)
{
add_settings_section
(
...
...
This diff is collapsed.
Click to expand it.