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
4388d7c035f4dc968443fafe64582e6bbf471373 to e853f01a6f261e97548154368c5f69a679c104cd
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
e853f01a6f261e97548154368c5f69a679c104cd
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
4388d7c035f4dc968443fafe64582e6bbf471373
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
· e853f01a
Lucas García
authored
8 months ago
e853f01a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
class-menu.php
+1
-1
1 addition, 1 deletion
class-menu.php
class-settings.php
+1
-0
1 addition, 0 deletions
class-settings.php
with
2 additions
and
1 deletion
class-menu.php
View file @
e853f01a
...
...
@@ -40,7 +40,7 @@ if (!class_exists('\WPCT_ABSTRACT\Menu')) :
);
}
pr
ivate
function
render_page
()
pr
otected
function
render_page
()
{
$page_settings
=
$this
->
settings
->
get_settings
();
$tabs
=
array_reduce
(
$page_settings
,
function
(
$carry
,
$setting
)
{
...
...
This diff is collapsed.
Click to expand it.
class-settings.php
View file @
e853f01a
...
...
@@ -23,6 +23,7 @@ if (!class_exists('\WPCT_ABSTRACT\Settings')) :
$setting_name
=
$group_name
.
'_'
.
$setting
;
$setting
=
isset
(
static
::
$cache
[
$setting_name
])
?
static
::
$cache
[
$setting_name
]
:
get_option
(
$setting_name
,
$default
);
static
::
$cache
[
$setting_name
]
=
$setting
;
if
(
$field
===
null
)
{
return
$setting
;
...
...
This diff is collapsed.
Click to expand it.