admin管理员组文章数量:1125018
As I understand the functions.php only runs on the server and its source code is not provided to the browser on the client's side. Additionally, Code Snippets plug-in, assuming previous security vulnerabilities were patched, is supposed to add the code to functions.php.
What I am confused about is the option "only run on the front end/only run in administration area" when creating a snippet. The only way I can make sense of it is that when choosing such an option this is implemented by something similar to wrapping the code with a conditional statement with the is_admin() function. This means that the code still runs on the server but is run on the condition that the event that "triggered" (using this word loosely) the code to run should be initiated in an administration page/a normal page. Is my understanding correct?
The reason that I am asking is for security reasons, mainly if the code written in the snippets with "only run on front end" is accessible and potentially modifiable by the client.
本文标签: pluginsCode Snippets security when selecting quotonly run on front endquot
版权声明:本文标题:plugins - Code Snippets security when selecting "only run on front end" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736656215a1946261.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论