Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Markus Hermann
wp-polls
Commits
10d9a3cc
Unverified
Commit
10d9a3cc
authored
Jan 02, 2019
by
Lester Chan
Browse files
Use array() instead of []
parent
366cd68a
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-polls.php
View file @
10d9a3cc
...
...
@@ -1078,7 +1078,7 @@ function polls_archive() {
$template_answer
=
removeslashes
(
get_option
(
'poll_template_resultbody'
));
}
$template_answer
=
str_replace
(
[
$template_answer
=
str_replace
(
array
(
'%POLL_ID%'
,
'%POLL_ANSWER_ID%'
,
'%POLL_ANSWER%'
,
...
...
@@ -1087,7 +1087,7 @@ function polls_archive() {
'%POLL_ANSWER_PERCENTAGE%'
,
'%POLL_MULTIPLE_ANSWER_PERCENTAGE%'
,
'%POLL_ANSWER_IMAGEWIDTH%'
,
]
,
[
)
,
array
(
$polls_question
[
'id'
],
$polls_answer
[
'aid'
],
$polls_answer
[
'answers'
],
...
...
@@ -1096,7 +1096,7 @@ function polls_archive() {
$poll_answer_percentage
,
$poll_multiple_answer_percentage
,
$poll_answer_imagewidth
,
]
,
)
,
$template_answer
);
// Print Out Results Body Template
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment