Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
wpdesk
wp-forms
Merge requests
!32
feature: toggle field
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feature: toggle field
feature/toggle-field
into
master
Overview
9
Commits
9
Pipelines
7
Changes
10
All threads resolved!
Hide all comments
Merged
Eryk Mika
requested to merge
feature/toggle-field
into
master
1 month ago
Overview
9
Commits
9
Pipelines
7
Changes
10
Expand
👍
0
👎
0
Merge request reports
Compare
master
version 6
b019e8b2
1 month ago
version 5
9b04361d
1 month ago
version 4
b2e743f2
1 month ago
version 3
891c8b29
1 month ago
version 2
e97a84a5
1 month ago
version 1
ff5f0a03
1 month ago
master (base)
and
latest version
latest version
71e0f627
9 commits,
1 month ago
version 6
b019e8b2
8 commits,
1 month ago
version 5
9b04361d
7 commits,
1 month ago
version 4
b2e743f2
4 commits,
1 month ago
version 3
891c8b29
3 commits,
1 month ago
version 2
e97a84a5
2 commits,
1 month ago
version 1
ff5f0a03
1 commit,
1 month ago
10 files
+
432
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
src/Field/Traits/HtmlAttributes.php
+
1
−
1
Options
@@ -57,7 +57,7 @@ trait HtmlAttributes {
return
!
empty
(
$this
->
attributes
[
$name
]
);
}
final
public
function
get_attribute
(
string
$name
,
string
$default
=
null
):
string
{
final
public
function
get_attribute
(
string
$name
,
?
string
$default
=
null
):
string
{
if
(
is_array
(
$this
->
attributes
[
$name
]
)
)
{
// Be aware of coercing - if implode returns string(0) '', then return $default value.
return
implode
(
' '
,
$this
->
attributes
[
$name
]
)
?:
$default
??
''
;
Loading