From c1b858e70b6fe9f64f9d6af24bc0ffcf049f5f57 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 21 Jan 2007 12:43:07 +0000 Subject: [PATCH] Ignore cascading protection for user CSS/JS subpages, as it's obvious that they were placed in user subpages to circumvent needing to protect them. This fixes at least one bot on enwiki --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 205a20fa66..aa4727c9b3 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1148,7 +1148,7 @@ class Title { return false; } - if ( $doExpensiveQueries && $this->isCascadeProtected() ) { + if ( $doExpensiveQueries && $this->isCascadeProtected() && !$this->isCssJsSubpage() ) { # We /could/ use the protection level on the source page, but it's fairly ugly # as we have to establish a precedence hierarchy for pages included by multiple # cascade-protected pages. So just restrict it to people with 'protect' permission, -- 2.20.1