timber / debug-bar-timber

Debug Bar Extension for the Timber Library
https://github.com/timber/debug-bar-timber
56 stars 8 forks source link

Warning when viewing the debug bar #1

Closed asecondwill closed 4 years ago

asecondwill commented 11 years ago

Warning: Missing argument 1 for Debug_Bar_Timber::render(), called in /Users/willbarker/Sites/bennet/bennet-surfboards/wp-content/plugins/debug-bar/debug-bar.php on line 236 and defined in /Users/willbarker/Sites/bennet/bennet-surfboards/wp-content/plugins/debug-bar-timber/class-debug-bar-timber.php on line 32

You don't actually use that argument in the function, so doing this:

32 function render($file = ''){

would fix it. Not 100% sure what im doing though, so didn't want to do pull request.

I get this both at home where i'm making myself a website using the starter theme and here at work where i'm just using it a bit to help with a site someone else bodged together.

Thanks for this plugin. Its really wonderful.

jarednova commented 11 years ago

Indeed, thanks for the heads-up. Fix is in. Thanks for the kind words and tweets; been working on this like mad so it means a lot. Please Star Timber! it helps others find it.