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
!19
Add strong typing for 3.0 version
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add strong typing for 3.0 version
feature/strong-typing
into
devel
Overview
4
Commits
47
Pipelines
1
Changes
71
Merged
Krzysztof Dyszczyk
requested to merge
feature/strong-typing
into
devel
3 years ago
Overview
3
Commits
47
Pipelines
1
Changes
22
Expand
👍
0
👎
0
Merge request reports
Viewing commit
47c8e032
Prev
Next
Show latest version
22 files
+
150
−
135
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
22
Search (e.g. *.vue) (Ctrl+P)
Unverified
47c8e032
feat: add escaping functions in templates
· 47c8e032
Bartek Jaskulski
authored
3 years ago
templates/button.php
+
1
−
2
Options
@@ -4,7 +4,6 @@
* @var \WPDesk\View\Renderer\Renderer $renderer
* @var string $name_prefix
* @var string $value
*
* @var string $template_name Real field template.
*/
@@ -16,7 +15,7 @@
<?php
endif
;
?>
<?php
foreach
(
$field
->
get_attributes
(
[]
)
as
$key
=>
$val
)
:
?>
<?php
echo
$key
.
'="'
.
\esc_attr
(
$val
)
.
'"'
;
?>
<?php
echo
\esc_attr
(
$key
)
.
'="'
.
\esc_attr
(
$val
)
.
'"'
;
?>
<?php
endforeach
;
?>
type=
"
<?php
echo
\esc_attr
(
$field
->
get_type
()
);
?>
"
Loading