wp-help-pointers icon indicating copy to clipboard operation
wp-help-pointers copied to clipboard

register_pointers causing a PHP Notice when on a page with no pointers

Open cklosowski opened this issue 13 years ago • 0 comments

Line 82 reads:

$this->pointers = $pointers;

If there are no pointers set for the currently viewed page, this will show a PHP Notice that the variable $pointers is undefined.

This can be easily fixed by including $pointers = NULL; on line 61, right after the function starts. This way if there are no pointers, the variable will still be defined and thus no longer give the notice.

cklosowski avatar Nov 04 '12 18:11 cklosowski