Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas2create committed Jan 10, 2017
2 parents af51560 + 7a4f07d commit ff5ad60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/Container/Post_Meta_Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ public function show_on_category( $category_slug ) {
* @return object $this
**/
public function show_on_template( $template_path ) {
// Backwards compatibility where only pages support templates
if ( version_compare( get_bloginfo( 'version' ), '4.7', '<' ) ) {
$this->show_on_post_type( 'page' );
}

if ( is_array( $template_path ) ) {
foreach ( $template_path as $path ) {
$this->show_on_template( $path );
Expand Down

0 comments on commit ff5ad60

Please sign in to comment.