Skip to content

Commit

Permalink
Fix broken TemplateShortcode::render_view() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Aug 11, 2016
1 parent 5466a71 commit bcc5fb0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 91 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.2.19] - 2016-08-11
### Fix
- Fix broken `TemplateShortcode::render_view()` method.

## [0.2.18] - 2016-06-20
### Changed
- Removed dependency on `beberlei/assert` package.
Expand Down Expand Up @@ -120,6 +124,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial release to GitHub.

[0.2.19]: https://github.com/brightnucleus/shortcodes/compare/v0.2.18...v0.2.19
[0.2.18]: https://github.com/brightnucleus/shortcodes/compare/v0.2.17...v0.2.18
[0.2.17]: https://github.com/brightnucleus/shortcodes/compare/v0.2.16...v0.2.17
[0.2.16]: https://github.com/brightnucleus/shortcodes/compare/v0.2.15...v0.2.16
Expand Down
124 changes: 36 additions & 88 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions src/TemplatedShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,14 @@ protected function get_default_view_directory() {
*
* @since 0.2.6
*
* @param string $view The view to render.
* @param mixed $context The context to pass through to the view.
* @param string $view The view to render.
* @param mixed $context The context to pass through to the view.
* @param array $atts The shortcode attribute values to pass
* through to the view.
* @param string|null $content Optional. The inner content of the shortcode.
* @return string HTML rendering of the view.
*/
protected function render_view( $view, $context ) {
protected function render_view( $view, $context, $atts, $content = null ) {
if ( empty( $view ) ) {
return '';
}
Expand Down

0 comments on commit bcc5fb0

Please sign in to comment.