Timeline for How to escape multiple attribute at once in WordPress?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 26, 2017 at 12:03 | comment | added | mlimon | That's all I want to know :). thanks for the help, anyway I'm still curious to know. If you need to add multiple attributes not just attribute value then how you are guys gonna do that? | |
Oct 26, 2017 at 10:23 | comment | added | Jacob Peattie |
The only ‘rule’ is to escape before output. It doesn’t have to be literally in the same line as the echo though. So what you have now is fine from an escaping perspective.
|
|
Oct 26, 2017 at 8:32 | comment | added | mlimon |
Thanks for your brief. anyway if I directly echo $attributes here. Then is it maintaining the standard rules of WordPress?
|
|
Oct 26, 2017 at 7:20 | history | answered | Jacob Peattie | CC BY-SA 3.0 |