ekandreas / bladerunner

WordPress plugin for Laravel Blade templating DEPRECATED
http://bladerunner.elseif.se
12 stars 1 forks source link

Load searchform.blade.php (if existing) on get_search_form() #17

Closed Svanmark closed 8 years ago

Svanmark commented 8 years ago

Leverage the filter "get_search_form" to load searchform.blade.php if existing when calling WP core function get_search_form().

I had to create a new instance of self() to the method call to $this->path('searchform.blade.php'); sinde the $this->path will already be set and therefore create "double object instance".

An option would be to put the code inside the Init class instead and create a new instance of the Template class from there.

codecov-io commented 8 years ago

Current coverage is 0.00%

Merging #17 into master will not affect coverage as of 9c90a83

@@            master   #17   diff @@
====================================
  Files            4     4       
  Stmts          188   198    +10
  Branches         0     0       
  Methods         28    29     +1
====================================
  Hit              0     0       
  Partial          0     0       
- Missed         188   198    +10

Review entire Coverage Diff as of 9c90a83

Powered by Codecov. Updated on successful CI builds.