Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
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-forms
Merge requests
!32
feature: toggle field
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
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
2 months ago
Overview
9
Commits
9
Pipelines
7
Changes
10
All threads resolved!
Hide all comments
0
0
Merge request reports
Compare
master
version 6
b019e8b2
2 months ago
version 5
9b04361d
2 months ago
version 4
b2e743f2
2 months ago
version 3
891c8b29
2 months ago
version 2
e97a84a5
2 months ago
version 1
ff5f0a03
2 months ago
master (base)
and
version 5
latest version
71e0f627
9 commits,
2 months ago
version 6
b019e8b2
8 commits,
2 months ago
version 5
9b04361d
7 commits,
2 months ago
version 4
b2e743f2
4 commits,
2 months ago
version 3
891c8b29
3 commits,
2 months ago
version 2
e97a84a5
2 commits,
2 months ago
version 1
ff5f0a03
1 commit,
2 months ago
10 files
+
435
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
src/Field/Traits/HtmlAttributes.php
+
1
−
1
View file @ 9b04361d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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