WordPress has unique plugin architecture. WordPress所具有独特的插件架构。 Plugins are simply php files which are include d (and executed) before any php pages which renders the content, whether it is your blog page or syndication feed or even administrative functions.插件是简单的PHP文件,这是包括 D类(和执行)之前,任何PHP页面,使内容,无论是您的博客网页或联合供稿,甚至行政职能。

The plugins can do anything that is allowed by php code, including trashing your hard-disk to sending your bank account details to a cracker etc. Plugins do not operate under any restrictions.该插件可以做任何事情是允许的PHP代码,包括邮件您的硬盘发送您的银行帐户的详情到一个饼干等插件不下运作,不受任何限制。 Nor can the product recover from errors generated by any plugin.也不能收回的产品从错误所产生的任何插件。 I really miss here Java's strong security infrastructure.我真的很怀念在这里Java的坚强有力的安全基础设施。

Still fine and dandy untill you discover to your horror how a poorly coded plugin can bring down your site in no time.仍然罚款和丹迪,直到你发现你的恐怖如何不善的编码插件可以把您的网站在没有时间。

Couple that with php's "silent treatment" of errors.夫妇,随着PHP的“沉默的待遇”的错误。 In other words you and your viewers are greeted with a nice looking, white in color web page, whenever any (plugin) error occurs.在其他的话你和你的观众致意,与尼斯看,白在彩色的网页,每当任何(插件)时发生错误。 Plugin errors could be as simple as having blank spaces at the end of plugin files after ?> to more complex ones like invalid argument to methods.插件错误可以那么简单,有空白在年底插件文件后? > ,以更复杂的论点一样,无效的方法。
Update: Please check 更新:请检查 tips on making your plugins robust提示,使您的插件强劲 .

Pages: 1 页数: 1 2