Title: PHP code gets stripped out on a network install
Last modified: August 30, 2016

---

# PHP code gets stripped out on a network install

 *  Resolved [mmihelic](https://wordpress.org/support/users/mmihelic/)
 * (@mmihelic)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-code-gets-stripped-out-on-a-network-install/)
 * Hi!
 * We are using the plugin on a network installation with 5k+ sites. Site admins
   cannot use the widget because php code disappears from the widget after clicking
   Save.
 * Any ideas?
 * Kind regards,
    Mitja
 * [https://wordpress.org/plugins/php-code-widget/](https://wordpress.org/plugins/php-code-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-code-gets-stripped-out-on-a-network-install/#post-6522871)
 * > Any ideas?
 * Sure. Remove the plugin and run for the hills. Don’t look back.
 * This plugin absolutely should never be run on a multisite installation. Allowing
   people on a multisite system to run arbitrary PHP code is frankly insane.
 * That said, I’m glad that at least that particular check works, because admins
   of individual sites on a multisite installation do not have the “unfiltered_html”
   capability and so should not be allowed to use arbitrary HTML code, much less
   PHP code. On a multisite install, only Super Admins have that privilege, and 
   only they should be able to put PHP code into the widget.
 * Still, don’t use this plugin on multisite. Heck, don’t use it anywhere. There’s
   no good reason for it.
 *  Thread Starter [mmihelic](https://wordpress.org/support/users/mmihelic/)
 * (@mmihelic)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-code-gets-stripped-out-on-a-network-install/#post-6522952)
 * Intersting stuff from the horse’s mouth, as it were 🙂
    Thanks.
 * Kind regards, Mitja

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP code gets stripped out on a network install’ is closed to new replies.

 * ![](https://ps.w.org/php-code-widget/assets/icon.svg?rev=992095)
 * [PHP Code Widget](https://wordpress.org/plugins/php-code-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-widget/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 2 replies
 * 2 participants
 * Last reply from: [mmihelic](https://wordpress.org/support/users/mmihelic/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/php-code-gets-stripped-out-on-a-network-install/#post-6522952)
 * Status: resolved