33 | | I understand this is to prevent malicious use of the shortcode syntax. As you suggested, there could be a less drastic way, by '''allowing trusted users to continue using shortcodes in HTML attributes'''. I imagine it can be allowed inside posts whose author has sufficient capability. The same goes for nested shortcodes, and if do_shortcode() is used inside PHP templates, well, if they can run PHP then they already have sufficient privileges, so it should be safe to allow the use of shortcodes inside HTML attributes. (..unless untrusted content is put through do_shortcode..hmm..) |
| 33 | I understand this is to prevent malicious use of the shortcode syntax. As you suggested, there could be a less drastic way, by '''allowing trusted users to continue using shortcodes in HTML attributes'''. I imagine it can be allowed inside posts whose author has sufficient capability. The same goes for nested shortcodes, and if do_shortcode() is used inside PHP templates, well, if they can run PHP then they already have sufficient privileges, so it should be safe to allow the use of shortcodes inside HTML attributes. (Edit: ..unless untrusted content is put through do_shortcode..hmm..) |