WordPress widgets: Get rid of red on $before_widget
Good morning,
I'm using PS-138.379 and loving it. I'm not a programmer but learning PHP. Currently $before_widget as well as $after_widget are red with the notice "undefined variable." In most cases, an isset or = '' prior to this line would fix PHP code but is this necessary for a WordPress widget?
Is there a way to get rid of the red to tell PhpStorm that the two variables are fine?
Thank you.
请先登录再写评论。
Hi there,
Try this: