Undefined variable: editor_id in …\src\Plugin\Admin\MediaButton.php on line 78
-
Hello Matthew,
Thank you for your work on this Plugin.
Just a quick bug report and bug fix.
BTW, I’m using v3.0.8 at the time of this post.I receive a PHP Notice:
Undefined variable: editor_id in […]\easing-slider\src\Plugin\Admin\MediaButton.php on line 78
You’ll notice, the function on line 61 of MediaButton.php:
public function displayButton()
which is a callback for the ‘media_buttons’ hook, which as you know passes the $editor_id as an argument, however the displayButton function is missing the $editor_id parameter. It should be changed to:
public function displayButton($editor_id)
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined variable: editor_id in …\src\Plugin\Admin\MediaButton.php on line 78’ is closed to new replies.