From 88e047216048c25705f54edd004f8037b08df7b2 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Thu, 20 Sep 2018 19:15:53 +0530 Subject: [PATCH] Check if scope applies to type before given path (#7263) Merge pull request 7263 --- lib/jekyll/frontmatter_defaults.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/frontmatter_defaults.rb b/lib/jekyll/frontmatter_defaults.rb index afafec1f..7f4e5249 100644 --- a/lib/jekyll/frontmatter_defaults.rb +++ b/lib/jekyll/frontmatter_defaults.rb @@ -93,9 +93,9 @@ module Jekyll # path - the path to check for # type - the type (:post, :page or :draft) to check for # - # Returns true if the scope applies to the given path and type + # Returns true if the scope applies to the given type and path def applies?(scope, path, type) - applies_path?(scope, path) && applies_type?(scope, type) + applies_type?(scope, type) && applies_path?(scope, path) end # rubocop:disable Metrics/AbcSize