Update widget.php

Copied variable code from WordPress Codex