Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wpct ERP Forms
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 ERP Forms
Commits
d9010511
Commit
d9010511
authored
8 months ago
by
Lucas García
Browse files
Options
Downloads
Patches
Plain Diff
feat: protected setting_name getter
parent
aa071a97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Git submodules
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
abstracts
+1
-1
1 addition, 1 deletion
abstracts
includes/class-settings.php
+2
-1
2 additions, 1 deletion
includes/class-settings.php
wpct-http-bridge
+1
-1
1 addition, 1 deletion
wpct-http-bridge
wpct-i18n
+1
-1
1 addition, 1 deletion
wpct-i18n
with
5 additions
and
4 deletions
abstracts
@
4388d7c0
Compare
a42bd398
...
4388d7c0
Subproject commit
a42bd3980028ac038ad883e909c1275472cecc59
Subproject commit
4388d7c035f4dc968443fafe64582e6bbf471373
This diff is collapsed.
Click to expand it.
includes/class-settings.php
+
2
−
1
View file @
d9010511
...
...
@@ -115,11 +115,12 @@ class Settings extends BaseSettings
private
function
render_forms_dropdown
(
$setting
,
$field
,
$value
)
{
$setting_name
=
$this
->
setting_name
(
$setting
);
$forms
=
self
::
get_forms
();
$options
=
array_merge
([
'<option value=""></option>'
],
array_map
(
function
(
$form
)
use
(
$value
)
{
$selected
=
$form
->
id
==
$value
?
'selected'
:
''
;
return
"<option value='
{
$form
->
id
}
'
{
$selected
}
>
{
$form
->
title
}
</option>"
;
},
$forms
));
return
"<select name='
{
$setting
}
[
{
$field
}
]'>"
.
implode
(
''
,
$options
)
.
'</select>'
;
return
"<select name='
{
$setting
_name
}
[
{
$field
}
]'>"
.
implode
(
''
,
$options
)
.
'</select>'
;
}
}
This diff is collapsed.
Click to expand it.
wpct-http-bridge
@
98b6d9e3
Compare
f625b3c8
...
98b6d9e3
Subproject commit
f625b3c83f952ff5e2d7c9d10453bab2bed146e3
Subproject commit
98b6d9e3729ef61c1c7fafd73e23f793633d2062
This diff is collapsed.
Click to expand it.
wpct-i18n
@
198c261d
Compare
dfda2d8f
...
198c261d
Subproject commit
dfda2d8fc482fc8c8ccbd6e44f77578edd11d88b
Subproject commit
198c261d40fd41f0e0c3419ec18f5e7644766cb4
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