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